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

# Authentication

> Create, scope, restrict, rotate and revoke Joip API keys

Every `/v1` request uses a Joip API key as an HTTP Bearer token:

```http theme={"system"}
Authorization: Bearer joip_live_PUBLIC_ID_SECRET
```

## Create a key

Create keys in [API keys](https://joip.com/joip-api) in the dashboard. Each key has a name and three options:

| Option | Choices | Use it for |
| - | - | - |
| **Access** | **Full access** or **Read only** | A read-only key can read jobs, credits, pricing and the account but can't start caption jobs or spend credits. Give it to dashboards, monitors and reporting jobs. |
| **Expires** | Never, 30 days, 90 days or 1 year | A key for a contractor, a trial or a short project. An expired key returns `401 invalid_api_key`. |
| **Restrict to IP addresses** | Addresses like `203.0.113.4` or ranges like `203.0.113.0/24` | A key that should only ever be used from your own servers. A call from anywhere else returns `403 ip_not_allowed`. |

The full token is shown once, right after creation. Copy it into your secret manager straight away; Joip keeps only a verifier and can't show it again.

## Key lifecycle

* Joip may ask you to sign in again before creating, rotating or revoking a key. This recent-authentication check protects reveal-once credentials on long-lived browser sessions.
* An account can have up to ten active, unexpired keys.
* Rotation revokes the old token immediately and reveals a replacement with the same name, access, expiry date and IP restrictions. An expired key can't be rotated; create a new one.
* Revocation is permanent. Expired keys can be revoked too, to tidy the list.
* Secret verification and idempotency don't depend on Joip's edge credentials, so routine infrastructure rotation never invalidates your keys or queued work.

## Scopes

| Scope | Grants | Full access | Read only |
| - | - | - | - |
| `account:read` | `GET /v1/account` | Yes | Yes |
| `credits:read` | `GET /v1/credits` | Yes | Yes |
| `pricing:read` | `GET /v1/pricing` | Yes | Yes |
| `jobs:read` | Job and item reads | Yes | Yes |
| `captions:write` | Caption generation and rewrite jobs | Yes | No |

Scopes reserved for unreleased operations are never granted by default, so an existing key never gains authority when a new operation launches.

A key without a route's scope gets `403 insufficient_scope`.

## Server-only boundary

Joip rejects `Origin` headers, session cookies and non-Joip Bearer credentials at the edge. Keep keys in a server-side secret manager, redact them from logs, and rotate a key immediately if it may have been exposed.

> [!WARNING]
>
> Never commit a Joip API key to source control, paste it into a support message or a prompt, or embed it in client-side code.


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