CreateApiKey
CreateApiKey creates a new API key with the specified name and scopes. Returns the full key secret once — it cannot be retrieved again.
Headers
OAuth 2.0 Bearer token. Required for all key management operations. Format: Bearer <access_token>.
"Bearer eyJhbGciOiJSUzI1NiIs..."
Body
CreateApiKeyRequest is the request message for creating a new API key.
Response
Successful response
CreateApiKeyResponse is the response message containing the newly created API key. This is the only time the full secret is returned.
ApiKey represents a developer API key used for server-to-server authentication. API keys are passed in the x-api-key HTTP header and are billed per key. The full secret is only returned on creation and rotation.
The full API key secret. This is the value to pass in the x-api-key header. Store it securely — it is only returned on creation and rotation.