The delivery log of a webhook subscription
GET
/event-subscriptions/{id}/deliveries
const url = 'https://app.surveyrock.com/api/v1/event-subscriptions/example/deliveries?status=pending&limit=50';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
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://app.surveyrock.com/api/v1/event-subscriptions/example/deliveries?status=pending&limit=50' \ --header 'Authorization: Bearer <token>'Deliveries newest first, each with its attempts (when, how long, the outcome, the status code, a 256-byte excerpt of the response). Pending ones say when the next attempt is due.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”id
required
string
Query Parameters
Section titled “Query Parameters”status
string
limit
integer
cursor
string
pagination.cursor_next from the previous page
Responses
Section titled “ Responses ”A page of deliveries
subscription_not_found
validation_failed: an unknown status or a cursor this endpoint did not issue