Account
Account
Get your account's plan, email usage, API rate limits and resource limits in one request.
Check your plan, how many emails you've sent, your API rate limits and how many of each resource your plan allows.
Get account
Retrieve the account behind your API token with this GET request:
GET https://api.mailersend.com/v1/accountcurl --request GET \
--url https://api.mailersend.com/v1/account \
--header 'Authorization: Bearer API_KEY_HERE'Responses
Valid
Response Code: 200 OK
Response Headers:
content-type: application/json{
"data": {
"name": "Acme Inc",
"status": "approved",
"plan_type": "starter",
"data_retention_days": 7,
"emails": {
"sent": 12000,
"received": 430,
"limit": -1
},
"rate_limits": {
"general": 60,
"email": 120,
"bulk_email": 10,
"activity": 10
},
"resources": {
"domains": { "used": 3, "limit": 10 },
"users": { "used": 2, "limit": 5 },
"templates": { "used": 41, "limit": 250 },
"smtp_users": { "used": 1, "limit": 50 },
"api_tokens": { "used": 4, "limit": 50 },
"webhooks": { "used": 2, "limit": 50 }
},
"addons": {
"sms": { "sent": 120, "received": 30, "limit": -1 },
"whatsapp": { "sent": 800, "limit": 1000 },
"phone_numbers": 1,
"domain_spaces": 2,
"data_retention_days": 30,
"dedicated_ips": 0
}
}
}A limit of -1 means unlimited.
| Field | Type | Details |
|---|---|---|
name | string | |
status | string | One of pending, approved, rejected or suspended. |
plan_type | string | The plan your account is on, for example free, hobby, sandbox, starter, professional or enterprise. |
data_retention_days | int | Days of activity data your account keeps. |
emails.sent | int | Emails sent in the current usage cycle. Until your account is approved, the lifetime total. |
emails.received | int | Inbound emails forwarded in the current usage cycle. |
emails.limit | int | The sending limit in force. Once your account is approved, sent and received emails both count towards it. |
rate_limits.general | int | Requests per minute to all API endpoints, excluding email endpoints. See rate limits. |
rate_limits.email | int | Requests per minute to POST /v1/email. |
rate_limits.bulk_email | int | Requests per minute to POST /v1/bulk-email. |
rate_limits.activity | int | Requests per minute to GET /v1/activity and GET /v1/emails, shared. |
resources.*.used | int | How many your account has. Paused API tokens and pending user invites count. |
resources.*.limit | int | How many your plan allows. |
addons.sms | object | SMS sent and received in the current usage cycle, against the SMS limit in force. |
addons.whatsapp | object | WhatsApp messages sent in the add-on cycle, against the messages it includes (limit). null without the WhatsApp add-on. |
addons.phone_numbers | int | Phone numbers you've bought. |
addons.domain_spaces | int | Extra domains you've bought. Already counted in resources.domains.limit. |
addons.data_retention_days | int | Days of data retention you've bought. 0 if none. |
addons.dedicated_ips | int | Dedicated IPs you've bought. |
To check your daily request quota, see Checking your API quota.
Error
Response Code: 401 Unauthorized