Headers
Every API request requires the following headers:
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer token for authentication. |
Accept | Yes | Specifies the response format. Use application/vnd.taffrail.json+html for the Advice endpoint or application/json for other endpoints. See Advice Content Types. |
Taffrail-Version | No | API version. Accepted values: 1 or 2. Defaults to 2. |
Example Request Headers
Authorization: Bearer <API_KEY>
Accept: application/vnd.taffrail.json+html
Taffrail-Version: 2Response Headers
The API returns the following headers with every response:
| Header | Description |
|---|---|
X-API-Version | The API version used to process the request. |
X-Request-Id | A unique identifier for the request, useful for debugging and support inquiries. |
X-Response-Date | The UTC timestamp when the response was generated. |
Updated 10 days ago
