# API error codes

> Every error has the same shape. Branch on type, look up code here, and quote request_id when you write to us.

Canonical: https://tellnod.com/docs/api/errors  
Last updated: 2026-10-15  
Author: Tellnod team

## Error shape

```json
{
  "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"
  }
}
```

## Error types

- `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 | Type | HTTP status | Meaning | How to fix |
| --- | --- | --- | --- | --- |
| `api_key_missing` | authentication_error | 401 | The request has no API key. | Send the key in the Authorization header: Authorization: Bearer tn_test_… or tn_live_…. |
| `api_key_invalid` | authentication_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_revoked` | authentication_error | 401 | The key was revoked and no longer works. | Use another active key, or ask for a new one. |
| `api_key_expired` | authentication_error | 401 | The key reached its expiry date. | Use another active key, or ask for a new one. |
| `api_key_inactive` | authentication_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_invalid` | invalid_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_json` | invalid_request_error | 400 | The request body could not be read as JSON. | Send valid JSON with Content-Type: application/json. |
| `body_too_large` | invalid_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_missing` | invalid_request_error | 400 | A required field is missing. param names it. | Add the field named in param and send the request again. |
| `parameter_invalid` | invalid_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_unknown` | invalid_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_invalid` | invalid_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_found` | invalid_request_error | 404 | There is no endpoint at this method and path. | Check the method, the path and the /v1 prefix. |
| `not_found` | invalid_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_only` | invalid_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_invalid` | invalid_request_error | 400 | The email address is not valid. | Send one complete address, such as name@example.com. |
| `duplicate_email` | invalid_request_error | 400 | The same email address appears more than once in one batch. | Send each address once per batch. |
| `phone_invalid` | invalid_request_error | 400 | The phone number is not valid. | Send the number in international format, starting with + and the country code. |
| `consent_required` | invalid_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_invalid` | invalid_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_supported` | invalid_request_error | 400 | custom.* events are not stored yet. | Send order, cart, checkout or product events for now. |
| `contact_deleted` | invalid_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_email` | invalid_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_available` | invalid_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_allowed` | permission_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_limited` | rate_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_error` | api_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. |
| `validation` | invalid_request_error | 400 | The request did not pass a business rule. message says which one. | Change the request as the message describes. |
| `scope_required` | permission_error | 403 | The key does not have the scope this endpoint needs. | Use a key that includes the scope named in message. |
| `idempotency_conflict` | idempotency_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_progress` | idempotency_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_conflict` | invalid_request_error | 409 | The message changed since you read it. | Read the message again and apply your change to the latest version. |
| `already_sent` | invalid_request_error | 409 | This message was already sent, or is scheduled, on this channel. | Create a new message for another send. |
| `workspace_paused` | permission_error | 403 | Sending is paused for this workspace. | Resume sending in Tellnod, or contact support if you did not pause it. |
| `test_limit_reached` | rate_limit_error | 429 | The workspace reached today’s limit of test sends. | Retry tomorrow. |
| `email_not_verified` | permission_error | 403 | The address has not been verified. | Verify the address in Tellnod, then retry. |
| `message_in_use` | invalid_request_error | 409 | A scheduled or running send uses this message. | Wait for the send to finish, or cancel it first. |
| `account_review_required` | permission_error | 403 | The workspace must be reviewed before it can send. | Complete the review steps shown in Tellnod. |
| `confirmation_requires_user` | permission_error | 403 | Only a person can confirm this action. An API key cannot. | Confirm the action in Tellnod. |
| `send_authorization_required` | permission_error | 403 | The send needs a person’s authorization first. | Authorize the send in Tellnod, then retry. |
| `contact_limit_exceeded` | permission_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_frozen` | permission_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_plan` | permission_error | 403 | The workspace’s plan does not include this channel. | Move to a plan that includes the channel. |
| `feature_not_in_plan` | permission_error | 403 | The workspace’s plan does not include this feature. | Move to a plan that includes the feature. |
| `send_quota_exceeded` | permission_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_refused` | permission_error | 403 | This monitoring workspace may only send to the email provider’s test addresses. | Use a regular workspace. |
| `platform_sending_paused` | permission_error | 403 | Tellnod has paused sending for every workspace for a short time. | Retry later. Scheduled sends are held, not dropped. |
| `workspace_deletion_scheduled` | permission_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_missing` | api_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. |

A code that is not listed here is a 400 invalid_request_error. Its message says what to change.