รหัสข้อผิดพลาดของ API

ข้อผิดพลาดทุกรายการมีรูปแบบเดียวกัน แยกการทำงานตาม type ค้นหา code ที่นี่ และแนบ request_id เมื่อติดต่อเรา

ข้อมูลอ้างอิงด้านล่างเป็นภาษาอังกฤษ เพื่อให้ตรงกับรหัสและข้อความที่ API ส่งกลับ

รูปแบบข้อผิดพลาด #

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

ประเภทข้อผิดพลาด #

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.

รหัส #

รหัสสถานะ HTTPความหมายวิธีแก้
api_key_missingauthentication_error401The request has no API key.Send the key in the Authorization header: Authorization: Bearer tn_test_… or tn_live_….
api_key_invalidauthentication_error401The 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_error401The key was revoked and no longer works.Use another active key, or ask for a new one.
api_key_expiredauthentication_error401The key reached its expiry date.Use another active key, or ask for a new one.
api_key_inactiveauthentication_error401The 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_error400The 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_error400The request body could not be read as JSON.Send valid JSON with Content-Type: application/json.
body_too_largeinvalid_request_error413The 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_error400A required field is missing. param names it.Add the field named in param and send the request again.
parameter_invalidinvalid_request_error400A 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_error400The 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_error400The 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_error404There is no endpoint at this method and path.Check the method, the path and the /v1 prefix.
not_foundinvalid_request_error404No object with this id exists in your workspace.Check the id. Objects from another workspace are reported the same way.
field_read_onlyinvalid_request_error400The 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_error400The email address is not valid.Send one complete address, such as name@example.com.
duplicate_emailinvalid_request_error400The same email address appears more than once in one batch.Send each address once per batch.
phone_invalidinvalid_request_error400The phone number is not valid.Send the number in international format, starting with + and the country code.
event_type_invalidinvalid_request_error400The 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_error400custom.* events are not stored yet.Send order, cart, checkout or product events for now.
contact_deletedinvalid_request_error409This 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_error400The 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_error400This 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_error403A 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_error429Too 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_error500Something 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_error400The request did not pass a business rule. message says which one.Change the request as the message describes.
scope_requiredpermission_error403The key does not have the scope this endpoint needs.Use a key that includes the scope named in message.
idempotency_conflictidempotency_error409The 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_error409A 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_error409The message changed since you read it.Read the message again and apply your change to the latest version.
already_sentinvalid_request_error409This message was already sent, or is scheduled, on this channel.Create a new message for another send.
workspace_pausedpermission_error403Sending is paused for this workspace.Resume sending in Tellnod, or contact support if you did not pause it.
test_limit_reachedrate_limit_error429The workspace reached today’s limit of test sends.Retry tomorrow.
email_not_verifiedpermission_error403The address has not been verified.Verify the address in Tellnod, then retry.
message_in_useinvalid_request_error409A scheduled or running send uses this message.Wait for the send to finish, or cancel it first.
account_review_requiredpermission_error403The workspace must be reviewed before it can send.Complete the review steps shown in Tellnod.
confirmation_requires_userpermission_error403Only a person can confirm this action. An API key cannot.Confirm the action in Tellnod.
send_authorization_requiredpermission_error403The send needs a person’s authorization first.Authorize the send in Tellnod, then retry.
contact_limit_exceededpermission_error403The 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_error403The account is frozen while a delivery or abuse issue is reviewed.Contact support. Nothing is sent until the review ends.
channel_not_in_planpermission_error403The workspace’s plan does not include this channel.Move to a plan that includes the channel.
feature_not_in_planpermission_error403The workspace’s plan does not include this feature.Move to a plan that includes the feature.
send_quota_exceededpermission_error403The 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_error403This monitoring workspace may only send to the email provider’s test addresses.Use a regular workspace.
platform_sending_pausedpermission_error403Tellnod has paused sending for every workspace for a short time.Retry later. Scheduled sends are held, not dropped.
workspace_deletion_scheduledpermission_error403The 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_error503The 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.

รหัสที่ไม่อยู่ในรายการนี้จะส่งกลับเป็น 400 invalid_request_error และ message จะบอกสิ่งที่ต้องแก้