Skip to main content
GET
Get Calling 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

Response

Successful Response

The calling key: what it is, where it acts and what it reaches.

id
string
required
name
string
required
prefix
string
required
project_id
string
required
project_name
string
required
organization_id
string
required
organization_name
string | null
required
permissions
string[]
required
grants
ApiKeyGrant · object[]
required
expires_at
string | null
required
created_at
string
required
created_via
enum<string> | null
required

How an API key was made.

Available options:
dashboard,
api,
cli,
cli_sign_in
for_agent
boolean
required

An agent holds this key: a change to what protects a project is refused with approval_required until you approve it in the dashboard.