API ReferenceSettings
Create an API key
Create a new API key. The full plaintext key is returned only once in the response. Store it securely — it cannot be retrieved again.
Create a new API key. The full plaintext key is returned only once in the response. Store it securely — it cannot be retrieved again.
Authorization
AuthorizationRequiredBearer <token>Use your API key (sk_live_* or sk_test_*) as the Bearer token.
In: header
Request Body
application/jsonRequirednameRequiredstringHuman-readable name for the key.
descriptionstringscopesarray<string>Permission scopes for the key.
isTestbooleanCreate a test key (sk_test_) instead of a live key (sk_live_).
Default:
falseexpiresAtstringOptional expiration date.
Format:
"date-time"API key created. The plaintext key is included in the response.