StarSling
APIBill

List prior invoices

Read-only list of the caller's prior finalized invoices (newest first), same per-item shape as /api/bill, paginated by count. Scoped to the caller's orgs.

View Markdown
GET/api/bill/history

Authorization

bearerAuth
AuthorizationBearer <token>

Session token from sling login.

In: header

Query Parameters

org*string

GitHub organization login whose invoices to list.

Length1 <= length
limit?|

Invoices per page, newest first.

Range1 <= value <= 100
after?string

Invoice id from a prior page — returns the ones after it.

Length1 <= length

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/bill/history?org=acme"
{  "invoices": [    {      "invoice_id": "in_1ToVfTFSjWlUgKNB",      "period": {        "from": "2026-06-12T00:00:00.000Z",        "to": "2026-07-12T00:00:00.000Z"      },      "status": "paid",      "period_source": "stripe",      "runner_minutes": 5820,      "amount_usd": 93.12,      "credits_usd": 0,      "amount_due_usd": 93.12,      "line_items": [        {          "label": "starsling-ubuntu-24.04-8",          "minutes": 5820,          "usd": 93.12        }      ],      "projected_month_end_usd": 93.12    }  ],  "has_more": false}