# Key management

API keys are created and managed in **Developer Settings** in the Perceptis web app. Use them to authenticate calls to `POST /api/v1/generate` and `GET /api/v1/status/{job_id}`.

Key creation and API usage require a paid Business or Enterprise organization plan. Free, Starter, and trial organizations are not eligible.

## Create a key

1. Open **Developer Settings**.
2. Create a new API key.
3. Copy the plaintext key when it is shown.
4. Store it in a secret manager or environment variable.

The plaintext key is shown only once. If you lose it, create a replacement key and revoke the old one.

## Use a key

Send the key as a bearer token:

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

A job can be polled only with the same API key that created it.

## Revoke a key

Revoke keys you no longer use from **Developer Settings**. Revoked keys stop authenticating Perceptis API requests and receive `401`.

## Recommended practices

* Use separate keys for separate integrations.
* Rotate keys on a regular schedule.
* Revoke keys immediately if they may have been exposed.
* Do not store keys in source control, client-side code, logs, or analytics tools.

## See also

* [Authentication](/perceptis-api-v1/authentication.md)
* [Base URLs and environment](/perceptis-api-v1/infra-routing-and-env.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.perceptis.ai/api-reference/keys.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
