# Connect Keys

Create, list, and revoke the API keys that authenticate Connect requests.

## Operations

GET [List API Keys for the Caller's Organisation](https://heyarchie.com/en-gb/developers/api-reference/connect-keys/list-api-keys-for-the-callers-organisation/)

Return all keys for the caller's org, merged with mirror metadata.

GET [Get a Single API Key](https://heyarchie.com/en-gb/developers/api-reference/connect-keys/get-a-single-api-key/)

Return one API key from the caller's organisation in the same merged shape as the list.

POST [Create a New API Key](https://heyarchie.com/en-gb/developers/api-reference/connect-keys/create-a-new-api-key/)

Mint a new WorkOS-managed `sk_*` key + INSERT canonical mirror row.

POST [Rotate an API Key](https://heyarchie.com/en-gb/developers/api-reference/connect-keys/rotate-an-api-key/)

Mint a replacement key that inherits the old key's settings and start the old key's grace period.

PATCH [Update API Key Metadata](https://heyarchie.com/en-gb/developers/api-reference/connect-keys/update-api-key-metadata/)

Update an API key, writing its name and permissions to WorkOS and the other fields to Archie.

DELETE [Revoke an API Key](https://heyarchie.com/en-gb/developers/api-reference/connect-keys/revoke-an-api-key/)

Revoke an API key so it stops working at once, and answer 204 with no body.

Endpoints

[GET /api/v1/connect-keys](https://heyarchie.com/en-gb/developers/api-reference/connect-keys/list-api-keys-for-the-callers-organisation/)[GET /api/v1/connect-keys/ {key_id}](https://heyarchie.com/en-gb/developers/api-reference/connect-keys/get-a-single-api-key/)[POST /api/v1/connect-keys](https://heyarchie.com/en-gb/developers/api-reference/connect-keys/create-a-new-api-key/)[POST /api/v1/connect-keys/ {key_id} /rotate](https://heyarchie.com/en-gb/developers/api-reference/connect-keys/rotate-an-api-key/)[PATCH /api/v1/connect-keys/ {key_id}](https://heyarchie.com/en-gb/developers/api-reference/connect-keys/update-api-key-metadata/)[DELETE /api/v1/connect-keys/ {key_id}](https://heyarchie.com/en-gb/developers/api-reference/connect-keys/revoke-an-api-key/)
