Skip to main content
POST
/
api
/
v1
/
exceptions
Create Exception
curl --request POST \
  --url https://api.promptguard.dev/api/v1/exceptions \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "destination_host": "<string>",
  "policy_id": "<string>",
  "threat": "<string>",
  "reason_category": "<string>",
  "justification": "<string>",
  "requested_minutes": 60
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>",
      "input": "<unknown>",
      "ctx": {}
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.promptguard.co/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-API-Key
string
header
required

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

Body

application/json
destination_host
string
required
Maximum string length: 255
policy_id
string | null
Maximum string length: 64
threat
string | null
Maximum string length: 64
reason_category
string | null
Maximum string length: 64
justification
string | null
Maximum string length: 2000
requested_minutes
integer
default:60
Required range: 1 <= x <= 1440

Response

Successful Response