Skip to main content
All API requests require authentication using an API key. Include your API key in the Authorization header:
Authorization: Api-Key YOUR_API_KEY

Generating API Keys

Generate API keys in your Allo account settings.

API Key Scopes

Each API key has specific scopes that determine what operations it can perform:
ScopeDescription
WEBHOOKS_READ_WRITECreate, read, and update webhook configurations
CONVERSATIONS_READRead call records and history
CONTACTS_READRead contact information
SMS_SENDSend SMS and MMS messages

Example Request

curl -X GET "https://api.withallo.com/v1/api/contacts" \
  -H "Authorization: Api-Key YOUR_API_KEY"

Error Responses

If your API key is invalid or missing, you’ll receive a 401 Unauthorized response:
{
  "code": "API_KEY_INVALID",
  "details": null
}
If your API key lacks the required scope for an endpoint, you’ll receive a 403 Forbidden response:
{
  "code": "API_KEY_INSUFFICIENT_SCOPE",
  "details": [
    { "message": "required=CONTACTS_READ", "field": "scope" }
  ]
}