The delivery log of a webhook endpoint, newest first
GET
/api/v1/workspaces/{workspaceId}/webhook-endpoints/{endpointId}/deliveries
const url = 'https://api.crossmart.io/api/v1/workspaces/example/webhook-endpoints/example/deliveries?status=PENDING&eventType=order.created&direction=desc&limit=25';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.crossmart.io/api/v1/workspaces/example/webhook-endpoints/example/deliveries?status=PENDING&eventType=order.created&direction=desc&limit=25' \ --header 'x-api-key: <x-api-key>'Deliveries are kept for 30 days.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”workspaceId
required
string
endpointId
required
string
Query Parameters
Section titled “Query Parameters”status
string
eventType
string
direction
string
cursor
string format: uuid
nextCursor from the previous page
page
number
1-based page number, for tables with page numbers. It wins over cursor.
limit
number
Responses
Section titled “Responses”Media typeapplication/json
object
items
required
Array<object>
object
id
required
Sent as the Crossmart-Delivery-Id header
string format: uuid
endpointId
required
string format: uuid
eventId
required
The event id; the same on every redelivery
string format: uuid
eventType
required
string
status
required
RETRYING: an attempt failed and another is scheduled at nextAttemptAt
string
attempts
required
Attempts made so far
number
responseStatus
required
HTTP status of the latest attempt
number
durationMs
required
number
error
required
Why the latest attempt failed
string
nextAttemptAt
required
string format: date-time
lastAttemptAt
required
string format: date-time
deliveredAt
required
string format: date-time
createdAt
required
string format: date-time
nextCursor
required
string
total
required
number
Example
{ "items": [ { "eventType": "order.created", "status": "PENDING" } ]}