# HTTP API keys

## Create a key

In Profile → Integrations, enter a name and create a key for the current organization. New keys expire after 90 days. The full secret is shown once; copy it to a server secret manager. Lists show masked values. Key creation, listing and revocation require an authenticated browser session; a public key cannot mint another key.

Keys created in Custard inherit your current access in their organization. There is currently no permission picker. Explicitly permissioned WorkOS keys must contain `custard:read` for GET or `custard:write` for mutations; permissions never override your native app access.

## Rotate or revoke

Create a replacement, update your integration and revoke the old key. Validation is uncached, so revocation applies to the next request. Removing a membership or changing its role also applies to subsequent requests. Use separate keys for environments and integrations.
