Skip to main content
POST
Create Api Key

Authorizations

X-API-Key
string
header
required

PromptGuard API key for developer endpoints. Keys start with pg_live_ and are created in the dashboard.

Headers

x-api-key
string | null

Body

application/json
name
string
required

API key name

Required string length: 1 - 50
project_id
string | null
permissions
string[]
expires_at
string<date-time> | null

Response

Successful Response

key
string
required
id
string
required
name
string
required
prefix
string
required