Create a new prompt webhook.
func (
r *PromptWebhookService) New(ctx context.Context,
body PromptWebhookNewParams,
opts ...option.RequestOption) (res *PromptWebhook,
| Name | Type | Description |
|---|---|---|
ctx* | context.Context | |
body* | PromptWebhookNewParams | |
opts* | ...option.RequestOption |
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.