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

# API authentication and headers

> Authenticate Zapnito API requests with an API token in the Authorization header, and send the required request headers.

Every request to the Zapnito API is authenticated with an API token. Send the token in the `Authorization` header, and include the required headers on every request.

## Authentication

Authenticate every request by sending your API token in the `Authorization` header:

```text theme={null}
Authorization: Token token=YOUR_API_TOKEN
```

A request with a missing, invalid or expired token is rejected with `401 Unauthorized`.

## Validate your API key

Send a `GET` request to the ping endpoint to check that your token is valid. See [Validate your API key](/api/v1/ping) for the request and responses.

## Request headers

Send these headers with every request.

| Header | Value | Notes |
| - | - | - |
| `Authorization` | `Token token=YOUR_API_TOKEN` | Required. |
| `Content-Type` | `application/json; charset=utf-8` | Required. Request bodies are JSON. |

## Next steps

* [Pagination](/api/v1/pagination): page through the results of list endpoints.
* [Responses and errors](/api/v1/errors): understand the status codes the API returns.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.