Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.terrapinfinance.com/llms.txt

Use this file to discover all available pages before exploring further.

Error responses use a single envelope: a top-level errors array containing one or more error objects.

Error envelope

{
  "errors": [
    {
      "detail": "Human-readable explanation of what went wrong.",
      "reason": "optional_machine_readable_code"
    }
  ]
}
For 422 Unprocessable Entity, each error object also includes a JSON pointer to the offending field:
{
  "errors": [
    {
      "title": "Invalid value",
      "detail": "Invalid string. Got: integer",
      "source": { "pointer": "/isins/0" }
    }
  ]
}

Status codes

CodeMeaningWhat to do
200Success.Process the data array in the response.
400Malformed request (e.g. invalid JSON body).Fix the request format and retry.
401Missing, malformed, or revoked bearer token.Check the Authorization header. See Authentication.
403Authenticated but not permitted. The endpoint, resource, or ISIN is not in your tier, or your monthly ISIN quota is exhausted.Upgrade your plan or trim the request. See Rate limits & quotas.
404Resource does not exist (e.g. unknown document in download_document).Verify the identifier and retry.
422Request body failed validation: wrong types, unknown fields, out-of-range values. The source.pointer shows which field.Fix the field highlighted by source.pointer and retry.
429Per-minute rate limit exceeded, or the system is shedding load.Wait for retry-after (or ratelimit: reset) seconds, then retry with jitter.
500Unexpected server error.Retry with exponential backoff. If it persists, contact support.
502You got unlucky and made a request during a server redeployment.Retry with exponential backoff.

Reporting an issue

If you see a 500 you can’t explain or a 422 whose detail is unclear, email team@terrapinfinance.com with:
  • The request URL and JSON body (redact any PII).
  • The full response body and request-id header if present.
  • The approximate UTC timestamp.