Create a webhook endpoint

View as Markdown
Saves a delivery target you can point any run at. Reference it from a run as `webhook: { "id": "whe_…" }` — on [extract](https://docs.cloudraker.com/api/cloud-raker-api/capabilities/extract), [fill](https://docs.cloudraker.com/api/cloud-raker-api/capabilities/fill), [pipeline](https://docs.cloudraker.com/api/cloud-raker-api/capabilities/pipeline), any of them. Runs keep the *reference*, never a URL snapshot, so pausing or re-pointing an endpoint takes effect on runs already in flight. ```json { "url": "https://example.com/hooks/cloudraker", "events": ["run.completed", "run.failed"] } ``` **Event types** — omit `events` to receive all of them: - `processing.started` - `file.processed` - `file.failed` - `run.completed` - `run.failed` - `processing.completed` - `processing.expired` **Delivery guarantees.** At-least-once, so dedupe on `eventId`. Up to 5 attempts with backoff, each signed ES256 — verify against [the public keys](https://docs.cloudraker.com/api/cloud-raker-api/webhooks/webhook-jwks), and check what actually landed with [the delivery log](https://docs.cloudraker.com/api/cloud-raker-api/webhooks/list-webhook-deliveries). **Learn more:** [Webhooks guide](https://docs.cloudraker.com/developers/webhooks)

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
urlstringRequiredformat: "uri"
eventslist of enumsOptional
disabledbooleanOptional

Response

The endpoint.
object"webhook_endpoint"
idstring
urlstring
disabledboolean
createdAtstring
eventslist of strings

Errors

400
Bad Request Error
429
Too Many Requests Error