Check your key
Which business this key belongs to and which scopes it has. Needs no scope, so a brand-new key can call it to check it works.
GET
/api/v1/meWorks with any key, no scope needed.
Example#
curl "https://app.catengage360.com/api/v1/me" \
-H "Authorization: Bearer cat_live_your_key_here"Response#
200The key works
JSON
{
"data": {
"account": {
"id": "b2c1e8f4-3a6d-4c9b-8e27-1d5f0a9b6c43",
"name": "BrightPath Coaching",
"status": "active"
},
"key": {
"id": "9f4e2a71-6c3b-4d8e-a5f0-3b1c7d9e2a56",
"scopes": [
"messages:send",
"contacts:read"
]
}
}
}An account status other than active means the business is waiting for approval or is suspended: reads and contacts work, sending does not.
Errors#
Errors come as { "error": { "code", "message" } }. Branch on code.
| Code | Status | What it means |
|---|---|---|
unauthorized | 401 | The API key is missing, wrong, revoked or expired. |
rate_limited | 429 | More than 120 requests a minute with this key. Wait for the seconds in Retry-After. |