Help center
Browse help topics

Partner API errors, limits and modes

Error types, the rate limit, and how test and live modes differ.

For platformsUpdated Published by LegitGeo

Errors

Errors look like { "error": { "type", "message", "param" } }. invalid_request (400): bad or unknown parameters, with param naming the field. authentication (401): a missing, malformed, revoked or suspended key, or an expired session. not_found (404): not your account, or not in this key’s mode. conflict (409): the account changed during a PATCH; read it again before retrying. rate_limit (429): more than 120 requests a minute for this key. usage_limit (429): the plan’s allowance is used up this month. api_error (500 or 503): a problem on LegitGeo’s side; retry with backoff.

RateLimit-* headers come with every response.

Test and live

Test keys see only test accounts and live keys only live accounts; the same externalId can exist once in each. A partner can keep at most 20 test accounts and create at most 20 new ones per UTC month. A full test workspace or spent monthly allowance returns 429 usage_limit. Reusing an externalId is idempotent and uses no slot.

A test account with no answers shows sample visibility, flagged sample and demo. Test accounts are previews and are not billed.

Security notes

Keys are shown once and stored as hashes; revoke one in the console if it leaks. Session secrets are single use and short-lived. Webhook secrets are encrypted at rest. Business websites are checked before LegitGeo fetches them, and private addresses are refused.

Was this helpful?