cURL
curl --request POST \ --url https://api.example.com/api/api-keys/generate \ --header 'Authorization: <authorization>' \ --header 'Content-Type: application/json' \ --header 'organization-id: <organization-id>' \ --data ' { "name": "My API Key" } '
{ "id": 1, "key": "bc_1234567890abcdef" }
Value must be 'Bearer ' where is an API key prefixed with 'bc_' or a JWT token.
"Bearer bc_1234567890abcdef"
Required if Authorization is a JWT token. The organization ID to operate within.
Optional name for the API key
"My API Key"
The generated API key
API key ID
1
The API key string
"bc_1234567890abcdef"