Skip to main content
POST
Error

Authorizations

X-API-Key
string
header
required

Body

application/json

Schema for creating a prompt webhook.

url
string<uri>
required

URL that receives a POST request with the prompt event payload.

Minimum string length: 1
headers
Headers · object | null

HTTP headers sent with each request, for example an Authorization header. Values are stored encrypted and are masked in responses to callers who cannot update prompts.

include_prompts
string<uuid>[] | null

IDs of the prompts whose events fire the webhook. When empty, events from every prompt in the workspace fire it.

exclude_prompts
string<uuid>[] | null

IDs of prompts whose events never fire the webhook.

triggers
enum<string>[]

Events that fire the webhook: commit (a new prompt commit), tag:create, and tag:update. A webhook with no triggers never fires.

Valid trigger types for prompt webhooks.

Available options:
commit,
tag:create,
tag:update
id
string<uuid> | null

ID to assign to the webhook. Generated when omitted.

Response

Successful Response

Schema for a prompt webhook.

url
string<uri>
required

URL that receives a POST request with the prompt event payload.

Minimum string length: 1
id
string<uuid>
required
tenant_id
string<uuid>
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
headers
Headers · object | null

HTTP headers sent with each request, for example an Authorization header. Values are stored encrypted and are masked in responses to callers who cannot update prompts.

include_prompts
string<uuid>[] | null

IDs of the prompts whose events fire the webhook. When empty, events from every prompt in the workspace fire it.

exclude_prompts
string<uuid>[] | null

IDs of prompts whose events never fire the webhook.

triggers
enum<string>[]

Events that fire the webhook: commit (a new prompt commit), tag:create, and tag:update. A webhook with no triggers never fires.

Valid trigger types for prompt webhooks.

Available options:
commit,
tag:create,
tag:update