Skip to main content
POST
/
api
/
policy-gateway
/
projects
/
{project_id}
/
keys
Create a project API key
curl --request POST \
  --url https://api.abliteration.ai/api/policy-gateway/projects/{project_id}/keys \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "label": "<string>"
}
'
{
  "api_key": "<string>",
  "key_preview": "<string>"
}

Authorizations

Authorization
string
header
required

Use a JWT or API key as a Bearer token.

Path Parameters

project_id
string
required

Body

application/json
label
string

Response

Key created

api_key
string
key_preview
string