Docs
Node SDK

webhooks.deliveries.list

List webhook deliveries in the authenticated project environment.

Import and client

TypeScript
import { RelayServer } from '@relayrtc/node'
 
const relay = new RelayServer({
  apiUrl: process.env.RELAYRTC_API_URL!,
  apiKey: process.env.RELAYRTC_SECRET_KEY!,
})

Requirements

A secret key with webhooks:read. The requested resource must belong to that key's project environment.

Parameters

OptionTypeDefault / requirementPurpose
endpointIdstringRequiredID returned when creating the webhook.
projectIdstringKey projectMust match the key's project.
environmentIdstringKey environmentMust match the key's environment.
limitinteger50From 1 to 100.
offsetinteger0From 0 to 100,000.
statusstringOptionalpending, delivering, succeeded, failed or cancelled.

Every method accepts RequestOptions as its final argument.

Example

TypeScript
const endpointId = 'webhook_example'
const result = await relay.webhooks.deliveries.list(endpointId, { status: 'failed', limit: 20 })

Returns

Promise<WebhookDeliveryList>. Returns deliveries and offset pagination.

REST equivalent

GET /v1/webhooks/{endpointId}/deliveries. Failures throw RelayApiError.