Skip to main content
GET
Retrieve a webhook delivery

Authorizations

Authorization
string
header
required

Use a named environment API key. It starts with tr_dev_sk_, tr_prod_sk_, tr_stg_sk_, etc.

Create a named API key in the API Keys section of your Trigger.dev project dashboard. Choose the narrowest access preset that supports your integration.

Our TypeScript SDK will default to using the value of the TRIGGER_SECRET_KEY environment variable if it is set. If you are using the SDK in a different environment, you can set the key using the configure function.

Path Parameters

deliveryId
string
required

The delivery's id, starts with whd_.

Response

Successful request

id
string
required

The delivery's id.

Example:

"whd_1234"

endpoint
object | null
required

The endpoint the delivery arrived on, or null if it has since been removed.

status
enum<string>
required

pending is waiting to be routed (including after a retryable error), processing is being routed, succeeded reached at least one subscriber or waiting run with nothing failed, failed means a subscriber failed after its retries, filtered means no subscriber's filter took it, and unmatched means runs were waiting on the endpoint but none matched and no subscriber took it.

Available options:
pending,
processing,
succeeded,
failed,
filtered,
unmatched
externalDeliveryId
string
required

The provider's id for the delivery, such as a Stripe event id or GitHub's X-GitHub-Delivery header.

Example:

"evt_1PqR2s3T4u5V6w"

isTest
boolean
required

Whether the request carried an x-trigger-test header, as test sends from the dashboard do.

createdAt
string<date-time>
required
processedAt
string<date-time> | null
required
idempotencyKey
string
required

The key the delivery was deduplicated on.

event
any
required

The verified event body, capped in size.

headers
object | null
required

The request headers, with credentials such as signatures removed.

rawBodyHash
string | null
required

A hash of the raw request body.

error
string | null
required

For a failed delivery, the error and the subscriber it came from.

filterReason
string | null
required

For a filtered delivery, why no subscriber took it.

targets
object[]
required

One entry per subscriber, plus a waiter entry when the delivery matched waiting runs.

updatedAt
string<date-time>
required