The research API is not live yet. You can sign in and create an API key; searches and payment do not work yet.

Errors

Every error has the same four fields, so an agent can recover without reading the docs.

Planned for the research API (milestone M5). Until it ships, the search and record endpoints return 404 not_found. Keys and GET /v1/key work now.

Shape

{
  "error": {
    "code": "living_person_blocked",
    "message": "This search is about someone who may be alive.",
    "docs_url": "https://api.lineage.rexstjohn.com/docs/errors#living_person_blocked",
    "fix": "Add a death date, or a birth year more than 110 years ago. Lineage treats anyone else as living."
  }
}

code is stable and safe to branch on. message is for people. fix says what to change in the next request. docs_url links to the row below.

Codes

CodeStatusChargedWhat to do
invalid_request400NoFix the field named in message, then retry
invalid_api_key401NoSend a valid key in the Authorization header
api_key_revoked401NoCreate a new key on the keys page
insufficient_credits402NoAdd credits, or lower budget_credits
budget_exceeded402Up to the budgetPartial results are included; raise budget_credits to go further
not_found404NoCheck the path and the id; search and record ids start with srch_ and rec_
method_not_allowed405NoUse a method from the Allow header
living_person_blocked422NoAdd a death date or a birth year more than 110 years ago; anyone else is treated as living
rate_limited429NoWait retry_after seconds, then retry
not_configured503NoThe server is missing a setting; try again later

Not an error: skipped sources

When a source is down or rate limited, the search continues with the next source for that record type. The skipped source is listed in skipped with its reason, and you are not charged for it.