Skip to main content
GET
Get

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

orgId
string
required

The organization's id (UUID) or slug — either form is accepted.

projectId
string
required

The project's id (UUID) or slug — either form is accepted.

Query Parameters

since
string<date-time>

Include traffic at or after this time (RFC 3339). Defaults to 24 hours before until.

until
string<date-time>

Include traffic strictly before this time (RFC 3339). Defaults to now.

granularity
enum<string>

Bucket size: "hour" (default) or "day". Buckets are UTC.

Available options:
hour,
day
environment
string

Environment slug to scope this operation to. Defaults to "production". An environment that does not exist on the project answers 404. Analytics are per app: production answers for the project's app, custom environments for their own.

Pattern: ^[a-z][a-z0-9-]{0,38}$

Response

Bucketed traffic series with window totals.

series
object[]
required

Ascending by bucket. Buckets the window saw no traffic for are omitted.

totals
object
required
note
string

Present when there is context worth surfacing — for example the environment has no runtime yet.