For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Create a resource-scoped webhook subscription on an existing webhook endpoint.
Subscriptions let you receive events for a specific resource (e.g., a single extractor or workflow) rather than all resources of that type. The `enabledEvents` must be valid for the given `resourceType` and the endpoint's `apiVersion`.
If a subscription already exists for the same endpoint and resource, it will be updated with the new `enabledEvents` instead of creating a duplicate.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Headers
x-extend-api-version"2026-02-09"Optional
API version to use for the request. If you're using an SDK, you can ignore this parameter. If you are not using an SDK and do not specify a version, you will either receive a `400 Bad Request` or be set to a previous legacy version. See [API Versioning](https://docs.extend.ai/2026-02-09/developers/api-versioning) for more details.
Request
This endpoint expects an object.
webhookEndpointIdstringRequired
The ID of the webhook endpoint to attach this subscription to.
resourceTypeenumRequired
The type of resource the webhook subscription is for.
Allowed values:
resourceIdstringRequired
The ID of the resource to scope this subscription to.
enabledEventslist of enumsRequired
The event types to subscribe to. Must be valid for the given resourceType.
Response
Successfully created webhook subscription
objectenum
Allowed values:
idstring
Unique identifier for the webhook subscription.
webhookEndpointIdstring
The ID of the webhook endpoint this subscription belongs to.
resourceTypeenum
The type of resource the webhook subscription is for.
Allowed values:
resourceIdstring
The ID of the resource this subscription is scoped to (e.g., an extractor, classifier, splitter, or workflow).
enabledEventslist of enums
The list of event types this subscription is subscribed to. The valid event types depend on the resourceType.
createdAtstringformat: "date-time"
The date and time the webhook subscription was created.
Errors
400
Bad Request Error
401
Unauthorized Error
402
Payment Required Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error
Create a resource-scoped webhook subscription on an existing webhook endpoint.
Subscriptions let you receive events for a specific resource (e.g., a single extractor or workflow) rather than all resources of that type. The enabledEvents must be valid for the given resourceType and the endpoint’s apiVersion.
If a subscription already exists for the same endpoint and resource, it will be updated with the new enabledEvents instead of creating a duplicate.
API version to use for the request. If you’re using an SDK, you can ignore this parameter. If you are not using an SDK and do not specify a version, you will either receive a 400 Bad Request or be set to a previous legacy version. See API Versioning for more details.