# API Keys

API keys are the Bearer credentials used to authenticate requests to the public API. They are the preferred method for machine-to-machine integrations — scripts, backend services, and direct server-to-server calls where no user interaction is needed.

You can hold multiple active API keys simultaneously — useful for separating credentials across environments or applications. Each key can be revoked individually without affecting the others.

Pass the key in the `Authorization` header as `Bearer <YOUR_API_KEY>`.

## List API keys

 - [GET /public/v1/accounts/tokens/](https://docs.influencers.club/openapi/api-keys/public_v1_accounts_tokens_list.md): Returns all API keys for the authenticated user, including inactive ones. Each response object includes the raw token value and the active field indicating current status.

## Create API key

 - [POST /public/v1/accounts/tokens/](https://docs.influencers.club/openapi/api-keys/public_v1_accounts_tokens_create.md): Creates a new API key. The token value is included in the response.

## Update API key

 - [PATCH /public/v1/accounts/tokens/{token_id}/](https://docs.influencers.club/openapi/api-keys/public_v1_accounts_tokens_partial_update.md): Update an API key's label, active status, expiration date, or scopes. Pass null for expires_at to remove expiration.

## Delete API key

 - [DELETE /public/v1/accounts/tokens/{token_id}/](https://docs.influencers.club/openapi/api-keys/public_v1_accounts_tokens_delete.md)

