Skip to main content
GET
Get message metrics
Minimum role required: Viewer

Authorizations

X-Axilio-Api-Key
string
header
required

Customer API key (axl_ prefix).

Query Parameters

period_start_at
string<date-time>

Start of the window (RFC 3339). Defaults to 7 days before period_end_at, and may be at most a year before now.

period_end_at
string<date-time>

End of the window (RFC 3339). Defaults to now, and a later time is read as now.

granularity
enum<string>
default:day

Bucket size: hour or day. hour is allowed for windows of 7 days or less.

Available options:
hour,
day
time_zone
string
default:UTC

IANA time zone the buckets follow, such as America/Los_Angeles: a day starts at local midnight and an hour on the local hour. An unknown name is an error.

phone_id
string

Only this phone's texts. A phone your organization doesn't rent is not found.

Maximum string length: 64
conversation_id
string<uuid>

Only this conversation's texts, and only its phone. Another organization's conversation is not found. When phone_id is also given, it is ignored: the conversation names the phone.

Response

OK

Your texting over a window: volume, how the texts ended up, how long they took, why they failed, your conversations, and each phone's share.

conversations
object
required

The window's conversations.

delivery_latency_ms
object
required

From a text being sent to its delivery report, over texts that have one. Null when none does.

delivery_rate
number<double> | null
required

Delivered over sent, not counting texts still queued, from 0 to 1. Null when nothing settled.

Required range: 0 <= x <= 1
failures
object[] | null
required

Why texts failed, most failures first.

period_end_at
string<date-time>
required

End of the window, as resolved: never later than now.

period_start_at
string<date-time>
required

Start of the window, as resolved.

phones
object[] | null
required

One entry per phone in scope, most texts sent first: every phone your organization rents, even one with no texts, or the one phone or conversation asked for.

points
object[] | null
required

One point per bucket (granularity, in time_zone), oldest first, every measure present. The first bucket starts at or before the window's start.

send_latency_ms
object
required

From the platform storing a text to the phone sending it, over texts that were sent. Null when none was.

send_limit
object
required

The send limit each phone is held to: compare it with a phone's peak_sent_30m for its headroom.

totals
object
required

The window's texts in all.