La référence ci-dessous est en anglais pour que codes et messages correspondent à ce que renvoie l’API.
Forme de l’erreur #
{
"error": {
"type": "authentication_error",
"code": "api_key_missing",
"message": "No API key. Send it as Authorization: Bearer tn_live_… or tn_test_….",
"param": null,
"doc_url": "https://tellnod.com/docs/api/errors#api_key_missing",
"request_id": "req_4f1c2a9e0b7d3c5a8e6f1d20"
}
}Types d’erreur #
authentication_error- The API key is missing or does not work.
permission_error- The key is valid but may not do this, or the workspace may not do it now.
invalid_request_error- The request is wrong. Change it before retrying.
idempotency_error- The Idempotency-Key conflicts with an earlier request.
rate_limit_error- Too many requests or tests. Wait, then retry.
api_error- A problem on Tellnod’s side. Retry with the same Idempotency-Key.
Codes #
| Code | Statut HTTP | Signification | Solution |
|---|---|---|---|
api_key_missingauthentication_error | 401 | The request has no API key. | Send the key in the Authorization header: Authorization: Bearer tn_test_… or tn_live_…. |
api_key_invalidauthentication_error | 401 | The key is not a Tellnod key, or it was not copied whole. | Copy the full key again, including the tn_test_ or tn_live_ prefix, with no spaces or line breaks. |
api_key_revokedauthentication_error | 401 | The key was revoked and no longer works. | Use another active key, or ask for a new one. |
api_key_expiredauthentication_error | 401 | The key reached its expiry date. | Use another active key, or ask for a new one. |
api_key_inactiveauthentication_error | 401 | The person who created the key is no longer a member of the workspace. | Ask a current member of the workspace for a new key. |
version_invalidinvalid_request_error | 400 | The Tellnod-Version header names a version that does not exist. | Send a known version date, such as 2026-11-10, or leave the header out to use the latest. |
invalid_jsoninvalid_request_error | 400 | The request body could not be read as JSON. | Send valid JSON with Content-Type: application/json. |
body_too_largeinvalid_request_error | 413 | The request body is larger than 2 MB. | Split the data into smaller requests. Batch endpoints take up to 1,000 rows per request. |
parameter_missinginvalid_request_error | 400 | A required field is missing. param names it. | Add the field named in param and send the request again. |
parameter_invalidinvalid_request_error | 400 | A field has a value the endpoint does not accept. param names it and message says why. | Correct the field named in param, following the message. |
parameter_unknowninvalid_request_error | 400 | The body has a field the endpoint does not know. param names it. | Remove the field, or check its spelling. Field names are snake_case. |
idempotency_key_invalidinvalid_request_error | 400 | The Idempotency-Key header is empty, too long or uses characters it may not. | Use 1 to 200 visible ASCII characters, such as a UUID you generate for each write. |
route_not_foundinvalid_request_error | 404 | There is no endpoint at this method and path. | Check the method, the path and the /v1 prefix. |
not_foundinvalid_request_error | 404 | No object with this id exists in your workspace. | Check the id. Objects from another workspace are reported the same way. |
field_read_onlyinvalid_request_error | 400 | The field cannot be changed after the object is created. | Leave the field out of the update. To use a new email address, create a new contact. |
email_invalidinvalid_request_error | 400 | The email address is not valid. | Send one complete address, such as name@example.com. |
duplicate_emailinvalid_request_error | 400 | The same email address appears more than once in one batch. | Send each address once per batch. |
phone_invalidinvalid_request_error | 400 | The phone number is not valid. | Send the number in international format, starting with + and the country code. |
consent_requiredinvalid_request_error | 400 | A new contact needs a consent value, recorded as the legal basis for email. | Send consent: granted if the person agreed to receive marketing email, otherwise denied. |
event_type_invalidinvalid_request_error | 400 | The event type is not one the API knows. | Use one of the event types listed in message, such as order.created or cart.updated. |
event_type_not_supportedinvalid_request_error | 400 | custom.* events are not stored yet. | Send order, cart, checkout or product events for now. |
contact_deletedinvalid_request_error | 409 | This person was deleted from the workspace and is kept only as a do-not-email record. | Do not add the person again. They can be emailed again only if they sign up themselves. |
contact_has_no_emailinvalid_request_error | 400 | The contact has no email address, so it cannot be updated through the API yet. | Update the contact in Tellnod instead. |
send_type_not_availableinvalid_request_error | 400 | This send type is not available through the API. | Use type test to send yourself a test. Campaigns are prepared in Tellnod, where a person confirms them. |
test_recipient_not_allowedpermission_error | 403 | A test key or a test send may only reach the workspace’s own verified addresses. | Send to an address verified in the workspace. Nothing was sent. |
rate_limitedrate_limit_error | 429 | Too many requests in the last minute for this key, or too many requests without a valid key. | Wait the number of seconds in the Retry-After header, then retry. Spread batch work over time. |
internal_errorapi_error | 500 | Something failed on Tellnod’s side. Nothing was changed. | Retry with the same Idempotency-Key. If it keeps failing, write to us with the request_id. |
validationinvalid_request_error | 400 | The request did not pass a business rule. message says which one. | Change the request as the message describes. |
scope_requiredpermission_error | 403 | The key does not have the scope this endpoint needs. | Use a key that includes the scope named in message. |
idempotency_conflictidempotency_error | 409 | The Idempotency-Key was already used with a different endpoint or body. | Use a new key for each different request. Reuse a key only to retry the same request. |
idempotency_in_progressidempotency_error | 409 | A request with this Idempotency-Key is still running. | Wait a moment and retry with the same key to get its result. |
draft_edit_conflictinvalid_request_error | 409 | The message changed since you read it. | Read the message again and apply your change to the latest version. |
already_sentinvalid_request_error | 409 | This message was already sent, or is scheduled, on this channel. | Create a new message for another send. |
workspace_pausedpermission_error | 403 | Sending is paused for this workspace. | Resume sending in Tellnod, or contact support if you did not pause it. |
test_limit_reachedrate_limit_error | 429 | The workspace reached today’s limit of test sends. | Retry tomorrow. |
email_not_verifiedpermission_error | 403 | The address has not been verified. | Verify the address in Tellnod, then retry. |
message_in_useinvalid_request_error | 409 | A scheduled or running send uses this message. | Wait for the send to finish, or cancel it first. |
account_review_requiredpermission_error | 403 | The workspace must be reviewed before it can send. | Complete the review steps shown in Tellnod. |
confirmation_requires_userpermission_error | 403 | Only a person can confirm this action. An API key cannot. | Confirm the action in Tellnod. |
send_authorization_requiredpermission_error | 403 | The send needs a person’s authorization first. | Authorize the send in Tellnod, then retry. |
contact_limit_exceededpermission_error | 403 | The write would take the workspace over its plan’s contact limit. | Remove contacts you no longer email, or move to a plan with a higher limit. |
account_frozenpermission_error | 403 | The account is frozen while a delivery or abuse issue is reviewed. | Contact support. Nothing is sent until the review ends. |
channel_not_in_planpermission_error | 403 | The workspace’s plan does not include this channel. | Move to a plan that includes the channel. |
feature_not_in_planpermission_error | 403 | The workspace’s plan does not include this feature. | Move to a plan that includes the feature. |
send_quota_exceededpermission_error | 403 | The workspace has used its emails for this month. | Wait for the next month, add a send pack or move to a larger plan. |
canary_recipient_refusedpermission_error | 403 | This monitoring workspace may only send to the email provider’s test addresses. | Use a regular workspace. |
platform_sending_pausedpermission_error | 403 | Tellnod has paused sending for every workspace for a short time. | Retry later. Scheduled sends are held, not dropped. |
workspace_deletion_scheduledpermission_error | 403 | The workspace is scheduled for deletion, so it no longer sends. | Cancel the deletion in Tellnod if you want to keep using it. |
suppression_secret_missingapi_error | 503 | The service is missing configuration it needs to protect opt-outs, so it refuses to write. | Retry later. If it persists, write to us with the request_id. |
Un code absent de cette liste est renvoyé comme 400 invalid_request_error. Son message indique quoi modifier.