API reference · Receipts

Get the delivery summary

GET/v1/deliveries/summary

The last 24 hours of your deliveries, with count and lead per channel.

On this page

Auth. An API token: Authorization: Bearer lb_… (create one). Signed-in web sessions work too.

Limits. Counts against your plan's API requests (60, 600 or 3,000 a minute on Free, Builder and Standard).

Request

Terminal
curl "https://api.langbot.ai/v1/deliveries/summary" \
  -H "Authorization: Bearer $LANGBOT_API_TOKEN"

Response

200 OK

JSON
{
  "ts": 1760137000000,
  "since": 1760050600000,
  "window_ms": 86400000,
  "count_24h": 312,
  "median_lead_ms_24h": 10240,
  "p90_lead_ms_24h": 12900,
  "by_channel": { "socket": { "count": 300, "median_lead_ms": 10210, "p90_lead_ms": 12800 }, "webhook": { "count": 12, "median_lead_ms": 10900, "p90_lead_ms": 13400 } }
}

Errors

StatuscodeWhen
401auth_requiredNo token was sent.
401token_invalidThe token was not recognised (mistyped, revoked or expired).
429rate_limitedOver your request budget; wait Retry-After seconds.

Every error body is {"detail": …, "code": "…"}; branch on code. All codes: Errors.