Skip to content

List Attempts

List message attempts for an event
get/v1/events/{event_token}/attempts

List all the message attempts for a given event.

Path Parameters
event_tokenstring
Query Parameters
beginstring
optional

Date string in RFC 3339 format. Only entries created after the specified time will be included. UTC time zone.

formatdate-time
endstring
optional

Date string in RFC 3339 format. Only entries created before the specified time will be included. UTC time zone.

formatdate-time
ending_beforestring
optional

A cursor representing an item's token before which a page of results should end. Used to retrieve the previous page of results before this item.

page_sizenumber
optional

Page size (for pagination).

maximum100
minimum1
starting_afterstring
optional

A cursor representing an item's token after which a page of results should begin. Used to retrieve the next page of results after this item.

statusenum
optional
Accepts one of the following: "FAILED", "PENDING", "SENDING", "SUCCESS"
Hide ParametersShow Parameters
"FAILED"
"PENDING"
"SENDING"
"SUCCESS"
Returns
dataarray of tokenstringcreatedstringevent_subscription_tokenstringevent_tokenstringresponsestringresponse_status_codenumberstatusenumurlstringMessageAttempt
has_moreboolean
Request example Request
curl https://api.lithic.com/v1/events/$EVENT_TOKEN/attempts \
    -H "Authorization: $LITHIC_API_KEY"
200 Example
{
  "data": [
    {
      "token": "atmpt_1srOrx2ZWZBpBUvZwXKQmoEYga2",
      "created": "2019-12-27T18:11:19.117Z",
      "event_subscription_token": "ep_1srOrx2ZWZBpBUvZwXKQmoEYga1",
      "event_token": "msg_1srOrx2ZWZBpBUvZwXKQmoEYga1",
      "response": "response",
      "response_status_code": 0,
      "status": "FAILED",
      "url": "https://example.com"
    }
  ],
  "has_more": true
}