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

# Authentication

> Send your API token as a Bearer token with every request.

All API requests must include a Bearer token in the `Authorization` header:

```text theme={null}
Authorization: Bearer YOUR_API_TOKEN
```

A request without a token, or with an unknown or revoked one, is refused with `UNAUTHORIZED` — see [Errors](https://docs.dubly.ai/guides/errors.md).

## Create a token

**1. Open the API settings**

Sign in to the Dubly web app and open **Settings → API**.

**2. Generate a token**

Click **Generate new token** and give it a name that tells you where it is used, e.g. *Production* or *CI/CD*.

**3. Copy it now**

Copy the token right away and store it somewhere safe. You won't be able to see it again.

A token gives access to the dubs, projects and custom voices of your account. Keep it secret: out of client-side code and out of version control.

**Settings → API** lists your tokens with when they were created and last used. **Revoke** a token you no longer need — any application using it loses access.

## Base URL

```text theme={null}
https://app.dubly.ai
```

## Try your token

```bash theme={null}
curl -X GET https://app.dubly.ai/api/v1/projects \
  -H "Authorization: Bearer YOUR_API_TOKEN"
```

A valid token answers with the projects of your account — see [`GET /api/v1/projects`](https://docs.dubly.ai/api-reference/account/list-projects).

In the **API Reference** tab, paste the token into the Bearer field of the playground to send requests right from the docs.


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