These endpoints let you manage your team’s API keys from code. They work with the same keys you see in Settings under API Keys, which is handy if you want to rotate keys on a schedule or issue limited-access keys for your own tools.
To call these endpoints, your key needs access to the API keys area. Read-only keys don’t have it, and only a Full access key can grant another key permission to manage keys. A key can never give another key more access than it has itself. For more on what keys are and how access works, see The REST API.
POST /api-keys creates a new key, and POST /api-keys/{apiKey}/rotate replaces an existing one. Both return the new secret only once in data.access_token, so save it right away. When you rotate a key, the old one stops working immediately, and the new one keeps the same name, access, and expiration.
A key can update its own display name. To rotate it, revoke it, or change its access, you’ll need to use the app or another key with the right permissions.
The CLI sign-in endpoints (/cli-auth/...) are what svanja login uses to fetch a key through your browser. They don’t require an API key and aren’t meant for your own code.