Skip to main content
GET
Bucketed time-series for one metric

Authorizations

Authorization
string
header
required

Pass your secret key in the Authorization header as a Bearer token: Authorization: Bearer sk_test_... (sandbox) or Bearer sk_live_... (production).

Keys are created in the developer portal and the plaintext secret is shown exactly once at creation. Treat them like passwords — never embed them in mobile apps or front-end code.

Query Parameters

metric
enum<string>
required

Which metric to fetch.

Available options:
api_requests,
errors,
webhook_deliveries,
transactions,
statements
bucket
enum<string>
default:day

Granularity of each row.

Available options:
hour,
day,
week,
month
from
string<date-time>

Inclusive lower bound (ISO-8601 timestamp). Defaults to now - 30 days when omitted.

to
string<date-time>

Exclusive upper bound (ISO-8601 timestamp). Defaults to now when omitted.

Response

Dense bucketed series for the requested metric.

metric
enum<string>
required
Available options:
api_requests,
errors,
webhook_deliveries,
transactions,
statements
bucket
enum<string>
required
Available options:
hour,
day,
week,
month
data
object[]
required