Webhooks
List deliveries
Recent deliveries to the endpoint, newest first, with their attempts and the endpoint's last answer.
GET
/v1/webhook-endpoints/{id}/deliveriesTL;DR
| Question | Answer |
|---|---|
| What does it do? | List deliveries. |
| What does it need? | An API key or an OAuth access token. |
| What does it take? | id in the path, and limit, startingAfter in the query string. |
| What does it return? | Status 200 with a body of type WebhookDeliveryList. |
| In the SDK? | flung.webhookEndpoints.deliveries() |
| What can go wrong? | 401 Missing, unknown, revoked or expired API key; 404 No such endpoint in this workspace; 422 The request failed validation; 429 Too many requests for this credential; wait for retry-after seconds. Every failure has the same error shape. |
Example
bash
curl -X GET 'https://api.flung.dev/v1/webhook-endpoints/whe_aaaaaaaaaaaaaaaaaaaaaaaa/deliveries' \ --header "Authorization: Bearer $FLUNG_API_KEY"ts
import { Flung } from '@flung.dev/sdk'
const flung = new Flung({ apiKey: process.env.FLUNG_API_KEY! })const result = await flung.webhookEndpoints.deliveries({ id: 'whe_aaaaaaaaaaaaaaaaaaaaaaaa',})js
const response = await fetch('https://api.flung.dev/v1/webhook-endpoints/whe_aaaaaaaaaaaaaaaaaaaaaaaa/deliveries', { method: 'GET', headers: { 'Authorization': `Bearer ${process.env.FLUNG_API_KEY}`, },})if (!response.ok) throw new Error((await response.json()).error.message)const result = await response.json()A successful answer looks like this:
json
{ "data": [ { "id": "string", "eventId": "string", "eventType": "string", "status": "pending", "attempts": 1, "responseStatus": 1, "lastError": "string", "createdAt": "2026-11-01T09:00:00.000Z", "updatedAt": "2026-11-01T09:00:00.000Z" } ], "hasMore": true}Path parameters
| Field | Type | Required | Description |
|---|---|---|---|
id | string | yes |
Query parameters
| Field | Type | Required | Description |
|---|---|---|---|
limit | integer | no | |
startingAfter | string | no |
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | A page of deliveries. | WebhookDeliveryList |
| 401 | Missing, unknown, revoked or expired API key. | Error |
| 404 | No such endpoint in this workspace. | Error |
| 422 | The request failed validation. | Error |
| 429 | Too many requests for this credential; wait for retry-after seconds. | Error |
Response body
A 200 answer has the type WebhookDeliveryList.
| Field | Type | Required | Description |
|---|---|---|---|
data | WebhookDelivery[] | yes | |
data[].id | string | yes | |
data[].eventId | string | yes | |
data[].eventType | string | yes | An event type, or webhook.ping for a test. |
data[].status | "pending" | "delivered" | "failed" | yes | pending while retries remain. |
data[].attempts | integer | yes | |
data[].responseStatus | integer | null | yes | |
data[].lastError | string | null | yes | |
data[].createdAt | string | yes | |
data[].updatedAt | string | yes | |
hasMore | boolean | yes |
See also
| Doc | Why |
|---|---|
| API reference | Every endpoint |
| Schemas | Every request and response type |
| Errors | Every error code and what to do about it |