Resources / Webhook endpoints

Webhook endpoints

Where your servers hear about things as they happen. Also set up in Organization settings → Integrations → Webhooks.

The object

url string
https only.
events array or "all"
Which events.
secret string
Shown when it's made: check each delivery's signature with it.
The webhook endpoint object
{  "id": 9,  "url": "https://example.com/cocoscout",  "description": "Sales spreadsheet",  "events": [    "order.paid"  ],  "mode": "live",  "enabled": true,  "secret": "whsec_…",  "created_at": "2026-11-25T10:00:00-06:00"}

List webhook endpoints

GET /v1/webhook_endpoints

Every endpoint.

Query parameters

limit integer
Up to 200 a page, 50 by default.
after string
The last page's `next`, for the page after it.
curl
curl https://api.cocoscout.com/v1/webhook_endpoints \  -H "Authorization: Bearer cs_live_…"

Add a webhook endpoint

POST /v1/webhook_endpoints Read-and-write key

A new address.

Body

url string required
Where to send events.
events array
Which events; leave out for all.
description string
What it's for.
curl
curl -X POST https://api.cocoscout.com/v1/webhook_endpoints \  -H "Authorization: Bearer cs_live_…" \  -H "Content-Type: application/json" \  -H "Idempotency-Key: $(uuidgen)" \  -d '{    "url": "https://example.com/cocoscout"  }'

Remove a webhook endpoint

DELETE /v1/webhook_endpoints/{id} Read-and-write key

Stops sending there.

curl
curl -X DELETE https://api.cocoscout.com/v1/webhook_endpoints/4812 \  -H "Authorization: Bearer cs_live_…"

Send a test event

POST /v1/webhook_endpoints/{id}/test Read-and-write key

A ping, delivered now.

curl
curl -X POST https://api.cocoscout.com/v1/webhook_endpoints/4812/test \  -H "Authorization: Bearer cs_live_…"