curl --location -g --request POST '{{BASE_URL}}/admin/api-keys' \
--header 'Content-Type: application/json' \
--data-raw '{
"title": "string",
"type": "publishable"
}'
{
"api_key": {
"id": "string",
"token": "string",
"redacted": "sk_...123",
"title": "string",
"last_used_at": "2019-08-24T14:15:22Z",
"created_by": "string",
"created_at": "2019-08-24T14:15:22Z",
"revoked_by": "string",
"revoked_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z",
"type": "secret"
}
}
secret
for a user's API key; Use publishable
for Publishable API keys.secret
is used for a user's API key, whereas publishable
is used for Publishable API keys.