Create a new API key
Generate a new API key with specified scopes. The full key is returned only once in the response — store it securely.
Request body
Example request
{
"name": "Production API Key",
"scopes": [
"read",
"write"
]
}Response
API key created. The key value is shown only once.
Example response
{
"id": "clx1234567890",
"key": "sk_live_abc123...",
"name": "Production API Key",
"scopes": [
"read",
"write"
]
}Changes
Changed in 1 of the 2 revisions of this API.7
- ○
added the optional property
expiresAtto the response with the201statusresponse-optional-property-added
- ○
added the optional property
lastUsedto the response with the201statusresponse-optional-property-added
- ○
the response property
idbecame required for the status201response-property-became-required
- ○
the response property
keybecame required for the status201response-property-became-required
- ○
the response property
namebecame required for the status201response-property-became-required
- ○
the response property
scopesbecame required for the status201response-property-became-required
- ○
added the required property
createdAtto the response with the201statusresponse-required-property-added
- ○