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"const res = await fetch('https://api.outboxer.dev/v1/webhooks', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.OUTBOXER_API_KEY}`,
},
});
if (!res.ok) throw new Error((await res.json()).code); // RFC 9457 problem
const data = await res.json();import os, uuid, requests
res = requests.request(
"GET",
"https://api.outboxer.dev/v1/webhooks",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}"},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()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"
}'const res = await fetch('https://api.outboxer.dev/v1/webhooks', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.OUTBOXER_API_KEY}`,
'Idempotency-Key': crypto.randomUUID(),
'Content-Type': 'application/json',
},
body: JSON.stringify({
"url": "https://example.com/hooks/outboxer",
"events": [
"post.published",
"variant.failed",
"billing.low_balance"
],
"workspace_id": "acme"
}),
});
if (!res.ok) throw new Error((await res.json()).code); // RFC 9457 problem
const data = await res.json();import os, uuid, requests
res = requests.request(
"POST",
"https://api.outboxer.dev/v1/webhooks",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"url": "https://example.com/hooks/outboxer",
"events": [
"post.published",
"variant.failed",
"billing.low_balance"
],
"workspace_id": "acme"
},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()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
}'const res = await fetch('https://api.outboxer.dev/v1/webhooks/wh_01j9zq3k8m5v2b7x4c6n1p0r9s', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.OUTBOXER_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"url": "https://example.com/hook",
"events": [
"post.published"
],
"status": "example",
"rotate_secret": true
}),
});
if (!res.ok) throw new Error((await res.json()).code); // RFC 9457 problem
const data = await res.json();import os, uuid, requests
res = requests.request(
"PATCH",
"https://api.outboxer.dev/v1/webhooks/wh_01j9zq3k8m5v2b7x4c6n1p0r9s",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}"},
json={
"url": "https://example.com/hook",
"events": [
"post.published"
],
"status": "example",
"rotate_secret": True
},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()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"const res = await fetch('https://api.outboxer.dev/v1/webhooks/wh_01j9zq3k8m5v2b7x4c6n1p0r9s', {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.OUTBOXER_API_KEY}`,
},
});
if (!res.ok) throw new Error((await res.json()).code); // RFC 9457 problem
const data = await res.json();import os, uuid, requests
res = requests.request(
"DELETE",
"https://api.outboxer.dev/v1/webhooks/wh_01j9zq3k8m5v2b7x4c6n1p0r9s",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}"},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()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)"const res = await fetch('https://api.outboxer.dev/v1/webhooks/wh_01j9zq3k8m5v2b7x4c6n1p0r9s/test', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.OUTBOXER_API_KEY}`,
'Idempotency-Key': crypto.randomUUID(),
},
});
if (!res.ok) throw new Error((await res.json()).code); // RFC 9457 problem
const data = await res.json();import os, uuid, requests
res = requests.request(
"POST",
"https://api.outboxer.dev/v1/webhooks/wh_01j9zq3k8m5v2b7x4c6n1p0r9s/test",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}", "Idempotency-Key": str(uuid.uuid4())},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()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"const res = await fetch('https://api.outboxer.dev/v1/webhooks/wh_01j9zq3k8m5v2b7x4c6n1p0r9s/deliveries', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.OUTBOXER_API_KEY}`,
},
});
if (!res.ok) throw new Error((await res.json()).code); // RFC 9457 problem
const data = await res.json();import os, uuid, requests
res = requests.request(
"GET",
"https://api.outboxer.dev/v1/webhooks/wh_01j9zq3k8m5v2b7x4c6n1p0r9s/deliveries",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}"},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()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)"const res = await fetch('https://api.outboxer.dev/v1/webhooks/wh_01j9zq3k8m5v2b7x4c6n1p0r9s/deliveries/whd_01j9zq3k8m5v2b7x4c6n1p0r9s/redeliver', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.OUTBOXER_API_KEY}`,
'Idempotency-Key': crypto.randomUUID(),
},
});
if (!res.ok) throw new Error((await res.json()).code); // RFC 9457 problem
const data = await res.json();import os, uuid, requests
res = requests.request(
"POST",
"https://api.outboxer.dev/v1/webhooks/wh_01j9zq3k8m5v2b7x4c6n1p0r9s/deliveries/whd_01j9zq3k8m5v2b7x4c6n1p0r9s/redeliver",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}", "Idempotency-Key": str(uuid.uuid4())},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()