Skip to main content

Retrieve the messaging health of a 'TN'

GET 
/messaging/numbers/:tn/health

Retrieves health information about the requested phone number.

Request

Path Parameters

    tn stringrequired

    E.164 formatted phone number

Responses

200: Requested 'TN'

Request samples


curl -L 'https://sms.telnyx.com/messaging/numbers/:tn/health' \
-H 'Accept: application/json'

Response samples


{
"record_type": "number_health",
"success": true,
"number": "+13129457420",
"number_type": "long_code",
"organization_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"message_count": 39,
"inbound_outbound_ratio": 0.8,
"success_ratio": 0.95,
"spam_ratio": 0.1,
"available_products": [
"A2P",
"P2P"
]
}