Skip to main content

List messaging profile metrics

GET 
/messaging_profile_metrics

List messaging profile metrics

Request

Query Parameters

    page[number] integer

    Possible values: >= 1

    Default value: 1

    The page number to load

    page[size] integer

    Possible values: >= 1 and <= 250

    Default value: 20

    The size of the page

    id uuid

    The id of the messaging profile(s) to retrieve

    time_frame string

    Possible values: [1h, 3h, 24h, 3d, 7d, 30d]

    Default value: 24h

    The timeframe for which you'd like to retrieve metrics.

Responses

200: Successful response with a list of messaging profile metrics.

default: Unexpected error

Request samples


curl -L 'https://api.telnyx.com/v2/messaging_profile_metrics' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'

Response samples


{
"data": [
{
"record_type": "messaging_profile_metrics",
"messaging_profile_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"phone_numbers": 250,
"outbound": {
"sent": 1000,
"delivered": 990,
"errors": 0.01
},
"inbound": {
"received": 850
}
}
],
"meta": {
"total_pages": 3,
"total_results": 55,
"page_number": 2,
"page_size": 25
}
}