> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dollarpe.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Authentication

> Required headers and HMAC signing for DollarPe API requests.

Every API request must include signed headers so we can verify identity and protect against replay.

## Required headers

| Header        | Description                                                                   |
| ------------- | ----------------------------------------------------------------------------- |
| `X-API-KEY`   | Your API key (per environment).                                               |
| `X-TIMESTAMP` | Current Unix time in **seconds**.                                             |
| `X-SIGNATURE` | Base64-encoded **HMAC-SHA256** of the signing payload, using your API secret. |

The signing payload is built from your key, timestamp, and a **sorted JSON** representation of the request body (see full guide for edge cases such as empty bodies).

## Full documentation

For step-by-step signing, language examples, clock skew, and troubleshooting, use the complete guide:

<Card title="Authentication guide" icon="book-open" href="/guides/authentication">
  Headers, signature algorithm, and code samples.
</Card>
