Developers
API error codes
Every error from /api/* has the same shape. Branch on code, show message to a person, and follow docs_url to the entry below. The older error field carries the same code, so integrations written against it keep working.
HTTP/1.1 404 Not Found
Content-Type: application/json
{
"error": "not_found",
"code": "not_found",
"message": "No such resource on this account.",
"docs_url": "https://smsnet.net/docs/errors#not_found"
}193 codes
- What it means
- AI features are off for this account.
- How to fix it
- AI runs on your own Anthropic key: add one in Settings, AI.
- What it means
- The request is not valid.
- How to fix it
- Check the request body against the API reference.
- What it means
- The message body is required.
- How to fix it
- Send a non-empty body (or a template_id).
- What it means
- The message body is too long.
- How to fix it
- At most 1600 characters.
- What it means
- A key cannot revoke itself.
- How to fix it
- Use another key or the portal.
- What it means
- Consent must be confirmed.
- How to fix it
- Set consent_confirmed: true once the recipients agreed to be messaged.
- What it means
- Write a few words about what happened.
- How to fix it
- Send a non-empty message, up to 5000 characters.
- What it means
- The payload cannot be turned into a message.
- How to fix it
- Send one JSON object (or a form), and use a template that produces some text.
- What it means
- That action is not one of the accepted values.
- How to fix it
- The error text lists the accepted values.
- What it means
- The AI key was not accepted.
- How to fix it
- Paste an Anthropic API key, which starts with sk-ant-, from console.anthropic.com, with credit on that account.
- What it means
- allowed_countries is not valid.
- How to fix it
- An array of ISO country codes, such as US or GB.
- What it means
- app_hash is not valid.
- How to fix it
- The 11-character hash of your Android app.
- What it means
- client_ref is not valid.
- How to fix it
- A string of at most 128 characters.
- What it means
- The code is not in the right format.
- How to fix it
- 4 to 8 digits.
- What it means
- A line control is not valid.
- How to fix it
- See the message for the field.
- What it means
- That coupon is not valid, or it has already been used.
- How to fix it
- Check the code, or ask whoever sent it.
- What it means
- daily_budget is not valid.
- How to fix it
- A whole number from 1 to 100000, or null.
- What it means
- The dial code is not valid.
- How to fix it
- 1 to 4 digits, without a plus.
- What it means
- That email address is not valid.
- How to fix it
- Send a full address such as name@example.com.
- What it means
- Unknown event type.
- How to fix it
- GET /api/v1/webhooks lists the event types.
- What it means
- expires_at is not valid.
- How to fix it
- Use a time after send_at (ISO-8601 or epoch ms).
- What it means
- The fallback provider settings are not valid.
- How to fix it
- See the message for the field.
- What it means
- The inbound privacy filter setting is not valid.
- How to fix it
- mode is all, texted, allowlist or private; days is 7 to 3650.
- What it means
- The OAuth code or refresh token is not valid.
- How to fix it
- Start the authorization again.
- What it means
- The hook settings are not valid.
- How to fix it
- Send name, phone_field (a path such as customer.phone) and template (text with {{field}} placeholders, at most 480 characters).
- What it means
- The Idempotency-Key header is not valid.
- How to fix it
- 1 to 255 characters.
- What it means
- length is not valid.
- How to fix it
- 6 to 8.
- What it means
- mode must be "live" or "test".
- How to fix it
- test keys send sandbox messages only.
- What it means
- The number looks wrong for its country, and this account is set not to send such numbers.
- How to fix it
- Check the number, or set number_check to warn or off in Settings, Sending and safety.
- What it means
- domain is not valid.
- How to fix it
- A host name such as app.example.com, with no scheme or port.
- What it means
- That preset is not one of the accepted values.
- How to fix it
- Use sms_retriever, webotp or ios_domain.
- What it means
- The request body could not be read.
- How to fix it
- Send valid JSON with Content-Type: application/json.
- What it means
- That is not a usable phone number.
- How to fix it
- Use E.164, e.g. +972501234567.
- What it means
- That phrase has no letters or digits in it.
- How to fix it
- Use a word or number.
- What it means
- That is not one of the paid plans.
- How to fix it
- GET /api/v1/plans lists them.
- What it means
- The redirect URI is not allowed.
- How to fix it
- Use https, http on loopback, or an app scheme.
- What it means
- The OAuth request is not valid.
- How to fix it
- See error_description.
- What it means
- The rollout settings are not valid.
- How to fix it
- rollout_percent is an integer 0-100; halted is a boolean.
- What it means
- route_mode is not valid.
- How to fix it
- "prefer" or "strict", and only together with sim_id.
- What it means
- Unknown scope.
- How to fix it
- Scopes are read, send and manage.
- What it means
- send_at is not a valid time.
- How to fix it
- Use an ISO-8601 string or epoch milliseconds.
- What it means
- The request signature does not match.
- How to fix it
- Sign the raw body with the shared secret.
- What it means
- That source name is reserved.
- How to fix it
- Pick another source.
- What it means
- The OTP template is not valid.
- How to fix it
- Include {code}; at most 480 characters.
- What it means
- The recipient is not a usable phone number.
- How to fix it
- Use E.164, e.g. +972501234567.
- What it means
- ttl_s is not valid.
- How to fix it
- An integer from 60 to 900.
- What it means
- The URL is not acceptable.
- How to fix it
- A public https URL; private and loopback hosts are refused.
- What it means
- A field has a value that is not accepted.
- How to fix it
- The error text names the field and what it accepts.
- What it means
- The verification form is incomplete.
- How to fix it
- Send business_name, website (or a social profile link), country, use_case and accept_aup: true.
- What it means
- That address cannot be read.
- How to fix it
- Use the public address of your website, for example https://example.co.il. Local, internal and numeric addresses are refused.
- What it means
- The account key is rotated, not deleted.
- How to fix it
- Rotate it from Developers in the portal.
- What it means
- A required field is missing.
- How to fix it
- The error text names the field.
- What it means
- The key needs a name.
- How to fix it
- e.g. 'n8n production'.
- What it means
- No phone is available to send from.
- How to fix it
- Pair an Android phone, and make sure it is online.
- What it means
- There is no subscription on this account yet.
- How to fix it
- Subscribe from Billing first.
- What it means
- No test destination is set.
- How to fix it
- Add one in platform settings first.
- What it means
- None of the recipients is usable.
- How to fix it
- Check the numbers and opt-outs.
- What it means
- A note needs something in it.
- How to fix it
- Write the note text.
- What it means
- The opt-out placeholder in this text would not turn into a link.
- How to fix it
- Write it as {{unsubscribe}}.
- What it means
- Send otp_id or to.
- How to fix it
- Either identifies the code to verify.
- What it means
- Codes of 4 or 5 digits are too easy to guess.
- How to fix it
- Use a length of 6 to 8.
- What it means
- The message is over 140 bytes, so SMS Retriever will not read it.
- How to fix it
- Shorten the text. In Hebrew 140 bytes is about 70 characters, hash and domain line included.
- What it means
- send_at is too far ahead.
- How to fix it
- At most 20 days ahead.
- What it means
- The email code is wrong, expired or used.
- How to fix it
- Request a new one with POST /api/auth/step-up. Nothing was changed.
- What it means
- A subject and a description are both needed.
- How to fix it
- Fill in both.
- What it means
- The recipient is required.
- How to fix it
- Send `to` as an E.164 number.
- What it means
- That grant type is not supported.
- How to fix it
- Use authorization_code or refresh_token.
- What it means
- The password is too short.
- How to fix it
- Use at least 8 characters.
- What it means
- No webhook URL is set.
- How to fix it
- Set one first with PUT /api/v1/webhooks.
- What it means
- This address only accepts a WebSocket upgrade.
- How to fix it
- Connect with Upgrade: websocket and X-Agent-Secret (ADR 0023).
- What it means
- The agent secret is not valid.
- How to fix it
- Pair the phone again.
- What it means
- The email or password is wrong.
- How to fix it
- Check both, or reset the password.
- What it means
- The pairing code is invalid or expired.
- How to fix it
- Generate a new code in the portal.
- What it means
- Sign in with the invited email address to accept.
- How to fix it
- An account already exists for this address. Sign in, then open the link again.
- What it means
- The X-Agent-Secret header is missing.
- How to fix it
- Pair the phone again if it lost its secret.
- What it means
- No credentials were sent.
- How to fix it
- Send X-API-Key, Authorization: Bearer <key>, or a portal session.
- What it means
- You are not signed in.
- How to fix it
- Sign in to the portal again.
- What it means
- Too many attempts on this code.
- How to fix it
- Generate a new code in the portal.
- What it means
- This record is outside your visible history window.
- How to fix it
- Upgrade to see older history.
- What it means
- This is available on a paid subscription.
- How to fix it
- Upgrade from Billing in the portal.
- What it means
- This needs a higher plan.
- How to fix it
- Upgrade the account from Billing in the portal.
- What it means
- The plan's line limit is reached.
- How to fix it
- Upgrade to add capacity.
- What it means
- The sub-account limit is reached.
- How to fix it
- Contact support to raise it.
- What it means
- You are not a member of that account.
- How to fix it
- List your accounts with GET /api/team/accounts.
- What it means
- The account is suspended.
- How to fix it
- Contact support.
- What it means
- Operator sign-in is allowed only from Israel.
- How to fix it
- Sign in from an Israeli network, or ask the operator about access from abroad.
- What it means
- Only a platform operator can do this.
- How to fix it
- Sign in with an operator account.
- What it means
- An agent key works on MCP only.
- How to fix it
- Use it at /mcp, or mint a non-agent key for REST.
- What it means
- A browser extension key cannot do this.
- How to fix it
- It reads the inbox and sends to one recipient. Use an API key for anything else.
- What it means
- This phone was removed from the account.
- How to fix it
- Pair it again to reconnect.
- What it means
- You are not allowed to do this.
- How to fix it
- Check the key's scopes and the account role.
- What it means
- That line is not on this phone.
- How to fix it
- Use a sim_id this device reported in /sims/sync.
- What it means
- The API key lacks the scope this route needs.
- How to fix it
- The `required` field names the scope; mint a key that holds it.
- What it means
- Your role on this account does not allow this.
- How to fix it
- Agents work the inbox. Ask the account owner or an admin.
- What it means
- The X-Requested-With header is missing.
- How to fix it
- Send X-Requested-With: smsnet on every state-changing portal request.
- What it means
- The recipient has opted out.
- How to fix it
- They can only be messaged again if they opt back in.
- What it means
- Codes go to your line's own country unless you allow another one.
- How to fix it
- Add the country to allowed_countries with PUT /api/v1/otp/settings.
- What it means
- Only the account owner can do this.
- How to fix it
- Ask the owner, or sign in as them.
- What it means
- The account owner cannot be changed or removed here.
- How to fix it
- An owner stays on their own account.
- What it means
- Connecting a calendar needs you signed in to the portal (an API key cannot).
- How to fix it
- Do this from the SMSNET portal as the account owner.
- What it means
- The plan does not include this.
- How to fix it
- Sub-accounts need a reseller or business plan.
- What it means
- This works only with a test key on a sandbox verification.
- How to fix it
- Use an sn_test_ key.
- What it means
- This needs a person signed in to the portal; an API key cannot do it.
- How to fix it
- Do it from the portal while signed in as the owner.
- What it means
- This needs a fresh code from your email.
- How to fix it
- Request one with POST /api/auth/step-up, then repeat the request with step_up_code.
- What it means
- Only the support desk can do this.
- How to fix it
- Sign in with a support account.
- What it means
- Please accept the current Terms of Service and Privacy Policy to continue.
- How to fix it
- Sign in to the portal and agree to the current Terms. API keys and phones keep working meanwhile.
- What it means
- A test (sn_test_) key cannot change the live account.
- How to fix it
- Use a live key with the manage scope.
- What it means
- This new account is limited until it is verified: 1 phone, at most 5 different recipients and 10 messages a day.
- How to fix it
- Verify the business in the portal (Settings, Verification) or with POST /api/v1/account/verification. Most accounts are verified instantly. A paid plan is never limited.
- What it means
- This verification belongs to another session.
- How to fix it
- Send the session_id used at start, or returned by it.
- What it means
- No such account.
- How to fix it
- The key or session points at an account that does not exist.
- What it means
- Appointment not found
- How to fix it
- Ids come from GET /api/v1/appointments.
- What it means
- Calendar connection not found
- How to fix it
- List connections with GET /api/v1/appointments/setup.
- What it means
- No such campaign.
- How to fix it
- List campaigns with GET /api/v1/campaigns.
- What it means
- No such MCP client.
- How to fix it
- List clients from Developers in the portal.
- What it means
- No such contact.
- How to fix it
- Look it up with GET /api/v1/contacts?phone=+E164.
- What it means
- No such conversation.
- How to fix it
- List conversations with GET /api/v1/conversations.
- What it means
- No such webhook delivery.
- How to fix it
- List deliveries with GET /api/v1/webhooks/deliveries.
- What it means
- No such phone on this account.
- How to fix it
- List phones with GET /api/v1/devices.
- What it means
- Draft not found
- How to fix it
- List drafts with GET /api/v1/agent/drafts.
- What it means
- No such hook.
- How to fix it
- The URL is wrong, or the hook was deleted or switched off. List hooks with GET /api/v1/hooks/inbound.
- What it means
- No such invitation.
- How to fix it
- List pending invitations with GET /api/v1/team.
- What it means
- No such key.
- How to fix it
- List keys with GET /api/v1/keys.
- What it means
- No such team member.
- How to fix it
- List the team with GET /api/v1/team.
- What it means
- No app release has been published yet.
- How to fix it
- Publish one with ops/release.mjs.
- What it means
- Not available on this deployment.
- How to fix it
- Test levers exist only where ENABLE_TEST_ROUTES is set.
- What it means
- Nothing was found at that address or with that id.
- How to fix it
- Check the path and the id; ids are account-scoped.
- What it means
- No such release.
- How to fix it
- Check version_code against the published releases.
- What it means
- No such rule.
- How to fix it
- List rules with GET /api/v1/suppression/rules.
- What it means
- No such line on this account.
- How to fix it
- List lines with GET /api/v1/sims.
- What it means
- No user with that email.
- How to fix it
- Check the address.
- What it means
- That HTTP method is not supported here.
- How to fix it
- See the API reference for the methods this path accepts.
- What it means
- An operator account already exists.
- How to fix it
- Bootstrap is closed; sign in as the existing operator.
- What it means
- This was already decided.
- How to fix it
- Read its current state.
- What it means
- This person is already on the team.
- How to fix it
- Change their role or lines on the Team page.
- What it means
- That team member cannot see this conversation.
- How to fix it
- Give them the line first, or assign someone else.
- What it means
- The request conflicts with the current state.
- How to fix it
- Read the resource again and retry with the current state.
- What it means
- This draft was already handled.
- How to fix it
- Refresh the drafts list.
- What it means
- You already have a rule for that phrase.
- How to fix it
- Edit the existing rule instead.
- What it means
- The account has the maximum number of webhook endpoints.
- How to fix it
- Delete one first.
- What it means
- The account already has the most inbound hooks it can have.
- How to fix it
- Delete one you no longer use, or reuse a hook with a template that fits.
- What it means
- A request with this Idempotency-Key is still running.
- How to fix it
- Retry shortly.
- What it means
- No line is online right now to receive this.
- How to fix it
- Check that the phone is on and connected, then start again.
- What it means
- You have no line to reply from.
- How to fix it
- Ask the account owner or an admin to give you access to this line.
- What it means
- This line is private: it does not send or upload business messages.
- How to fix it
- Choose another line, or change the line's inbound privacy in Numbers.
- What it means
- That is not the current version of the Terms.
- How to fix it
- Read current_version from GET /api/v1/account/terms and send it as version.
- What it means
- The account holds the maximum number of active keys.
- How to fix it
- Revoke one first.
- What it means
- This has expired.
- How to fix it
- Start again to get a fresh one.
- What it means
- This is no longer available.
- How to fix it
- Start the flow again to get a fresh one.
- What it means
- This invitation is no longer valid.
- How to fix it
- It expired, was withdrawn or was already used. Ask for a new one.
- What it means
- The request body is too large.
- How to fix it
- Bodies are capped at 64 KB (1 MB for contact import and campaigns); limit_bytes says which.
- What it means
- The payload has no single usable phone number in the mapped field.
- How to fix it
- One recipient per call. Check phone_field, and send an Israeli mobile or a number with a country code.
- What it means
- This Idempotency-Key was used with a different body.
- How to fix it
- Use a new key for a different request.
- What it means
- The website asks automated readers to stay out (robots.txt).
- How to fix it
- Paste the text yourself, or allow SMSNETBot in robots.txt.
- What it means
- The website has no readable text.
- How to fix it
- Some sites build their pages in the browser and show nothing to a reader. Paste the text yourself.
- What it means
- The request was understood but cannot be processed.
- How to fix it
- Check the values in the body.
- What it means
- This app build has been withdrawn.
- How to fix it
- Install the update at update_url.
- What it means
- A newer client version is required.
- How to fix it
- Update the app or client library.
- What it means
- The account hit the new-account sending ceiling.
- How to fix it
- Contact support, or move to a paid plan.
- What it means
- AI features are not available on this account right now.
- How to fix it
- AI runs on your own Anthropic key: add or fix it in Settings, AI.
- What it means
- A code was requested too recently.
- How to fix it
- Wait a minute before asking for another code.
- What it means
- This phone sent too many crash reports today.
- How to fix it
- At most 50 per device per day.
- What it means
- This hook is receiving too many calls.
- How to fix it
- At most 60 a minute and 1,000 a day per hook. A hook sends one message per call and is not for bulk sending.
- What it means
- This account has sent too many invitations today.
- How to fix it
- Try again tomorrow.
- What it means
- This key has used its daily budget.
- How to fix it
- Raise it under Developers, or wait.
- What it means
- One-time codes are paused on this account: too few of the codes sent were verified.
- How to fix it
- Check the form that asks for codes for abuse. Sending resumes after retry_after_s, or call POST /api/v1/otp/settings/resume.
- What it means
- Too many active codes for this number.
- How to fix it
- Wait retry_after_s seconds.
- What it means
- A code went to this number moments ago.
- How to fix it
- Resends wait 30, 60, then 120 seconds. Wait retry_after_s seconds.
- What it means
- Too many verification attempts for this number.
- How to fix it
- Wait retry_after_s seconds.
- What it means
- The plan's message allowance is used up.
- How to fix it
- Upgrade, or wait for the allowance to reset.
- What it means
- Too many requests.
- How to fix it
- Wait and retry with backoff; honour retry_after_s when present.
- What it means
- This account has used its reverse verifications for the month.
- How to fix it
- The count starts again on the 1st (UTC).
- What it means
- Too many reverse verifications started in the last minute.
- How to fix it
- Wait retry_after_s seconds.
- What it means
- Too many OAuth requests.
- How to fix it
- Wait and try again.
- What it means
- Something went wrong on our side.
- How to fix it
- Retry later. If it persists, contact support with the ray id.
- What it means
- The stored request could not be read.
- How to fix it
- Send the message again.
- What it means
- A stored payload could not be decrypted.
- How to fix it
- Contact support.
- What it means
- The AI request failed.
- How to fix it
- Retry shortly.
- What it means
- The website could not be read.
- How to fix it
- Check that the address opens in a browser and is not behind a login, then try again.
- What it means
- The draft could not be written.
- How to fix it
- Try again in a few minutes. Nothing was used from your AI allowance.
- What it means
- Could not reach the payment provider.
- How to fix it
- Try again shortly.
- What it means
- A provider we depend on did not answer properly.
- How to fix it
- Retry shortly.
- What it means
- The SMS agent is being switched on. Check back soon.
- How to fix it
- The operator has not configured the model key yet.
- What it means
- Google Calendar connection is being set up. Check back soon.
- How to fix it
- The operator has not configured Google OAuth yet; nothing to do on your side.
- What it means
- Sign in with Google is not switched on yet. Use your email and password.
- How to fix it
- The operator has not configured the Google sign-in client yet; email and password work as before.
- What it means
- Payments are not configured.
- How to fix it
- The operator has not switched payments on yet.
- What it means
- Card payment is not switched on yet.
- How to fix it
- Your choice was recorded; someone will set it up with you.
- What it means
- The phone stream is switched off right now.
- How to fix it
- Keep using GET /api/agent/dispatch (long-poll). /ping offers stream_url again when it is back.
- What it means
- Reading the website took too long.
- How to fix it
- Try again, or paste the text yourself.
Status codes at a glance
| Status | Meaning |
|---|---|
| 400 | The request itself is wrong: a missing or malformed field. Fix the request; retrying it unchanged fails the same way. |
| 401 | No valid credentials: the API key or session is missing, revoked or mistyped. |
| 402 | The plan does not cover this, or the account is out of quota. |
| 403 | The credentials are valid but not allowed to do this (a key without the scope, a test key on live data, a role). |
| 404 | The thing does not exist, or belongs to another account. |
| 405 | The path exists but does not accept this HTTP method. |
| 409 | It conflicts with the current state: a duplicate, a limit, or something already decided. |
| 410 | It existed but is gone for good, such as an expired link. |
| 413 | The request body is too large. |
| 422 | The request is well formed but cannot be carried out as asked. |
| 426 | The client is too old. Update the app or SDK. |
| 429 | Too many requests. Wait for the time in Retry-After, then try again. |
| 500 | Something failed on our side. Retry with the same Idempotency-Key; it is safe. |
| 502 | A provider SMSNET called on your behalf (such as your own Twilio fallback) failed or answered badly. |
| 503 | A dependency is down or the service is degraded. Retry with backoff. |
See also the changelog, the OpenAPI document and the service status.