API reference

Webhooks

Signed event deliveries to your endpoints, with test sends, a delivery log and redelivery.

Signed event deliveries to your endpoints, with test sends, a delivery log and redelivery.

Method Endpoint Summary
GET /v1/webhooks List webhook endpoints
POST /v1/webhooks Create a webhook endpoint
PATCH /v1/webhooks/{id} Update a webhook endpoint
DELETE /v1/webhooks/{id} Delete a webhook endpoint
POST /v1/webhooks/{id}/test Send a test event
GET /v1/webhooks/{id}/deliveries Delivery log
POST /v1/webhooks/{id}/deliveries/{delivery}/redeliver Redeliver an event

List webhook endpoints#

GET/v1/webhooks

Auth: API key (Authorization: Bearer obx_live_…). Requires scope webhooks:manage with workspace role owner / admin / agent.

Response 200 — List. Errors: RFC 9457 Problem with a stable code (error codes).

curl -X GET "https://api.outboxer.dev/v1/webhooks" \
  -H "Authorization: Bearer $OUTBOXER_API_KEY"

Create a webhook endpoint#

POST/v1/webhooks

Events: post.created, post.submitted, post.changes_requested, post.approved, post.scheduled, variant.published, variant.failed, post.published, channel.connected, channel.disconnected, channel.token_expiring, media.ready, metrics.updated, interaction.received, autoreply.sent, followup.posted, followup.failed, billing.topup_succeeded, billing.gift_received, billing.low_balance, mcp.connection_requested, mcp.connection_updated or "*". The secret is returned once.

Auth: API key (Authorization: Bearer obx_live_…). Requires scope webhooks:manage with workspace role owner / admin / agent.

Headers

Name Required Description
Idempotency-Key no Replays within 24 h return the original response.

Request body

Field Type Description
url string
events array
workspace_id string

Response 201 — WebhookEndpoint. Errors: RFC 9457 Problem with a stable code (error codes).

curl -X POST "https://api.outboxer.dev/v1/webhooks" \
  -H "Authorization: Bearer $OUTBOXER_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://example.com/hooks/outboxer",
  "events": [
    "post.published",
    "variant.failed",
    "billing.low_balance"
  ],
  "workspace_id": "acme"
}'

Update a webhook endpoint#

PATCH/v1/webhooks/{id}

url, events, status (active|disabled); rotate_secret: true returns a new secret once.

Auth: API key (Authorization: Bearer obx_live_…). Requires scope webhooks:manage with workspace role owner / admin / agent.

Path parameters

Name Required Description
id yes Webhook endpoint id (wh_…).

Request body

Field Type Description
url string
events array
status string
rotate_secret boolean

Response 200 — WebhookEndpoint. Errors: RFC 9457 Problem with a stable code (error codes).

curl -X PATCH "https://api.outboxer.dev/v1/webhooks/wh_01j9zq3k8m5v2b7x4c6n1p0r9s" \
  -H "Authorization: Bearer $OUTBOXER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://example.com/hook",
  "events": [
    "post.published"
  ],
  "status": "example",
  "rotate_secret": true
}'

Delete a webhook endpoint#

DELETE/v1/webhooks/{id}

Auth: API key (Authorization: Bearer obx_live_…). Requires scope webhooks:manage with workspace role owner / admin / agent.

Path parameters

Name Required Description
id yes Webhook endpoint id (wh_…).

Response 200 — Object. Errors: RFC 9457 Problem with a stable code (error codes).

curl -X DELETE "https://api.outboxer.dev/v1/webhooks/wh_01j9zq3k8m5v2b7x4c6n1p0r9s" \
  -H "Authorization: Bearer $OUTBOXER_API_KEY"

Send a test event#

POST/v1/webhooks/{id}/test

Auth: API key (Authorization: Bearer obx_live_…). Requires scope webhooks:manage with workspace role owner / admin / agent.

Path parameters

Name Required Description
id yes Webhook endpoint id (wh_…).

Headers

Name Required Description
Idempotency-Key no Replays within 24 h return the original response.

Response 200 — Object. Errors: RFC 9457 Problem with a stable code (error codes).

curl -X POST "https://api.outboxer.dev/v1/webhooks/wh_01j9zq3k8m5v2b7x4c6n1p0r9s/test" \
  -H "Authorization: Bearer $OUTBOXER_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

Delivery log#

GET/v1/webhooks/{id}/deliveries

Auth: API key (Authorization: Bearer obx_live_…). Requires scope webhooks:manage with workspace role owner / admin / agent.

Path parameters

Name Required Description
id yes Webhook endpoint id (wh_…).

Response 200 — List. Errors: RFC 9457 Problem with a stable code (error codes).

curl -X GET "https://api.outboxer.dev/v1/webhooks/wh_01j9zq3k8m5v2b7x4c6n1p0r9s/deliveries" \
  -H "Authorization: Bearer $OUTBOXER_API_KEY"

Redeliver an event#

POST/v1/webhooks/{id}/deliveries/{delivery}/redeliver

Auth: API key (Authorization: Bearer obx_live_…). Requires scope webhooks:manage with workspace role owner / admin / agent.

Path parameters

Name Required Description
id yes Webhook endpoint id (wh_…).
delivery yes Delivery id.

Headers

Name Required Description
Idempotency-Key no Replays within 24 h return the original response.

Response 200 — Object. Errors: RFC 9457 Problem with a stable code (error codes).

curl -X POST "https://api.outboxer.dev/v1/webhooks/wh_01j9zq3k8m5v2b7x4c6n1p0r9s/deliveries/whd_01j9zq3k8m5v2b7x4c6n1p0r9s/redeliver" \
  -H "Authorization: Bearer $OUTBOXER_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"