Skip to main content
GET
Export project analytics metrics

Authorizations

Authorization
string
header
required

Send your team API key or project token as Authorization: Bearer <token>. The credential must have the required permissions. Project tokens can access only their own project.

Path Parameters

projectId
string<uuid>
required

Identifier of the Polymorfa project that owns this resource.

Value constraints

Query Parameters

sessionId
string<uuid>

One number record UUID, within the authorized project or organization.

windowHours
integer
default:24

Number of completed UTC hours in the window, ending at the most recent hour boundary. Default 24; maximum 168.

Required range: 1 <= x <= 168
segments
enum<string>
default:false

Include message type, text length, origin, calling-code and device-count breakdowns. Adds metric series.

Available options:
true,
false
format
enum<string>
default:prometheus

Prometheus text 0.0.4 or OpenMetrics text 1.0. The format parameter selects the representation.

Available options:
prometheus,
openmetrics

Response

Windowed analytics gauges. OpenMetrics ends with # EOF. No JSON envelope.

The response is of type string.