COSS
Webhook endpoints

List an endpoint's deliveries

GET
/v1/webhook_endpoints/{id}/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.

Authorization

bearerAuth
headerAuthorizationBearer <token>

A secret API key from the dashboard: coss_live_… for production environments, coss_test_… for sandbox environments.

Path Parameters

id*string

The webhook endpoint's id.

Query Parameters

status?string

Only deliveries with this status.

Value in"pending""succeeded""failed"
event_id?string

Only the delivery of this event.

limit?integer

1-100, default 50.

Range1 <= value <= 100
after?string

Cursor: the id of the last delivery of the previous page.

Header Parameters

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.

Value in"2026-10-10"

Response Body

A page of deliveries.

application/json
  1. response
object*"list"
Value in"list"
data*array<>
has_more*boolean
import { 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}