When an error occurs, the API returns a structured error response:

{
  "success": false,
  "error": {
    "code": "E1001",
    "message": "Invalid or malformed token",
    "requestId": "req_abc123xyz"
  }
}

Error Code Reference

CodeHTTPDescription
E1001401Invalid or malformed token
E1003403Insufficient permissions
E1004429Rate limit exceeded
E1005401Authentication token required
E2001400Invalid request format
E2002400Required field is missing
E4001422Insufficient SMS credit
E4002400Invalid recipient number
E4003400Message too long
E7001404Contact not found
E7006409Duplicate mobile number
E8001404Ticket not found
E8002423Ticket is closed
E9001500Internal server error

HomaCRM External API

For support, create a ticket via /support/tickets endpoint.