- List webhook endpoints GET
- Create a webhook endpoint POST
- Retrieve a webhook endpoint GET
- Update a webhook endpoint PATCH
- Delete a webhook endpoint DELETE
- Roll a signing secret POST
- Recover failed deliveries POST
- List an endpoint's deliveries GET
- Retrieve a delivery GET
- Retry a delivery POST
- Open a webhook listener POST
- Poll a webhook listener POST
- Close a webhook listener DELETE
- Send a test event POST
Retrieve a delivery
One delivery of the endpoint, with every HTTP attempt and the payload as sent.
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.
delivery_id*stringThe delivery's id.
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"The delivery.
application/json- response
- response
- …
object*"webhook_delivery""webhook_delivery"id*stringendpoint_id*stringThe id of the endpoint it's delivered to.
event_id*stringThe event's id: the id of the payload and the webhook-id header.
event_type*stringstatus*WebhookDeliveryStatuspending: waiting for its next attempt. succeeded: the endpoint answered with a 2xx status. failed: every attempt failed, or the endpoint was disabled.
"pending""succeeded""failed"attempt_count*integerHow many attempts were made so far.
next_attempt_at*|When the next attempt is due; null once the delivery is finished.
date-timelast_status_code*|The endpoint's HTTP status on the latest attempt. null: no response arrived, or no attempt yet.
last_error*|Why the latest attempt failed. null: it didn't, or no attempt yet.
payload*The event body, exactly as posted to the endpoint.
attempts*array<>Every HTTP attempt of this delivery, oldest first.
created_at*stringdate-timeupdated_at*stringdate-timeimport { 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.get("whep_01k7c8m4q2f3e9v6t5r1n0p8yz", "whdel_01k7c8n2b5d7f9h1k3m5p7r9tv");{ "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"}