Docs
Authentication
Authenticate every request with an API key sent as a Bearer token.
API keys
Create keys in Developers → API keys. Each key belongs to one organization and carries its own set of permissions — never more than the person who created it. The full secret is displayed once; Engage stores only a keyed hash and shows the prefix afterwards so you can identify the key.
curl https://api.engage.swastik.ai/v1/numbers \
-H "Authorization: Bearer egk_live_xxxxxxxxxxxxxxxx"Live and test keys
Permissions
Grant each key only what it needs. Common permissions:
A request without the required permission returns 403 forbidden.
IP allowlist
Optionally restrict a key to specific IPv4/IPv6 addresses or CIDR ranges, e.g. 203.0.113.0/24. Requests from other addresses are rejected with 403.
Expiry and revocation
Keys can carry an expiry date. Revoking a key in the dashboard takes effect immediately. The dashboard also shows when each key was last used.
Failed authentication
{
"error": {
"code": "unauthorized",
"message": "authentication required",
"details": {},
"request_id": "01a1cc77ecf374f9bdd7cf0b762e870d"
}
}