Allerto API

Errors

Every error has the same shape and an HTTP status:

{
  "error": {
    "code": "missing_inputs",
    "message": "Missing inputs: amount",
    "details": ["amount"]
  }
}

code is stable: branch on it, not on message. details is present when there is something to point at (fields, contacts, current revision).

HTTPCodeMeaning
400invalid_requestThe body or query does not match the schema; details lists paths
400invalid_agentThe agent document breaks a rule; details has path and message per problem
400missing_inputs, invalid_inputs, unknown_inputsThe call's inputs do not match the agent
400not_outbound_agent, not_inbound_agentWrong agent type for the operation
400different_accountThe agent belongs to another account (routing a number)
409client_has_numbersA client still has active numbers: disable them or route them to another agent before deleting it
400invalid_callback_urlNot HTTPS, has credentials, or not public
400test_number_required, test_number_in_live_modeMode and number do not match
400invalid_contactsA campaign contact is invalid; details has index, code, message
400caller_id_not_ownedcalling.callerId is not one of the account's numbers
400webhook_secret_missingCreate the signing secret before using webhook delivery
400email_not_configuredEmail delivery is not available on this server
400invalid_cursor, invalid_json, payload_too_large
401missing_api_key, invalid_api_key
403partner_only, forbiddenThe operation needs an account key
404not_found, client_not_foundMissing, or not visible to this key (including the other mode)
409revision_conflictThe draft changed; details.revision is the current one
409agent_not_published, agent_archived, type_immutable
409suppressedThe number is on the do-not-call list
409call_already_started, not_cancellable, invalid_campaign_state
409duplicateUnique value already used
500internal_errorRetry with the same Idempotency-Key