06 Line
API

List deliveries

The deliveries of the endpoint, newest first, each with the body sent and every try: HTTP status, error, the start of the response body, duration. Filter by `status` or `event_type`; pass `next_cursor` as `before` to get the next page. Deleted endpoints keep their log.

GET
/v1/webhook-endpoints/{endpoint_id}/deliveries

The deliveries of the endpoint, newest first, each with the body sent and every try: HTTP status, error, the start of the response body, duration. Filter by status or event_type; pass next_cursor as before to get the next page. Deleted endpoints keep their log.

Authorization

apiKey
headerAuthorizationBearer <token>

Your API key, 06l_…. For servers only.

Path Parameters

endpoint_id*string
Match^whe_[0-9a-z]{26}$

Query Parameters

status?string
Value in"pending""succeeded""failed"
event_type?string
Value in"sms.received""sms.status""call.recorded""webhook.test"
before?string

Cursor from the previous page (next_cursor).

limit?integer
Range1 <= value <= 100
Default20

Response Body

OK.

application/json
  1. response
deliveries*array<>
next_cursor*|

Null on the last page.

Example Request
curl -X GET 'https://api.06line.com/v1/webhook-endpoints/string/deliveries'
Example Response
{  "deliveries": [    {      "id": "string",      "event_id": "string",      "event_type": "sms.received",      "status": "pending",      "last_http_status": 0,      "last_error": "string",      "next_attempt_at": "2019-08-24T14:15:22Z",      "created_at": "2019-08-24T14:15:22Z",      "payload": {        "id": "string",        "type": "sms.received",        "created_at": "2019-08-24T14:15:22Z",        "data": {}      },      "attempts": [        {          "attempt": 0,          "http_status": 0,          "error": "string",          "response_body": "string",          "duration_ms": 0,          "at": "2019-08-24T14:15:22Z"        }      ]    }  ],  "next_cursor": "string"}