Skip to content
Docs menu

API reference

Webhooks

Endpoints that receive signed events (placements, campaigns, payouts…) as they happen.

GET/v1/webhooks

List webhook endpoints

Webhook endpoints with their subscribed events and the last 7 days of delivery counts. Secrets are never returned here; previous_secret_expires_at says until when a rotated secret still signs deliveries. Webhooks carry every team's events, so keys whose creator is team-scoped get 403 on every webhook endpoint.

Scopewebhooks:writeMCP toollist_webhooks
Query parameters
limit
integerPage size, 1–100 (default 25)
cursor
stringnext_cursor from the previous page
Request
curl "https://sqa.coboost.ai/api/v1/webhooks" \
  -H "Authorization: Bearer $COBOOST_API_KEY"
Response · 200
{
  "object": "list",
  "data": [
    {
      "id": "cmf0whk001",
      "object": "webhook_endpoint",
      "url": "https://hooks.lumen.example/coboost",
      "description": "Placement updates",
      "events": [
        "placement.approved",
        "placement.published"
      ],
      "enabled": true,
      "failure_count": 0,
      "previous_secret_expires_at": null,
      "created_at": "2026-10-01T10:00:00.000Z",
      "updated_at": "2026-10-01T10:00:00.000Z",
      "stats_7d": {
        "succeeded": 42,
        "failed": 0,
        "pending": 1
      }
    }
  ],
  "has_more": false,
  "next_cursor": null
}
POST/v1/webhooks

Create a webhook endpoint

Registers an https:// endpoint for the given events. The signing secret is returned once, in this response: verify the Coboost-Signature header with it. Plan feature webhooks; counts toward the plan's endpoint limit.

Scopewebhooks:writeMCP toolcreate_webhook
Body
urlrequired
stringhttps:// URL that receives POSTed events
description
string
eventsrequired
string[]Event types to receive, or ["*"] for every event (events of a side the workspace doesn't run are refused)
Request
curl -X POST "https://sqa.coboost.ai/api/v1/webhooks" \
  -H "Authorization: Bearer $COBOOST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://hooks.lumen.example/coboost","events":["placement.approved","placement.published"],"description":"Placement updates"}'
Response · 201
{
  "id": "cmf0whk001",
  "object": "webhook_endpoint",
  "url": "https://hooks.lumen.example/coboost",
  "description": "Placement updates",
  "events": [
    "placement.approved",
    "placement.published"
  ],
  "enabled": true,
  "failure_count": 0,
  "previous_secret_expires_at": null,
  "created_at": "2026-10-01T10:00:00.000Z",
  "updated_at": "2026-10-01T10:00:00.000Z",
  "secret": "whsec_8fQ2…"
}
GET/v1/webhooks/{id}

Get a webhook endpoint

One webhook endpoint (without its secret).

Scopewebhooks:writeMCP toolget_webhook
Path parameters
idrequired
stringWebhook endpoint ID
Request
curl "https://sqa.coboost.ai/api/v1/webhooks/id_123" \
  -H "Authorization: Bearer $COBOOST_API_KEY"
Response · 200
{
  "id": "cmf0whk001",
  "object": "webhook_endpoint",
  "url": "https://hooks.lumen.example/coboost",
  "description": "Placement updates",
  "events": [
    "placement.approved",
    "placement.published"
  ],
  "enabled": true,
  "failure_count": 0,
  "previous_secret_expires_at": null,
  "created_at": "2026-10-01T10:00:00.000Z",
  "updated_at": "2026-10-01T10:00:00.000Z"
}
PATCH/v1/webhooks/{id}

Update a webhook endpoint

Change the URL, description or events, or turn the endpoint on or off (enabled). Turning it back on resets the failure count. Omitted fields keep their values.

Scopewebhooks:writeMCP toolupdate_webhook
Path parameters
idrequired
stringWebhook endpoint ID
Body
url
string
description
string
events
string[]Event types to receive, or ["*"] for every event (events of a side the workspace doesn't run are refused)
enabled
boolean
Request
curl -X PATCH "https://sqa.coboost.ai/api/v1/webhooks/id_123" \
  -H "Authorization: Bearer $COBOOST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"events":["*"],"enabled":true}'
Response · 200
{
  "id": "cmf0whk001",
  "object": "webhook_endpoint",
  "url": "https://hooks.lumen.example/coboost",
  "description": "Placement updates",
  "events": [
    "*"
  ],
  "enabled": true,
  "failure_count": 0,
  "previous_secret_expires_at": null,
  "created_at": "2026-10-01T10:00:00.000Z",
  "updated_at": "2026-10-01T10:00:00.000Z"
}
DELETE/v1/webhooks/{id}

Delete a webhook endpoint

Deletes the endpoint and its delivery history. Pending retries are dropped.

Scopewebhooks:writeMCP tooldelete_webhook
Path parameters
idrequired
stringWebhook endpoint ID
Request
curl -X DELETE "https://sqa.coboost.ai/api/v1/webhooks/id_123" \
  -H "Authorization: Bearer $COBOOST_API_KEY"
Response · 200
{
  "id": "cmf0whk001",
  "object": "webhook_endpoint",
  "deleted": true
}
POST/v1/webhooks/{id}/test

Send a test event

Sends a signed webhook.test event to the endpoint now and returns the outcome. Test deliveries aren't retried and don't count toward auto-disable. A workspace can send a few a minute to each endpoint, and they wait their turn behind deliveries the endpoint is still answering: past either, the answer is 429 rate_limited with a Retry-After header and nothing is sent.

Scopewebhooks:writeMCP tooltest_webhook
Path parameters
idrequired
stringWebhook endpoint ID
Request
curl -X POST "https://sqa.coboost.ai/api/v1/webhooks/id_123/test" \
  -H "Authorization: Bearer $COBOOST_API_KEY"
Response · 200
{
  "object": "webhook_test",
  "delivery_id": "cmf0dlv001",
  "ok": true,
  "status": 200,
  "error": null,
  "duration_ms": 182
}
POST/v1/webhooks/{id}/rotate-secret

Rotate the signing secret

Gives the endpoint a new signing secret, returned once, in this response. The secret it replaces keeps signing deliveries beside the new one until previous_secret_expires_at, a grace period the platform sets: meanwhile the Coboost-Signature header carries a v1 for each secret (the new one last), so an endpoint that accepts any matching v1 keeps accepting events while you switch it to the new one. One that checks a single v1 rejects deliveries for part of that time, so update it first: if it reads the last v1 (the new secret's), from the rotation until it uses the new secret; if it reads the first (the old secret's), from when it switches to the new secret until previous_secret_expires_at. Send expire_previous: true for a leaked secret and the old one stops at once; previous_secret_expires_at is then null, as it is when the platform sets no grace period. Rotating again during a grace period stops the older secret at once.

Scopewebhooks:writeMCP toolrotate_webhook_secret
Path parameters
idrequired
stringWebhook endpoint ID
Body
expire_previous
booleanStop the old secret at once instead of after the grace period, for a leaked secret (default false)
Request
curl -X POST "https://sqa.coboost.ai/api/v1/webhooks/id_123/rotate-secret" \
  -H "Authorization: Bearer $COBOOST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"expire_previous":false}'
Response · 200
{
  "id": "cmf0whk001",
  "object": "webhook_endpoint",
  "url": "https://hooks.lumen.example/coboost",
  "description": "Placement updates",
  "events": [
    "placement.approved",
    "placement.published"
  ],
  "enabled": true,
  "failure_count": 0,
  "previous_secret_expires_at": "2026-10-02T10:00:00.000Z",
  "created_at": "2026-10-01T10:00:00.000Z",
  "updated_at": "2026-10-01T10:00:00.000Z",
  "secret": "whsec_Q7nM…"
}