Skip to main content
Documentation

Errors

The WarpLink API error response format, a reference of common error codes, and how to troubleshoot failed requests, including auth and rate limit errors.

All API errors return a consistent JSON structure.

Error Format

The details field is optional. It lists the failed fields on validation errors, and carries fix (what to do next) and docs_url (the code's row in the table below) for every code in the reference.

Error Codes

Each code has its own anchor. The table reads the same catalog that fills details.fix and details.docs_url in a response.

HTTP StatusCodeWhat happenedHow to fix it
400COMPARE_LIMIT_EXCEEDEDToo many items were passed to compare.Compare fewer links per call.
400CURSOR_INVALIDThe cursor no longer matches this query, credential or page size.Query again without the cursor.
400IMMUTABLE_FIELDThe request changes a field that cannot be changed after creation.Remove the field from the update. Create a new resource if the value must differ.
400INVALID_APP_IDThe `app_id` does not belong to this organization.Pick an app from `list_apps`, or call `create_app` first.
400INVALID_FILTERA filter cannot be combined with another argument.Remove the conflicting filter or argument.
400INVALID_GRANULARITYThe granularity does not fit the window.Use `day`, or change the window as the message says.
400INVALID_IDThe id in the path is not in the format that resource uses. Most resources use a UUID. A referral also accepts a `ref_` id.Copy the id exactly as the API returned it, from the response that created the resource or from the matching list call (`list_links`, `list_apps`, `list_keys`, `list_domains`, `list_webhook_endpoints`, `list_referrals`, `list_orgs`). Do not use a slug, a name or the id of another resource type.
400INVALID_RANGEThe date range is invalid.Send a start before the end, inside your plan's retention.
400INVALID_SPLITThe split is not supported here.Remove the split argument.
400INVALID_WINDOWThe time window is invalid.Send ISO 8601 `start` before `end`.
400INVITATION_ALREADY_ACCEPTEDThe invitation was already accepted.Sign in with the invited email.
400INVITATION_ALREADY_REVOKEDThe invitation was revoked.Ask an owner or admin to send a new invitation.
400INVITATION_EXPIREDThe invitation expired.Ask an owner or admin to send a new invitation.
400MISSING_CONFIRMATIONOrganization deletion needs the `X-Confirmation-Name` header.Send the organization name in the `X-Confirmation-Name` header.
400MISSING_FIELDA field this view needs is missing.Add the field named in the message.
400PARAM_CONFIG_TOO_LARGEThe link parameter configuration exceeds the allowed size.Remove or shorten injected, passthrough or custom parameters.
400RECOVERY_TOKEN_EXPIREDThe referral token is past its expiry, or the link behind it is paused or has ended.Ask the person to open a fresh invitation link, then claim again. A paused link must be resumed first.
400RECOVERY_TOKEN_INVALIDThe referral token is malformed, was changed, belongs to another app, could not be confirmed after the first few minutes, or came from a link opened with the app already installed.Send the token exactly as the invitation carried it, with the key of the app that issued it. If it was sent that way, ask the person to open the invitation link again.
400SLUG_UNCHANGEDThe new slug equals the current slug.Send a different slug, or skip the call.
400TEST_APP_REQUIREDA Test link needs a Test app, and none was given.Pass the `app_id` of a Test app. Create one with `create_app` using a Test key first.
400UNSUPPORTED_FILTERThis view does not support the filter.Remove the filter, or pick a view that supports it.
400VALIDATION_ERRORThe request body or query failed validation.Fix each field listed in `details.fields` and send the request again.
401SESSION_IDLE_TIMEOUTThe sign-in session was idle for too long.Sign in again.
401SESSION_LIFETIME_EXCEEDEDThe sign-in session passed its maximum age.Sign in again.
401UNAUTHENTICATEDThe request carries no credential.Connect with an API key or sign in through OAuth, then call again.
401UNAUTHORIZEDThe credential is missing, invalid, expired or revoked.Send a valid key as `Authorization: Bearer wl_live_...` (Production) or `wl_test_...` (Test), or sign in again for an OAuth connection.
403ANALYTICS_GATEDAnalytics for this window are paused by the plan's click limit.Upgrade the plan in Settings > Billing, or query a window before the limit was reached.
403APP_LIMIT_EXCEEDEDThe plan's app limit is reached.Delete an unused app with `delete_app`, or upgrade the plan in Settings > Billing.
403APP_REQUIREDThe organization has no registered app, and links need one.Call `create_app` first, then create the link.
403ATTRIBUTED_KEY_REQUIREDThis change must be attributed to a person, and this API key has no creator.Make the change in the dashboard, or use a newly created API key.
403CLAIM_REQUIREDThis needs a workspace that a human has claimed.Ask the human to open the claim link we emailed to them, then retry.
403CONFIRMATION_MISMATCHThe confirmation name does not match the organization name.Send the exact organization name from `get_org_info`.
403DOMAIN_LIMIT_EXCEEDEDThe plan's custom domain limit is reached.Remove an unused domain, or upgrade the plan in Settings > Billing.
403ENVIRONMENT_NOT_SUPPORTEDA Test key was used on an endpoint that manages the organization, its domains, invitations or billing.Call this endpoint with a Production key (`wl_live_...`). Test keys reach only Test data.
403FORBIDDENThe credential is valid but not allowed to do this.Use a key or role with access to the resource. Ask an owner or admin if your role is the limit.
403KEY_APP_MISMATCHAn SDK key tied to one app was used for a different app.Use the SDK key created for this app (`list_keys`, or `create_key` with `type: "sdk"` and `app_id`).
403KEY_GRANT_EXCEEDS_CREDENTIALA new API key asked for more than the API key creating it holds.Ask only for scopes the calling key holds, or create the key from the dashboard.
403KEY_TYPE_FORBIDDENThis kind of key cannot be used for this call.Use an API key (`type: "api"`) for management calls. SDK keys only work in the mobile SDK.
403LOOKBACK_EXCEEDEDThe window starts before the plan's data retention.Use a start on or after `details.earliest_allowed`.
403MFA_REQUIREDThe organization requires two-factor authentication for this account.Turn on two-factor authentication in Settings > Account, then retry.
403MISSING_SCOPEThe credential lacks a scope this call needs.Create a key with the scope named in the message (`create_key`), or reconnect and grant it.
403ORG_AMBIGUOUSThe credential can act on more than one organization.Pass the `org` argument (id or slug) or call `switch_org`.
403ORG_BLOCKEDThe organization is blocked.Sign in to the dashboard. The blocked screen lets an owner send a dispute. No write succeeds while the block holds.
403ORG_SELECTION_REQUIREDThe call needs an organization and none is selected.Call `list_orgs`, then `switch_org` or pass the `org` argument.
403PASSWORD_REQUIREDThe link is password protected, so no destination is returned.Send the user to the short URL, where the password form is served.
403PLAN_UPGRADE_REQUIREDThe plan does not include this feature, or the custom domain trial ended.Upgrade the plan in Settings > Billing.
403SDK_KEY_LIMIT_EXCEEDEDThe app already holds the most SDK keys one app may have.Revoke an SDK key you no longer use (`list_keys`, `revoke_key`), then create the new one.
403SDK_KEY_ROUTE_FORBIDDENAn SDK key was used outside the four SDK endpoints, or on the MCP server.Use an API key for this request and keep the SDK key inside your mobile app.
403SEAT_LIMIT_EXCEEDEDThe plan's team member limit is reached.Remove a member or revoke an invitation, or upgrade the plan in Settings > Billing.
403TEST_APP_READ_ONLYThis Test app is read-only because the plan allows fewer Test apps than exist.Delete a Test app or upgrade the plan to edit this app again. Redirects and analytics keep working.
403TETHER_SITE_NOT_ALLOWEDThe site that asked for a code is not in the app's Allowed sites list.Add the site's HTTPS origin to Allowed sites with `update_tether_page`, then reload the page.
403UNCLAIMED_LIMITA workspace that no human has claimed yet reached its cap.Ask the human to open the claim link we emailed to them. A claimed workspace follows its plan limits.
404NOT_FOUNDThe resource does not exist in this organization.Find the right id or slug with the matching list call (`list_links`, `list_apps`, `list_domains`, `list_keys`, `list_referrals`, `list_webhook_endpoints`). If the resource is in another workspace, pass its `org` (see `list_orgs`).
405METHOD_NOT_ALLOWEDThe path exists but does not support this HTTP method.Use a method listed in the `Allow` header or in `details.allowed_methods`.
409ALREADY_MEMBERThis email is already a member of the organization.Skip the invitation. Change the role in Settings > Team if needed.
409APP_HANDLE_HELDThe subdomain was released and is held for 7 days for the app that released it.Choose another `link_handle`, or wait for the hold to end.
409APP_HANDLE_TAKENThe subdomain belongs to another app.Choose another `link_handle`.
409CONFIRMATION_REQUIREDThe change affects existing links and needs explicit confirmation.Send `confirm: true` after checking what the change affects.
409CONFLICTThe request conflicts with the current state of the resource. A webhook event that is still being delivered cannot be resent, and neither can an event to a disabled or paused endpoint.Wait until the event finishes its attempts, or set the endpoint to active, then retry.
409CURSOR_STALEThe data changed between pages.Query again without the cursor.
409DEFAULT_DOMAIN_UNAVAILABLEThe app's saved default domain is no longer live, and the request names no domain.Pass an allowed `domain`, or choose a new default with `set_app_link_domain`.
409DOMAIN_CLAIMEDThe domain is connected to another WarpLink account.Remove it from the other account first, or use a different domain.
409DUPLICATE_APPAn app with this bundle ID or package name exists.Use `list_apps` to find it, then `update_app` instead of creating a second one.
409DUPLICATE_DOMAINThe domain is already added to this organization.Call `list_domains` or `get_domain_status` for it.
409DUPLICATE_INVITATIONAn active invitation exists for this email.Revoke the old invitation in Settings > Team, or wait for the person to accept it.
409ENVIRONMENT_CHANGEDThe dashboard environment changed after the page opened, so the request was refused.Reload the page. Nothing was written to either environment.
409EXPORT_IN_PROGRESSAn export is already running for this organization.Check it with `export_analytics` and wait until it finishes.
409EXPORT_JOB_ID_CONFLICTThe `job_id` was used for a different export request.Use a new `job_id`.
409EXPORT_QUOTA_EXCEEDEDStored exports reached the size limit.Download and delete older exports, then retry.
409IDEMPOTENCY_IN_PROGRESSA request with this `Idempotency-Key` is still running.Wait a few seconds and retry with the same key.
409IDEMPOTENCY_RESULT_TOO_LARGEThe request succeeded, but its result is too large to store for replay.Read the created resource with the get or list call instead of repeating the create.
409PLAN_LIMIT_EXCEEDEDThe plan's limit for this resource is reached. `details.limit` holds the number the plan includes.Delete an item you no longer use, or upgrade the plan. Paused and disabled items count toward the limit.
409RECOVERY_PREREQUISITES_MISSINGThe iOS referral handoff cannot be turned on yet. `details.missing` lists `app_store_url`.Save the app's App Store URL in app settings, then turn the handoff on again.
409RENAME_EXTENSION_LIMITBoth rename extensions are used.Move the remaining links with `list_link_moves` and `set_link_move_choice`.
409RENAME_PERIOD_NOT_OPENA rename extension was requested and no rename period is open.Rename the subdomain first with `update_app`.
409RENAME_PERIOD_OPENAn earlier rename's old subdomain is still active.Wait for the rename period to end, or extend it with `extend_subdomain_rename`.
409SLUG_TAKENThe slug is in use on that domain, or is the old address of a moved link.Pick another slug, or omit `slug` to get a generated one.
409TEST_IDENTIFIER_CONFLICTA Test app cannot reuse a Production app's bundle ID or package name.Register the Test app with its own bundle ID or package name.
410GONEThe link has expired.Update `expires_at` with `update_link`, or create a new link.
415UNSUPPORTED_MEDIA_TYPEThe request body is not sent as `application/json`.Send the body as JSON with the `Content-Type: application/json` header.
422IDEMPOTENCY_KEY_REUSEDThe `Idempotency-Key` was used with a different request body.Use a new key for a different request, or resend the original body.
422INVALID_DOMAINThe domain cannot serve this link.Pick a domain from the app's allowed list (`get_app`, field `link_domains`).
422OUTBOUND_URL_REFUSEDThe URL is not allowed as an outbound target.Use a public `https://` URL on a DNS name, without credentials, on port 443.
422RETENTION_WINDOW_UNAVAILABLENo part of the window is within the plan's data retention.Choose a window inside the retention period.
422TETHER_HOSTED_PAGE_NEEDS_IOSThe hosted Tether page cannot be turned on for an app with no iOS Bundle ID or no App Store URL.Save both the iOS bundle ID and the App Store URL on the app, then turn the hosted page on. Or send hosted_page false.
422TETHER_NOT_AVAILABLETether is turned off for this app, or the app has no iOS platform to hand off to.Turn on Tether in the app settings and make sure the app has an iOS bundle ID and App Store URL.
422TETHER_TAP_REQUIREDA code for this page needs a link tap first. The request carried no valid `wl_rt` value.Send the person through a WarpLink link so the tap adds `wl_rt` to the page address, and pass it on unchanged.
422UNSAFE_DESTINATIONThe destination URL is on a threat list.Use a destination you control and trust.
425TETHER_CODE_PENDINGThe tap that made this code was just recorded and is not readable yet. The answer carries a `Retry-After` header.Send the same request again after the `Retry-After` seconds, a few times at most. A page script does this for you.
429AGENT_SIGNUP_RATE_LIMITEDToo many agent sign-ups from this address or for this email.Wait for the seconds in the `Retry-After` header, then call again. Each email address gets one claim email a day.
429INVITATION_DAILY_LIMIT_EXCEEDEDThe organization created 20 invitations in the last 24 hours.Wait until the oldest of those invitations is 24 hours old, then send the invitation again. Revoking an invitation does not free this limit.
429RATE_LIMIT_EXCEEDEDToo many requests for this key.Wait for the number of seconds in the `Retry-After` header, then retry. The limit is 60 requests a minute per key. The SDK endpoints count per key per client IP.
429TETHER_RATE_LIMITEDToo many code requests came from this address, for this link, or for this app. An app with the open_link rule has an hourly cap on codes for direct visitors. The answer carries a `Retry-After` header.Wait the `Retry-After` seconds, then request the code again.
500INTERNAL_ERRORAn unexpected server error.Retry once. For a write, read the resource back before retrying.
503AGENT_SIGNUP_UNAVAILABLEAgent sign-up cannot create a workspace right now.Try again tomorrow, or ask the human to sign up at https://dash.warplink.app.
503EXPORTS_UNAVAILABLEExports are turned off for this deployment.Use `query_analytics` instead, or retry later.
503RECOVERY_TOKEN_PENDINGThe referral token is genuine and was issued moments ago, but its invitation record has not reached this region yet. Nothing is wrong with the token. The answer carries a `Retry-After` header.Wait the `Retry-After` seconds and send the same request again with the same token. Keep the token until the request is answered. If the answer is still 503 after about five minutes, ask the person to open the invitation link again.
503SERVICE_UNAVAILABLEA dependency is temporarily unreachable.Retry after the seconds in the `Retry-After` header. Read before you retry a write.
503TEST_MODE_NOT_READYTest mode is not ready yet because a release is still rolling out.Wait a few minutes and retry. Production links and clicks are not affected.

Troubleshooting

"SERVICE_UNAVAILABLE" on requests that normally succeed

  • This is transient, not a problem with your request. Retry after the number of seconds in the Retry-After header (currently 5)
  • Reads are always safe to retry
  • For a write, the change may or may not have been applied before the failure. Read the resource back before retrying a create, or send a custom slug so a duplicate is rejected with SLUG_TAKEN instead of creating a second link

"UNAUTHORIZED" on every request

  • Verify your API key starts with wl_live_
  • Check the header format: Authorization: Bearer wl_live_YOUR_API_KEY
  • Ensure the key hasn't expired or been deleted

"FORBIDDEN" on attribution requests

  • Install attribution requires an SDK key. An API key cannot record installs, whatever scopes it holds
  • Create one at Keys > SDK keys and pass it to WarpLink.configure()
  • Telltale symptom: deep links resolve normally but no installs appear in your dashboard

"SDK_KEY_ROUTE_FORBIDDEN"

  • An SDK key, tied to one app or not, can call only GET /v1/sdk/validate, GET /v1/links/resolve/{slug}, POST /v1/attribution/match and POST /v1/referrals/claims. It cannot list links, manage apps or connect to the MCP server
  • Create an API key under Keys > API keys and use it for scripts, CI and AI clients. Keep the SDK key in your mobile app

"KEY_APP_MISMATCH" on attribution requests

  • The SDK key is tied to one app, and the request came from another app of your organization, or from an app the organization does not have. The message is the same in both cases
  • Use the SDK key created for this app, under Keys > SDK keys. A key cannot be moved to another app after it is created, so create a new key for the right app
  • An SDK key works only with the WarpLink SDK. Any other endpoint, and the MCP server, answers it with 403 SDK_KEY_ROUTE_FORBIDDEN
  • The claim names a link_id that is not a referral link, so nothing is recorded
  • Turn on Referral link for that link in the dashboard, or set is_referral over REST or MCP, then claim again. A claim without a link_id for an install that came from an ordinary link is not an error: it answers status: "none" and records nothing
  • See Referral handoff

"RECOVERY_TOKEN_INVALID" or "RECOVERY_TOKEN_EXPIRED" when redeeming an invitation

  • Send the pasted text exactly as the invitation carried it, with the SDK key of the app that issued it. A token that was edited, or that belongs to another app, is refused with RECOVERY_TOKEN_INVALID
  • A token minted for a link opened in an app that already had it installed is refused with RECOVERY_TOKEN_INVALID, because that tap is not an install
  • RECOVERY_TOKEN_EXPIRED means the invitation is past its expiry, or its link is paused or has ended. Resume the link if you paused it, or ask the person to open a fresh invitation link
  • In both cases the app stays usable. Show the person how to open the invitation link again, or send a new one, and carry on with onboarding

"RECOVERY_TOKEN_PENDING" on POST /v1/attribution/match

  • The token is genuine and was issued moments ago, and its record has not reached this region yet. Nothing is wrong with the token
  • Wait the number of seconds in the Retry-After header and send the same request again with the same token. The SDKs keep the invitation and send it again for you
  • If the answer is still 503 after about five minutes, ask the person to open the invitation link again

"RECOVERY_PREREQUISITES_MISSING" when turning on the iOS handoff

  • Turning on the iOS handoff needs an App Store URL on the app. details.missing lists app_store_url. A missing build on SDK 1.4.0 or newer is a warning in referral_readiness, never a refusal
  • Save the App Store URL in the app's settings, then turn the handoff on again. Ship a build on SDK 1.4.0 or newer so new iPhone installs can be credited. Android needs no switch, only a signing fingerprint

"IDEMPOTENCY_KEY_REUSED" or "IDEMPOTENCY_IN_PROGRESS" on a create

  • IDEMPOTENCY_KEY_REUSED means the Idempotency-Key (or the MCP idempotency_key) was already used with a different request. Send a new key for a different request, or send the original body again to get the original response
  • IDEMPOTENCY_IN_PROGRESS means the first request with that key is still running. Wait a second and retry with the same key
  • A repeat of a finished request returns the first response with the header Idempotent-Replayed: true. See Safe retries and dry runs

"CLAIM_REQUIRED" or "UNCLAIMED_LIMIT" in an agent-made workspace

  • A workspace that an AI agent started stays unclaimed until a person opens the claim email and chooses Claim workspace. Until then it holds 1 app and 10 links, its links stay paused, and API keys and custom domains are refused
  • Ask the person to open the claim email. It went to the address the agent gave at sign-up. The workspace follows its plan's limits after the claim. See Agent sign-up
  • The link has a password. GET /v1/links/resolve/{slug} returns no destination and no platform URLs for it, because the password is checked in the browser and never by the caller
  • Send the user to the short URL itself. The password form is served there, and a correct password redirects on to the destination
  • SDK 1.1.0 and later surface this as a named error: passwordRequired on iOS, PasswordRequired on Android, E_PASSWORD_REQUIRED on React Native, WarpLinkPasswordRequiredException on Flutter. Upgrade the SDK to get the named error.
  • A password-protected link resolves on the web page after the password is entered. See password protection
  • Check the domain's status in the dashboard. A custom domain that has stopped serving, such as one whose free trial ended, answers exactly as a missing link does
  • This is deliberate: a distinct code would confirm to any caller that a domain exists, so the API refuses to tell a suspended domain apart from an unknown one
  • Upgrading restores the domain, and the same request starts succeeding again. See custom domains
  • destination_url must include the protocol (https://)
  • slug must be 2-100 characters, lowercase alphanumeric with hyphens
  • expires_at must be an ISO 8601 date in the future
  • tags is limited to 20 items, each up to 50 characters
  • Custom slugs must be unique per domain. The error names the domain, and a slug that is the old address of a moved link counts as taken there
  • On an app's subdomain, a slug that one of the app's links on its old host still has is held for that link until it moves. The error names the link, and details.held_by holds its old domain and slug
  • Try a different slug or omit slug to auto-generate one
  • Reserved slugs (api, admin, dashboard, etc.) cannot be used