Skip to main content
PUT
Set Webhook

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
PromptGuard-Approval
string | null

The approval_id of an approval_required refusal, once your user has approved it. Send the same method, path, query and body.

Maximum string length: 64

Path Parameters

project_id
string
required

Body

application/json
url
string
required

Where alerts are POSTed. Never returned.

provider
enum<string> | null

Payload shape: generic, slack, pagerduty, datadog or splunk. Omit to keep the current one, or generic when there is none.

Available options:
generic,
slack,
pagerduty,
datadog,
splunk

Response

Successful Response

Whether a webhook is set, and what it is sent. Never where.

configured
boolean
required
provider
string | null
required