Guides
Errors
{
"error": {
"code": "conflict",
"message": "This campaign is already sending"
}
}The message names the field when the input is wrong, and says what to do when a rule stops the action. MCP tools answer the same object in an error result. Sending a campaign that is already sending or sent answers conflict, so a retried send never goes out twice.
| Code | Status | Meaning |
|---|---|---|
unauthorizedThe API key is missing, malformed, unknown or revoked. | 401 | The API key is missing, malformed, unknown or revoked. |
forbiddenThe key's level doesn't allow this action: a signups only key can only add contacts. | 403 | The key's level doesn't allow this action: a signups only key can only add contacts. |
not_foundThe newsletter, campaign, contact, segment, domain or key isn't in this account. | 404 | The newsletter, campaign, contact, segment, domain or key isn't in this account. |
validation_failedThe input doesn't match the schema or breaks a rule. The message names the field. | 400 | The input doesn't match the schema or breaks a rule. The message names the field. |
conflictThe resource's state doesn't allow it, e.g. sending a campaign that is already sending or sent. Retrying won't help. | 409 | The resource's state doesn't allow it, e.g. sending a campaign that is already sending or sent. Retrying won't help. |
rate_limitedToo many requests with this key, or too many of one action for the account, whose keys, apps and dashboard share its limits. Wait and retry. | 429 | Too many requests with this key, or too many of one action for the account, whose keys, apps and dashboard share its limits. Wait and retry. |
subscription_requiredThe account needs an active Apresly subscription. | 402 | The account needs an active Apresly subscription. |
plan_limit_emailsThe send needs more emails than the account has left this month. | 402 | The send needs more emails than the account has left this month. |
plan_limit_subscribersThe account has more active subscribers than its assigned limit allows. | 402 | The account has more active subscribers than its assigned limit allows. |
account_blockedThe account is blocked after spam signals (bounce or complaint rates, Gmail's spam rate in Google Postmaster Tools, a spam trap, the email provider) or by an admin. Nothing is sent, the tracked links in its emails stop redirecting, and only reads, pausing, unscheduling, revoking access work until an admin unblocks it. | 403 | The account is blocked after spam signals (bounce or complaint rates, Gmail's spam rate in Google Postmaster Tools, a spam trap, the email provider) or by an admin. Nothing is sent, the tracked links in its emails stop redirecting, and only reads, pausing, unscheduling, revoking access work until an admin unblocks it. |
sender_not_allowedThe from address is neither the newsletter's shared address nor on a verified domain of this account. | 422 | The from address is neither the newsletter's shared address nor on a verified domain of this account. |
send_check_failedA pre-send check failed: no postal address, subject or content, the email is over 100 KB, or its segment was deleted. | 422 | A pre-send check failed: no postal address, subject or content, the email is over 100 KB, or its segment was deleted. |
no_recipientsNobody is left to send to. | 422 | Nobody is left to send to. |
sending_disabledSending is turned off on this server. | 503 | Sending is turned off on this server. |
unavailableA service the action needs isn't configured or didn't answer. Retry later. | 503 | A service the action needs isn't configured or didn't answer. Retry later. |
internal_errorSomething failed on ApresMail's side. | 500 | Something failed on ApresMail's side. |
SMS_AMOUNT_INVALIDSMS operation could not complete (SMS_AMOUNT_INVALID). | 400 | SMS operation could not complete (SMS_AMOUNT_INVALID). |
SMS_REQUEST_INVALIDSMS operation could not complete (SMS_REQUEST_INVALID). | 400 | SMS operation could not complete (SMS_REQUEST_INVALID). |
SMS_SENDER_INVALIDSMS operation could not complete (SMS_SENDER_INVALID). | 400 | SMS operation could not complete (SMS_SENDER_INVALID). |
SMS_PHONE_INVALIDSMS operation could not complete (SMS_PHONE_INVALID). | 400 | SMS operation could not complete (SMS_PHONE_INVALID). |
SMS_CONTENT_INVALIDSMS operation could not complete (SMS_CONTENT_INVALID). | 400 | SMS operation could not complete (SMS_CONTENT_INVALID). |
SMS_CONTENT_TOO_LONGSMS operation could not complete (SMS_CONTENT_TOO_LONG). | 400 | SMS operation could not complete (SMS_CONTENT_TOO_LONG). |
SMS_CODE_INVALIDSMS operation could not complete (SMS_CODE_INVALID). | 400 | SMS operation could not complete (SMS_CODE_INVALID). |
SMS_BUDGET_INSUFFICIENTSMS operation could not complete (SMS_BUDGET_INSUFFICIENT). | 409 | SMS operation could not complete (SMS_BUDGET_INSUFFICIENT). |
SMS_IDEMPOTENCY_CONFLICTSMS operation could not complete (SMS_IDEMPOTENCY_CONFLICT). | 409 | SMS operation could not complete (SMS_IDEMPOTENCY_CONFLICT). |
SMS_VERSION_CONFLICTSMS operation could not complete (SMS_VERSION_CONFLICT). | 409 | SMS operation could not complete (SMS_VERSION_CONFLICT). |
SMS_LIMIT_BELOW_USAGESMS operation could not complete (SMS_LIMIT_BELOW_USAGE). | 409 | SMS operation could not complete (SMS_LIMIT_BELOW_USAGE). |
SMS_QUALIFICATION_MISMATCHSMS operation could not complete (SMS_QUALIFICATION_MISMATCH). | 409 | SMS operation could not complete (SMS_QUALIFICATION_MISMATCH). |
SMS_OUTSIDE_WINDOWSMS operation could not complete (SMS_OUTSIDE_WINDOW). | 409 | SMS operation could not complete (SMS_OUTSIDE_WINDOW). |
SMS_AUDIENCE_LIMITSMS operation could not complete (SMS_AUDIENCE_LIMIT). | 409 | SMS operation could not complete (SMS_AUDIENCE_LIMIT). |
SMS_PHONE_UNAVAILABLESMS operation could not complete (SMS_PHONE_UNAVAILABLE). | 409 | SMS operation could not complete (SMS_PHONE_UNAVAILABLE). |
SMS_OPERATION_EXPIREDSMS operation could not complete (SMS_OPERATION_EXPIRED). | 410 | SMS operation could not complete (SMS_OPERATION_EXPIRED). |
SMS_CODE_EXPIREDSMS operation could not complete (SMS_CODE_EXPIRED). | 410 | SMS operation could not complete (SMS_CODE_EXPIRED). |
SMS_RATE_LIMITEDSMS operation could not complete (SMS_RATE_LIMITED). | 429 | SMS operation could not complete (SMS_RATE_LIMITED). |
SMS_CONFIGURATION_UNAVAILABLESMS operation could not complete (SMS_CONFIGURATION_UNAVAILABLE). | 503 | SMS operation could not complete (SMS_CONFIGURATION_UNAVAILABLE). |
SMS_DISABLEDSMS operation could not complete (SMS_DISABLED). | 503 | SMS operation could not complete (SMS_DISABLED). |
SMS_ACCOUNT_UNAVAILABLESMS operation could not complete (SMS_ACCOUNT_UNAVAILABLE). | 503 | SMS operation could not complete (SMS_ACCOUNT_UNAVAILABLE). |
SMS_NOT_QUALIFIEDSMS operation could not complete (SMS_NOT_QUALIFIED). | 503 | SMS operation could not complete (SMS_NOT_QUALIFIED). |
SMS_RATE_CARD_INVALIDSMS operation could not complete (SMS_RATE_CARD_INVALID). | 503 | SMS operation could not complete (SMS_RATE_CARD_INVALID). |
SMS_SENDER_NOT_READYSMS operation could not complete (SMS_SENDER_NOT_READY). | 503 | SMS operation could not complete (SMS_SENDER_NOT_READY). |
SMS_SCHEMA_UNAVAILABLESMS operation could not complete (SMS_SCHEMA_UNAVAILABLE). | 503 | SMS operation could not complete (SMS_SCHEMA_UNAVAILABLE). |
SMS_COST_CHANGEDSMS operation could not complete (SMS_COST_CHANGED). | 409 | SMS operation could not complete (SMS_COST_CHANGED). |
SMS_RATE_EXPIREDSMS operation could not complete (SMS_RATE_EXPIRED). | 409 | SMS operation could not complete (SMS_RATE_EXPIRED). |
SMS_BUILD_EXPIREDSMS operation could not complete (SMS_BUILD_EXPIRED). | 409 | SMS operation could not complete (SMS_BUILD_EXPIRED). |
SMS_SOURCE_UNAVAILABLESMS operation could not complete (SMS_SOURCE_UNAVAILABLE). | 503 | SMS operation could not complete (SMS_SOURCE_UNAVAILABLE). |