HTTP Response Codes

HTTP response codes returned by MassAccess API for /api/v1/ endpoints.

HTTP StatusCodeDescription
202ACCEPTEDMessage accepted into processing queue
401UNAUTHORIZEDInvalid or missing X-API-Key
422VALIDATION_ERRORValidation error
429RATE_LIMITToo many requests
500INTERNAL_ERRORServer-side error

Success Response

202 Accepted

json
{
  "status": "accepted",
  "data": {
    "message_id": "550e8400-e29b-41d4-a716-446655440000",
    "status": "new"
  }
}

Error Response Format

When an error occurs, the API returns a JSON object with error details:

json
{
  "status": "error",
  "code": "INTERNAL_ERROR"
}

Sending Messages · Webhooks Format