Create prompt webhook
Create a new prompt webhook.
LangSmith sends a POST request to the webhook URL for each event listed in triggers on the prompts it matches. A workspace can have one prompt webhook unless its limit was raised; creating one past the limit returns 400.
Authorizations
Body
Schema for creating a prompt webhook.
URL that receives a POST request with the prompt event payload.
1HTTP 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.
IDs of the prompts whose events fire the webhook. When empty, events from every prompt in the workspace fire it.
IDs of prompts whose events never fire the webhook.
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.
commit, tag:create, tag:update ID to assign to the webhook. Generated when omitted.
Response
Successful Response
Schema for a prompt webhook.
URL that receives a POST request with the prompt event payload.
1HTTP 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.
IDs of the prompts whose events fire the webhook. When empty, events from every prompt in the workspace fire it.
IDs of prompts whose events never fire the webhook.
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.
commit, tag:create, tag:update 
