List an endpoint's deliveries
The endpoint's delivery log, newest first: one delivery per event sent to it, with every HTTP attempt and the payload as sent. Pass the last id as after to get the next page while has_more is true. Deleting the endpoint deletes its log.
bearerAuthAuthorizationBearer <token>A secret API key from the dashboard: coss_live_… for production environments, coss_test_… for sandbox environments.
id*stringThe webhook endpoint's id.
status?stringOnly deliveries with this status.
"pending""succeeded""failed"event_id?stringOnly the delivery of this event.
limit?integer1-100, default 50.
1 <= value <= 100after?stringCursor: the id of the last delivery of the previous page.
Coss-Version?"2026-10-10"The API version (a date) to use for this request. Defaults to your organization's version, pinned to the latest one when it first used the API and upgraded from the dashboard. The SDK always sends the version it was built for.
"2026-10-10"A page of deliveries.
application/json- response
object*"list""list"data*array<>has_more*booleanimport { Coss } from "coss";const coss = new Coss({ apiKey: process.env.COSS_API_KEY, baseUrl: "https://api.coss.com",});const { data, error } = await coss.webhookEndpoints.deliveries.list("whep_01k7c8m4q2f3e9v6t5r1n0p8yz");{ "object": "list", "data": [ { "object": "webhook_delivery", "id": "whdel_01k7c8n2b5d7f9h1k3m5p7r9tv", "endpoint_id": "whep_01k7c8m4q2f3e9v6t5r1n0p8yz", "event_id": "evt_01k7c8n1z4c6e8g0j2l4n6q8sa", "event_type": "email.delivered", "status": "succeeded", "attempt_count": 1, "next_attempt_at": null, "last_status_code": 200, "last_error": null, "payload": { "id": "evt_01k7c8n1z4c6e8g0j2l4n6q8sa", "object": "event", "type": "email.delivered", "created_at": "2026-01-15T09:30:00.000Z", "data": { "email_id": "email_01k7c8m9x3a5c7e9g1j3l5n7q9", "recipient": "user@example.com" } }, "attempts": [ { "object": "webhook_attempt", "id": "whatt_01k7c8n2c9e1g3j5l7n9q1s3uw", "attempted_at": "2026-01-15T09:30:01.000Z", "status_code": 200, "duration_ms": 182, "error": null, "response_excerpt": "ok" } ], "created_at": "2026-01-15T09:30:00.000Z", "updated_at": "2026-01-15T09:30:01.000Z" } ], "has_more": false}Retrieve a webhook endpoint GET
The endpoint without its signing secret, which is only returned when created or rolled.
List webhook endpoints GET
Every endpoint of the API key's environment, oldest first. Webhook endpoints belong to the API key's own environment: a `coss_test_…` key only ever sees sandbox endpoints, and a `coss_live_…` key only production ones.