# Autenticación

> Esta guía aún no está traducida. A continuación se muestra la versión en inglés. [Leer el original en inglés](https://docs.helixvoice.net/en/api/authentication/)

Authenticate with scoped, expiring API keys.

Each production API key belongs to one account and has explicit permissions, an expiration date, and request limits. It gives access only to that account's permitted resources.

## Obtain a key

Ask your account administrator for a production key with only the scopes your application needs. Keys are issued through the account management process; the console's demonstration screen does not issue working production keys.

A raw key is shown only once when created. Store it securely at that time. Key listings show metadata and a masked prefix, never a recoverable secret. Expiry is 1–365 days from issuance. Limits are selected when the key is issued and may be lower than service defaults.

## Send authorization

```http
Authorization: Bearer <api-key>
```

Use HTTPS and a server-side environment variable. Login session tokens, cookies, upstream provider keys, and keys in URL parameters do not authenticate the developer API.

```sh
curl --fail-with-body \
  'https://api.helixvoice.net/v1/voices' \
  -H "Authorization: Bearer ${HELIXVOICE_API_KEY}"
```

## Permissions

| Scope                  | Operations                                     |
| ---------------------- | ---------------------------------------------- |
| `capabilities:read`    | Read service capabilities                      |
| `voices:read`          | List available public and account-owned voices |
| `voices:write`         | Create or delete owned private voices          |
| `speech:write`         | Generate speech                                |
| `transcriptions:write` | Transcribe an audio file                       |
| `generations:read`     | List history and download audio                |
| `generations:write`    | Delete owned generation records                |

A generation-and-download integration normally needs `voices:read`, `speech:write`, and `generations:read`. Add `capabilities:read` to inspect current service limits.

## Account ownership

Keys from the same account share that account's voice library, recording history, and speech-operation budget. Creating another key does not increase the account or global budget. Keys cannot read or modify another account's private resources.

## Expiry, revocation, and rotation

Missing, invalid, expired, and revoked keys return HTTP 401. A valid key lacking a required scope returns 403. Create a replacement key, update your server's secret, verify it, and revoke the old key through your account administrator. Revocation applies to subsequent requests; a request already in progress may complete.

See [errors and rate limits](/es/api/errors/) before implementing retries.
