Docs Concepts

Errors

One JSON shape for every error, with a stable code to branch on.

The shape

Every error, whatever its status, has the same body. Branch on error, which never changes within v1. detail is a human-readable hint and may be reworded.
JSON
{
  "error": "invalid_parameter",
  "detail": "limit: Input should be less than or equal to 100"
}

The codes

StatuserrorWhat it means
400invalid_cursorThe cursor wasn't one we issued. Pass next_cursor exactly as returned.
400invalid_dateA date wasn't YYYY-MM-DD.
400missing_parameterA required parameter is missing; detail names it.
400too_deepThe page starts past result 10,000. Narrow the search instead.
401missing_api_keyNo Authorization: Bearer header was sent.
401invalid_api_keyThe key doesn't exist, was revoked or has expired.
403subscription_inactiveThe key is valid but the account's plan isn't active.
404not_foundNo published innovation with that id, or an unknown path.
422invalid_parameterA parameter has the wrong type or is out of range.
429rate_limit_exceededToo many requests this minute. Wait for Retry-After.
429quota_exceededThe month's requests are used up. Retry-After counts to the reset.
500internal_errorSomething failed on our side. Retry with backoff.
500lookup_failedA taxonomy lookup failed on our side. Retry with backoff.
503similarity_unavailableSimilar-innovation search is briefly down. Retry later.

Retrying

Retry 429 after Retry-After, and 5xx with exponential backoff. Don't retry other 4xx errors: the same request will fail the same way until you change it.