Create a webhook subscription
create_webhook_subscriptionSubscribe an existing webhook endpoint to events from ONE specific extractor, classifier, splitter, or workflow (webhooks group) — deliveries for other resources are unaffected. Use this instead of global enabledEvents when only some resources matter. Configuration rules: call get_documentation with https://docs.extend.ai/webhooks/configuration.md first (event catalog: https://docs.extend.ai/webhooks/events.md). Follow any llmContext guidance included in results.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| resourceId | Yes | The specific resource to watch (ex_/cl_/spl_/workflow_...). | |
| environment | Yes | "TEST" = the Test (development) environment, "PRODUCTION" = live. Must match a granted target from get_me (an API key pins one environment). | |
| workspaceId | Yes | Target workspace (ws_...). Must be a granted workspace — get_me lists the accepted values. | |
| resourceType | Yes | What kind of resource resourceId names. | |
| enabledEvents | Yes | Event types valid for the resourceType, e.g. ["extract_run.processed", "extract_run.failed"] or ["workflow_run.completed"]. | |
| webhookEndpointId | Yes | Endpoint (wh_...) that receives the deliveries. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| createdAt | No | ||
| resourceId | Yes | ||
| resourceType | Yes | ||
| enabledEvents | Yes | ||
| webhookEndpointId | Yes |