Skip to content
couryo

Developer guideReference

Errors

Couryo API error format, types, HTTP statuses and every code with cause and fix.

View as Markdown

Every error has the same shape. The code is stable: you can rely on it in your code. Each code always has the same type and the same HTTP status.

Error
{
  "error": {
    "type": "invalid_request",
    "code": "domain_not_verified",
    "message": "The domain example.com is not verified in this project yet.",
    "param": "from",
    "doc_url": "https://couryo.com/docs/errors#domain_not_verified",
    "request_id": "req_6f2a9c1e7b0k3m4n"
  }
}
Field What it is
type the error category (table below)
code the exact reason, stable
message a human explanation, in English or Portuguese following Accept-Language (Portuguese by default; send Accept-Language: en)
param the offending field, when there is one (for example to[1] or emails[2].from)
doc_url a link to the explanation of this code
request_id the request ID, same as the Request-Id header; send it to support if you need help

Types#

type HTTP When
invalid_request 400 or 422 the request has a problem you can fix
authentication 401 missing or invalid key
permission 403 the key or the plan does not allow this
not_found 404 the resource or route does not exist
conflict 409 a conflict, such as a reused idempotency key
rate_limited 429 too many calls in a short time
tier_limit 429 or 402 a limit of your level, your plan, your spending limit or your AI credits
api_error 500 or 503 a problem on our side; you can retry

Codes#

code type HTTP Summary
missing_field invalid_request 400 a required field is missing
invalid_field invalid_request 400 a field has an invalid value
invalid_json invalid_request 400 the body is not JSON
batch_too_large invalid_request 400 more than 100 emails in a batch
invalid_cloudflare_token invalid_request 400 Cloudflare token refused
cloudflare_zone_not_found invalid_request 400 the token cannot reach the domain's zone
invalid_two_factor_code invalid_request 400 wrong two-step verification code (dashboard)
domain_not_verified invalid_request 422 the from domain is not verified
recipient_suppressed invalid_request 422 every recipient is suppressed
recipient_undeliverable invalid_request 422 a recipient would surely bounce the email
recipient_unproven invalid_request 422 marketing to an address the account has not reached yet (list hygiene on)
missing_api_key authentication 401 no key
invalid_api_key authentication 401 invalid key
not_authenticated authentication 401 dashboard call without a session
two_factor_required authentication 401 the second login step is missing (dashboard)
insufficient_scope permission 403 the key's scope is not enough
ip_not_allowed permission 403 IP outside the key's list
live_key_required permission 403 a test key on live data
sandbox_recipient permission 403 level 0 account sending outside the account
domain_limit_reached permission 403 the account already has the plan's domains
automations_limit_reached permission 403 active sequences or emails per sequence above the plan
campaigns_not_available permission 403 the plan or level does not send campaigns
inbound_not_available permission 403 the plan does not receive email (inbound)
import_limit_reached permission 403 the contact import is above the plan limit
forbidden_origin permission 403 dashboard write from another site
insufficient_role permission 403 your role in the account does not allow the action (dashboard)
member_limit_reached permission 403 the account reached the people ceiling (dashboard)
resource_not_found not_found 404 unknown ID
route_not_found not_found 404 unknown route
idempotency_conflict conflict 409 same idempotency key, different body
idempotency_in_progress conflict 409 the same request is still running
domain_exists conflict 409 domain already registered
already_suppressed conflict 409 address already on the list
last_project conflict 409 trying to delete the only project
template_name_exists conflict 409 a template with this name already exists in the project
two_factor_already_enabled conflict 409 two-step verification is already on (dashboard)
campaign_invalid_state conflict 409 the campaign does not accept the action in its current status
email_not_scheduled conflict 409 the email is no longer scheduled, so it cannot be rescheduled or cancelled
export_in_progress conflict 409 another export of the project is running
account_pending_deletion conflict 409 the account is scheduled for deletion
last_owner conflict 409 the action would leave the account without an owner (dashboard)
rate_limited rate_limited 429 too many calls per second
daily_limit_reached tier_limit 429 daily limit reached
daily_queue_full tier_limit 429 daily limit reached and the next-day queue is full
monthly_limit_reached tier_limit 429 monthly quota reached
spend_limit_reached tier_limit 429 overage reached your spending limit
sending_paused tier_limit 429 sending paused, with the reason
ai_credits_exhausted tier_limit 402 AI credits ran out
internal_error api_error 500 an error on our side
billing_unavailable api_error 503 billing unavailable right now
ai_unavailable api_error 503 AI feature unavailable right now; nothing was charged
content_blocked invalid_request 422 content with signs of a scam or an attachment of a blocked type
suppression_not_removable permission 403 complaint or unsubscribe: only the person can come back
api_key_paused permission 403 the key was paused by the automatic protection
captcha_failed permission 403 the anti-robot check of the sign-up failed (dashboard)
pending_domains_limit permission 403 too many domains waiting for verification
timezone_change_too_soon conflict 409 the account time zone already changed in the last 30 days (dashboard)
tax_id_in_use conflict 409 the company ID (CNPJ) is already checked on another account (dashboard)
inbox_test_not_available permission 403 the inbox placement test is part of the paid plans
inbox_test_limit_reached permission 403 the inbox tests of the month or of the day are used up
inbox_test_unavailable conflict 409 the test mailboxes are still being set up
inbox_test_running conflict 409 an inbox test is already running in the project
signup_limit_reached rate_limited 429 too many new accounts from the same network today (dashboard)
tool_limit_reached rate_limited 429 the free daily calls of a tool are used up

missing_field#

A required field is missing, named in param. To send, from, to, subject and one of html or text are required (with neither, param is html). With template, the subject and body come from the template.

invalid_field#

The field named in param has a value we do not accept: a malformed address, more than 50 recipients across to, cc and bcc, a scheduled_at in the past or more than 30 days ahead, a webhook URL without https://. The message says what is wrong. In a batch, param includes the index: emails[2].to[0].

invalid_json#

The body is not valid JSON. Check Content-Type: application/json and your quotes.

batch_too_large#

The batch has more than 100 emails. Split it into smaller calls.

invalid_cloudflare_token#

Cloudflare did not accept the token. It needs the Zone > DNS > Edit permission for the domain. See Domains and DNS.

cloudflare_zone_not_found#

The token is valid but does not give access to the domain's zone on Cloudflare. Create the token including that zone.

invalid_two_factor_code#

Dashboard only. The 6-digit code (or recovery code) is wrong, expired or already used. Check your phone's clock and use the new code. After 5 errors in 15 minutes, the answer becomes rate_limited for a few minutes.

domain_not_verified#

The from domain is not verified in the key's project. Verify it in Domains and DNS and try again. ck_test_ keys do not need a verified domain.

recipient_suppressed#

Every recipient is on the suppression list, because of a hard bounce, a complaint, an unsubscribe or a manual entry. param points to the first one (to[n]). If only some recipients are suppressed, the email goes to the others and the timeline gets a suppressed event for each skipped address.

recipient_undeliverable#

A recipient would surely bounce the email, so it never leaves Couryo (every bounce weighs on sending reputation). param points to it (to[n]). The reasons:

  • the domain does not receive email: it has no mail server in DNS (often a typo, such as gmial.com);
  • the mailbox does not exist: its provider recently answered, to any Couryo sender, that the address is unknown (valid for 180 days);
  • in marketing, role addresses such as abuse@, postmaster@ and noreply@, which nobody subscribes.

Check the address with the person before trying again. ck_test_ keys skip this check.

recipient_unproven#

Only happens on marketing from accounts with list hygiene turned on (ask support). There, marketing only goes to an address the account already reached: it received one of its emails (such as the welcome or confirmation email), opened or clicked, confirmed its sign-up or passed the address check with the account's key (GET /v1/tools/verify-email, valid for 90 days). param points to it (to[n]). Send the transactional email first or verify the address. Transactional email has no such rule.

missing_api_key#

The Authorization: Bearer ck_... header is missing. See Authentication.

invalid_api_key#

The key does not exist, was deleted or was copied only in part. Create a new one in the dashboard if needed.

not_authenticated#

A dashboard call (/api) without a session. Sign in again at app.couryo.com. It never happens on the public API (/v1).

two_factor_required#

Dashboard only. The account has two-step verification on and the sign-in has not received the authenticator code yet. The dashboard opens the code screen on its own.

insufficient_scope#

The key is not allowed to do this. For example, a send key trying to read emails, which needs read. The message says which scope is missing.

live_key_required#

A ck_test_ key only sends and reads test emails (/v1/emails, /v1/events, campaigns) and reads the project setup (domains, templates, webhooks, topics). Contacts, suppressions, received emails, sequences, inbox tests and any setup change touch live data, so they need a ck_live_ key.

ip_not_allowed#

The key has an allowed IP list and the call came from another address. Adjust the list in the dashboard.

sandbox_recipient#

The account is on level 0 (test mode), or the sender is teste@sandbox.couryo.com, and that path only sends to the account's own people. To email anyone, the account moves to level 1 on its own once it has a verified domain plus one sign of who stands behind it: a card on file, a checked company ID (CNPJ) or a verified domain registered more than 30 days ago. With the test sender, just send from one of your verified domains. See Limits and levels.

domain_limit_reached#

The account already has the number of domains its plan allows: Free 1, Pro 10, Scale 50, Enterprise unlimited (across all projects). Delete a domain you do not use or change plans. The message gives the current limit and the next plan's.

automations_limit_reached#

Activating a sequence (or adding one more email to an active sequence) would go beyond what the plan allows: on Free, and on Pro without the Automations add-on, 1 active sequence with up to 3 emails. The response carries upgrade_options, with what lifts the limit and its monthly price:

JSON
"upgrade_options": [
  { "kind": "addon", "id": "automations", "price_cents": 900, "currency": "USD", "interval": "month", "url": "https://app.couryo.com/billing?addon=automations" },
  { "kind": "plan", "id": "scale", "price_cents": 5900, "currency": "USD", "interval": "month", "url": "https://app.couryo.com/billing?plan=scale" }
]

Pause another sequence, remove emails from it, turn on the add-on or move to Scale, which includes it. Drafts do not count. See Sequences.

campaigns_not_available#

Sending or scheduling a campaign needs the Automations add-on (on Pro), Scale or Enterprise, and trust level 1 or more. Without the plan, the response carries upgrade_options (the add-on and Scale, with the monthly price); without the level, verify a domain and add a card (or have your company ID checked, or use a domain registered more than 30 days ago), and the account moves to level 1 on its own. Drafts and tests work on any plan.

inbound_not_available#

Receiving email is part of the Pro, Scale and Enterprise plans. On Free, the inbound routes answer 403 with upgrade_options (the Pro plan, with the monthly price).

forbidden_origin#

A dashboard write came from another site (CSRF protection). It never happens on the public API.

insufficient_role#

Dashboard only. Your role in the account does not allow the action: for example, a viewer creating a key, or a developer changing billing. The message says your role and the role the action needs. Ask whoever manages the account.

member_limit_reached#

Dashboard only. The account reached 50 people, counting pending invitations. The ceiling is the same on every plan (there is no per-person pricing). Remove someone or revoke an invitation.

resource_not_found#

The ID does not exist in this project, or belongs to another project. The message says which resource was not found.

route_not_found#

The path does not exist. Check the method and the URL, for example POST /v1/emails.

idempotency_conflict#

The same Idempotency-Key was used in the last 24 hours with a different body. Use a new key for a new request. See Idempotency.

idempotency_in_progress#

A request with the same Idempotency-Key is still being processed. Wait for Retry-After (1 second) and repeat: you get the first request's response.

domain_exists#

This domain is already on this account, or it was already verified on another Couryo account. A domain only waiting for verification on another account does not stop you: whoever publishes the DNS records first keeps it. If it is yours and was verified on another account, contact support.

already_suppressed#

The address is already on the suppression list for that stream.

last_project#

The account needs at least one project. Create another one before deleting this one.

template_name_exists#

The project already has a template with this name. Pick another name or change the existing template with PATCH /v1/templates/{id}.

two_factor_already_enabled#

Dashboard only. Two-step verification is already on; to switch phones, turn it off and set it up again.

campaign_invalid_state#

The campaign does not accept the action in its current status: editing one that is sending, resuming a cancelled one, deleting one that was not cancelled, changing the audience after sending started. The message gives the current status.

email_not_scheduled#

Only a scheduled email that has not started sending can be rescheduled or cancelled. This one was already sent, is sending (its time came) or was cancelled. Check status with GET /v1/emails/{id}.

export_in_progress#

Another CSV export of the same project is still running. Wait for it to finish and try again.

import_limit_reached#

The contact import is above the plan limit: rows per import or rows every 24 hours (Free 1,000 and 2,000, Pro 50,000 and 100,000, Scale 200,000 and 400,000). Split the file, wait or change plans.

account_pending_deletion#

The owner asked to delete the account. During the 7-day grace period, API keys, apps connected through MCP, sending and dashboard changes are stopped. The message gives the date. Canceling the deletion under Settings > Privacy brings everything back.

last_owner#

Dashboard only. The account always needs an owner: they cannot leave, be removed or change roles. Transfer the ownership first. It also shows up when accepting an invitation while owning another account that is in use.

rate_limited#

Too many calls in a short time (the default is 10 per second per key). Wait the seconds in the Retry-After header and retry with the same Idempotency-Key. The RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset headers show your headroom.

daily_limit_reached#

You reached your trust level's daily limit, or the Free plan's (100 per day). The message gives the limit, how much was sent and what is missing to move up a level. The counter resets at midnight in your account's time zone.

To keep the send, keep it for the next day: send with "on_daily_limit": "queue" or change the project (marketing already keeps by default). See Daily limit.

daily_queue_full#

The account reached its daily limit and the queue of emails kept for the next day hit its cap: 5 days of limit in recipients (500 on level 1). So this email did not go into the queue. Send it again after the turn of the day, when the queue moves, cancel kept sends (POST /v1/emails/{id}/cancel, or under Emails in the dashboard) or lower the volume.

monthly_limit_reached#

You reached the monthly quota: 3,000 on the Free plan and also on level 1 of any plan. Sending resumes next month (on a paid plan, next period). On level 1, the quota goes up when the account reaches level 2; on Free, when you subscribe to Pro or Scale.

spend_limit_reached#

This month's overage reached the spending limit you set under Billing. All sending stops (transactional and marketing) until you raise the limit or the period renews. Nothing is charged above the cap.

sending_paused#

Sending is paused. On a regular pause, marketing stops and transactional email keeps going with up to 30 per day; on a full pause, everything stops. The message brings the reason, the numbers and how to fix it, and the dashboard has a Request review button. With param: "project", only the key's project is paused: the other projects of the account keep sending. See Limits and levels.

ai_credits_exhausted#

This cycle's AI credits ran out and there are not enough purchased credits for the operation (write, subjects, sequence or research). The message says how much the operation uses and how much is left. Buy a pack under Billing > AI credits, turn on automatic purchase or wait for the next cycle. On the Free plan, which has no monthly credits (only a one-time welcome bonus), the answer carries upgrade_options with the Pro plan. Sending email is never affected: without credits, personalization uses the default text and the email goes out normally. The review before sending spends no credits.

internal_error#

A problem on our side. The request was not processed. Retry with the same Idempotency-Key: there is no risk of a duplicate.

billing_unavailable#

Billing is unavailable right now (checkout or payment portal). Try again in a few minutes; sending email is not affected.

ai_unavailable#

The AI feature did not answer in time or returned something that failed our check. No credits were charged (what was reserved goes back right away). Try again in a moment.

content_blocked#

The email did not go out. Either it has an attachment of a type Couryo never sends (param: "attachments": .html and .svg pages, scripts such as .js and programs such as .exe; send a link or a PDF), or the content carries the marks of phishing (for example, a bank's name as the sender of another domain). In the second case we open a review: if it is a mistake, the team releases it within 1 business day and you get the answer by email; after that, the same content goes through. See Content filter.

suppression_not_removable#

The address is on the list because of a complaint (marked as spam) or an unsubscribe, and those reasons do not leave through the dashboard, the API or MCP. Under privacy law and the Gmail and Yahoo rules, only the person can choose to receive again: ask them to sign up again on your site or app. Hard bounces and manual entries leave as usual. See Suppressions.

api_key_paused#

The automatic protection paused the key on a sign of a leaked key: an extreme sending spike, sudden sends to many new domains or a high bounce rate. The message has the numbers, and a notice went by email. If it was you, reactivate it under API keys; if you do not recognize the sends, delete the key and create a new one. See Limits and levels.

captcha_failed#

Dashboard sign-up only: the anti-robot check did not confirm. Reload the page, complete the check above the button and try again.

pending_domains_limit#

The account already has 5 domains waiting for DNS verification. Finish verifying one of them or delete the ones you will not use. A domain that does not verify in 7 days is removed on its own.

timezone_change_too_soon#

Dashboard only: the account time zone changes at most once every 30 days (the first change is free). A change never resets what was already sent that day. The message says when the next change is allowed.

tax_id_in_use#

Dashboard only: this company ID (CNPJ) is already checked on another Couryo account. If the company is yours, ask whoever runs the other account to invite you, or contact support.

signup_limit_reached#

Sign-up only: too many new accounts were created from the same network today. Try again tomorrow or contact support. People who already have an account sign in as usual.

inbox_test_not_available#

The inbox placement test is part of the Pro, Scale and Enterprise plans. On Free the answer is 403 with upgrade_options (the Pro plan, with its monthly price).

inbox_test_limit_reached#

The inbox tests of the month (30 on Pro, 100 on Scale, 300 on Enterprise) or of the day (10 per account) are used up. The message says which one; for the monthly cap, upgrade_options brings the next plan.

inbox_test_unavailable#

The platform test mailboxes are still being set up. Nothing was sent; try again in a few days. Meanwhile the dashboard shows "Being set up".

inbox_test_running#

An inbox test is already looking for its copies in this project. Wait for the result (up to 10 minutes) with GET /v1/deliverability/inbox-tests/{id} and run again.

tool_limit_reached#

Today's free calls of one of the free tools are used up: without a key, 50 email verifications, 20 domain checks and 50 error explanations a day per IP; with any Couryo key, 2,000, 300 and 2,000 a day per account. The Retry-After header says in how many seconds the counter resets. Without a key, create a free account and send Authorization: Bearer ck_... for the higher limit.