Account & usage
Check your key and what it can do.
Endpoints
Check your API key
https://api.saei.automize.sa/v1/me- Scope: Any valid key
- Works in test mode
Returns the workspace, the key's mode and scopes, and your rate limit. The quickest way to confirm a key works.
Response fields200· The key works.
object"api_key_context"requiredlivemodebooleanrequiredfalsefor a test key: sends are simulated and never reach WhatsApp.workspaceobjectrequiredChild fields (2)
idstringrequirednamestring | nullrequired
api_keyobjectrequiredChild fields (5)
idstringrequirednamestringrequiredprefixstringrequiredscopesarray<string>requiredexpires_atstring | nulloptional
rate_limitobjectrequiredChild fields (2)
limitintegerrequiredwindow_secondsintegerrequired
Errors this can return5
- 401api_key_missingNo API key
- 401api_key_invalidInvalid API key
- 401api_key_revokedKey revoked
- 401api_key_expiredKey expired
- 429rate_limitedToo many requests
Try it
curl -X GET https://api.saei.automize.sa/v1/me \
-H "Authorization: Bearer $API_KEY"The key works.
{
"object": "api_key_context",
"livemode": false,
"workspace": {
"id": "ws_12",
"name": "Riyadh Coffee"
},
"api_key": {
"id": "key_7",
"name": "Order system",
"prefix": "sk_test_Ab12Cd",
"scopes": [
"messages:send",
"messages:read",
"webhooks:read",
"webhooks:write"
],
"expires_at": null
},
"rate_limit": {
"limit": 60,
"window_seconds": 60
}
}Get usage
https://api.saei.automize.sa/v1/usage- Scope:
usage:read - Works in test mode
What the workspace has used this billing period against its plan (marketing and service messages, campaigns, contacts, templates, flows, numbers), and how this key's mode has called the API over the last 30 days.
Check remaining before a large send to avoid a quota_exceeded. limit and remaining are null for an unlimited allowance.
Response fields200· The usage report.
object"usage"requiredperiodobjectrequiredChild fields (2)
startstringoptionalendstringoptional
allowancesarray<object>requiredChild fields (5)
keystringrequirede.g.
marketing_messages_month,service_messages_month,campaigns_month,contacts,message_templates,active_flows,whatsapp_numbers.typestringrequiredmonthlyresets each billing period;totalcounts what exists now.One of
monthlytotalusedintegerrequiredlimitinteger | nulloptionalremaininginteger | nulloptional
apiobjectrequiredChild fields (6)
livemodeboolean | nulloptionalwindow_daysintegeroptionalrequestsintegeroptionalerrorsintegeroptionalerror_ratenumberoptionalby_dayarray<object>optionalChild fields (3)
datestringoptionalrequestsintegeroptionalerrorsintegeroptional
Errors this can return1
- 429rate_limitedToo many requests
Try it
curl -X GET https://api.saei.automize.sa/v1/usage \
-H "Authorization: Bearer $API_KEY"The usage report.
{
"object": "usage",
"period": {
"start": "2026-10-01T00:00:00Z",
"end": "2026-11-01T00:00:00Z"
},
"allowances": [
{
"key": "marketing_messages_month",
"type": "monthly",
"used": 4120,
"limit": 10000,
"remaining": 5880
},
{
"key": "service_messages_month",
"type": "monthly",
"used": 18230,
"limit": null,
"remaining": null
},
{
"key": "contacts",
"type": "total",
"used": 9214,
"limit": 25000,
"remaining": 15786
}
],
"api": {
"livemode": true,
"window_days": 30,
"requests": 48213,
"errors": 212,
"error_rate": 0.0044,
"by_day": [
{
"date": "2026-09-30",
"requests": 1804,
"errors": 6
}
]
}
}