API reference

Base URL, auth, errors, and headers. Endpoints below are generated from the OpenAPI spec.

Base URL

https://api.farofinance.app

Authentication

Every request needs a bearer token:

Authorization: Bearer <your-key>

Requests without a valid key get a 401 with the standard error envelope.

Response headers

HeaderMeaning
X-Request-IDUnique id for the request — quote it in bug reports.
X-Faro-Cachehit or miss — whether the verdict was served from cache.

Errors

Every non-2xx response is the same envelope — never a leaked stack trace:

{
  "error": "unauthorized",
  "message": "Invalid API key.",
  "request_id": "b1946ac92492d2347c6235b4d2611184"
}
StatuserrorWhen
401unauthorizedMissing or invalid API key.
422invalid_requestRequest body failed validation.
429rate_limitedToo many requests — slow down.
500internal_errorSomething went wrong on our side.

The full request and response schemas for each endpoint are generated from the OpenAPI spec and listed below.

Loading API reference…