curl --request POST \
--url https://api.blaxel.ai/v0/service_accounts/{clientId}/api_keys \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"expires_in": "<string>",
"name": "<string>"
}'
{
"createdAt": "<string>",
"updatedAt": "<string>",
"createdBy": "<string>",
"updatedBy": "<string>",
"apiKey": "<string>",
"expires_in": "<string>",
"id": "<string>",
"name": "<string>",
"sub": "<string>",
"sub_type": "<string>"
}
Creates an API key for a service account.
curl --request POST \
--url https://api.blaxel.ai/v0/service_accounts/{clientId}/api_keys \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"expires_in": "<string>",
"name": "<string>"
}'
{
"createdAt": "<string>",
"updatedAt": "<string>",
"createdBy": "<string>",
"updatedBy": "<string>",
"apiKey": "<string>",
"expires_in": "<string>",
"id": "<string>",
"name": "<string>",
"sub": "<string>",
"sub_type": "<string>"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Client ID
successful operation
Long-lived API key for accessing Blaxel Time fields for Persistance Owner fields for Persistance
Was this page helpful?