All requests below will use this key. Your API key is sent directly to api.cueapi.ai and never stored by the docs site.

POST/v1/auth/key/regenerate

Regenerate API Key

Generate a new API key and immediately revoke the current one.

Warning

This immediately revokes your current API key. All requests using the old key will return 401 Unauthorized. Update your integrations before calling this endpoint.

Request

bash
curl -X POST https://api.cueapi.ai/v1/auth/key/regenerate \
  -H "Authorization: Bearer cue_sk_YOUR_CURRENT_KEY"

Response

json
{
  "api_key": "cue_sk_NEW_KEY_HERE...",
  "message": "API key regenerated. Old key is now invalid."
}
POST/v1/auth/key/regenerate
Try it
Request Body
Enter your API key above to send requests