Errors
Failures are RFC 9457 problem details (application/problem+json). Branch on code, show detail, and quote request_id when you contact us.
{
"type": "https://geocodeai.dev/docs/errors#quota_exceeded",
"title": "quota_exceeded",
"status": 402,
"detail": "This month's units on the Free plan are used up. Upgrade at /pricing or wait for the 1st.",
"code": "quota_exceeded",
"request_id": "6c0b6c1e-…",
"used": 1000,
"limit": 1000
}type links to this page at the code's anchor. MCP tools return the same code and detail as a tool error, and the CLI prints them to stderr with a non-zero exit code.
400
invalid_inputHTTP 400
The input failed validation: a missing field, a wrong type, a value out of range.
Fix: Read detail (and issues for each field) and fix the request. The op's reference page lists every field.
invalid_jsonHTTP 400
The body (or ?input=) is not valid JSON.
Fix: Send a JSON object with Content-Type: application/json, or URL-encode the JSON in ?input=.
invalid_idHTTP 400
The boundary id can't be read.
Fix: Use r<relation id> or w<way id>; R62422, relation/62422, an osm.org URL, wikidata:Q64 and iso:US-CA are accepted too.
no_childrenHTTP 400
Only administrative boundaries have subdivisions; this one is a postcode or another kind.
Fix: Call list_children on an administrative boundary, e.g. the city that contains the postcode.
too_many_boundariesHTTP 400
A union names more boundaries than one call allows.
Fix: Split the union into several calls, or union the parents instead of every child.
confirm_mismatchHTTP 400
delete_org needs the organization's slug typed exactly.
Fix: Type the slug shown in the dialog.
access_deniedHTTP 400
CLI sign-in: the person declined the device code.
Fix: Start geocode login again.
expired_tokenHTTP 400
CLI sign-in: the device code expired before it was approved.
Fix: Start geocode login again.
invalid_grantHTTP 400
CLI sign-in: the device code is unknown or was already used.
Fix: Start geocode login again.
401
invalid_keyHTTP 401
The API key doesn't exist or was revoked.
Fix: Create a new key in the dashboard and replace the old one.
invalid_tokenHTTP 401
The OAuth access token (MCP connectors, dashboard) is invalid or expired.
Fix: Sign in again; MCP clients refresh tokens on their own.
402
quota_exceededHTTP 402
This month's units on your plan are used up. used and limit say by how much.
Fix: Have the account owner upgrade: create_checkout_link returns a link for them to pay. Or wait for the 1st. Free calls (search, children) keep working.
403
forbiddenHTTP 403
Your role in the organization (or your access to a shared file) is too low for this op. required_role or required_access says what it needs.
Fix: Ask an admin to change your role, or the file's owner to share it with you. API keys act with their creator's role, at most admin.
person_onlyHTTP 403
Inviting, removing members, roles, teams, transfer and delete are done by a person on the dashboard, never with a key or an agent.
Fix: Open /dashboard/org and do it there.
not_a_memberHTTP 403
The organization asked for (X-Geocode-Org, ?org=) is not one you belong to, or a team change names someone outside the organization.
Fix: list_orgs shows yours; invite the person first.
no_organizationHTTP 403
The account belongs to no organization, which only happens to a half-created account.
Fix: Sign out and in again; write to us if it persists.
invite_wrong_emailHTTP 403
You are signed in with a different email from the one the invite was sent to.
Fix: Sign out and sign in with the invited address.
not_your_requestHTTP 403
report_issue was given a request_id made with another account.
Fix: Report with the request id of your own failing call.
staff_onlyHTTP 403
The op is for the Geocode AI team (feedback status, official responses, review moderation).
Fix: Customers can comment_on_feedback or upvote_feedback instead.
404
not_foundHTTP 404
No such boundary, key or resource.
Fix: Check the id. Search by name to find the right one.
no_geometryHTTP 404
The boundary exists but OpenStreetMap has no polygon for it.
Fix: Use its parent, or describe the area with create_area.
invite_invalidHTTP 404
The invite link is not one we issued, or it was replaced by a newer one.
Fix: Ask the admin who invited you to resend it.
405
method_not_allowedHTTP 405
The op changes state, so it can't be called with GET.
Fix: Send it with POST.
409
already_subscribedHTTP 409
create_checkout_link asked for the plan the account is already on.
Fix: Nothing to buy. To renew a plan set to cancel, switch, or update the card, use get_billing_link.
manual_planHTTP 409
The account is on a written agreement (Enterprise), which Stripe does not manage.
Fix: Email us to change the agreement.
no_subscriptionHTTP 409
get_billing_link on an account that never had a paid plan, so there are no invoices or cards.
Fix: Call create_checkout_link to start a plan.
too_many_keysHTTP 409
The account already has the maximum number of active keys.
Fix: Revoke a key you no longer use.
last_ownerHTTP 409
The change would leave the organization without an owner.
Fix: Make someone else an owner first, or transfer ownership.
already_memberHTTP 409
The person you invited is already in the organization.
Fix: Change their role instead.
personal_orgHTTP 409
A personal organization stays with its account and cannot be deleted.
Fix: Rename it instead, or leave it once someone else owns it.
has_subscriptionHTTP 409
The organization is on a paid plan, so it cannot be deleted.
Fix: Cancel the plan from Billing first.
has_billing_historyHTTP 409
The organization has invoices with Stripe that must be kept.
Fix: Email us to close it.
410
invite_usedHTTP 410
The invite link was already used; each works once.
Fix: If it was not you, tell the organization's admin.
413
too_largeHTTP 413
The result is too big for one response, e.g. a union at high detail.
Fix: Ask for a lower detail, or export the boundaries one by one.
context_too_largeHTTP 413
An issue's context is over 128 KB.
Fix: Send the request id, op and error, not whole responses.
422
could_not_mapHTTP 422
Areas couldn't turn the description into a validated polygon. detail lists each place that was not found or was ambiguous.
Fix: Make the wording more specific (add the country, the kind of place), or split it into parts.
428
429
rate_limitedHTTP 429
Too many requests this minute. retry_after gives the seconds to wait.
Fix: Wait retry_after seconds, then retry; add a key (or upgrade) for a higher limit.
too_many_runningHTTP 429
The organization already has as many described areas running as its plan runs at once. limit says how many.
Fix: Wait retry_after seconds or for a running call to finish, then retry. Nothing was charged.
too_many_failuresHTTP 429
Too many of the organization's described areas failed in the last hour. Failed runs cost no units; this is what bounds them.
Fix: Wait retry_after seconds. Try a narrower description, or compose the area with search_boundaries and union_boundaries.
500
internal_errorHTTP 500
Something failed on our side. The problem carries report.request_id.
Fix: Retry with backoff. If it persists, report it: report_issue with the request_id (or geocode feedback report --last).
502
503
geometry_pendingHTTP 503
This boundary's polygon is being fetched from OpenStreetMap and did not arrive within the request's budget (OpenStreetMap is slow, or another request is fetching it). The fetch keeps going.
Fix: Wait retry_after seconds, then retry; the polygon is then served from cache.
database_busyHTTP 503
Our own boundary index took too long to answer this one call (a database timeout). Nothing was charged.
Fix: Wait retry_after seconds and retry; for autocomplete, the next keystroke usually answers.
upstream_busyHTTP 503
OpenStreetMap's services are rate-limiting us, so a boundary not yet cached can't be fetched this second.
Fix: Retry after a few seconds, and send uncached searches (street addresses, names not asked before) one at a time rather than in parallel. Cached boundaries are never affected.