Skip to main content
GET
Read Approval

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

Path Parameters

approval_id
string
required

Response

Successful Response

id
string
required
status
enum<string>
required

Where an approval stands. expired is one its user, or then its agent, left too long.

Available options:
pending,
approved,
declined,
cancelled,
used,
expired
change
ApprovalChange · object
required

What the user is asked to approve, in words.

approval_url
string
required

The dashboard page your user decides it on

expires_at
string<date-time>
required

While pending, when the user's time to decide runs out; once approved, when your time to use it does