Skip to main content
GET
cURL

Authorizations

Authorization
string
header
required

Send Authorization: Bearer <key>. Testnet: lum_test_…; Mainnet: lum_live_…. A key works only on its own network, so pick the server that matches it (the other network answers 401). Publishable lum_pub_… keys call the GET data routes only, from an allowed browser origin. Webhook keys (whk_…) are not accepted here.

Query Parameters

bucket
enum<string>
default:day

Bucket size: day (default) or hour.

Available options:
day,
hour
Example:

"day"

from
string<date-time>

Inclusive RFC 3339 start. Defaults to the start of the billing period.

to
string<date-time>

RFC 3339 end; must follow from. At most 35 days for hourly and 400 days for daily buckets.

Response

Credits and requests per bucket.

bucket
string
from
string<date-time>
to
string<date-time>
series
object[]