Headers

Every API request requires the following headers:

HeaderRequiredDescription
AuthorizationYesBearer token for authentication.
AcceptYesSpecifies the response format. Use application/vnd.taffrail.json+html for the Advice endpoint or application/json for other endpoints. See Advice Content Types.
Taffrail-VersionNoAPI version. Accepted values: 1 or 2. Defaults to 2.

Example Request Headers

Authorization: Bearer <API_KEY>
Accept: application/vnd.taffrail.json+html
Taffrail-Version: 2

Response Headers

The API returns the following headers with every response:

HeaderDescription
X-API-VersionThe API version used to process the request.
X-Request-IdA unique identifier for the request, useful for debugging and support inquiries.
X-Response-DateThe UTC timestamp when the response was generated.