Successful response with details about a phone number including voice settings.
import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.MessagingPhoneNumber.retrieve("id")
{- "data": {
- "country_code": "US",
- "created_at": "2019-01-23T18:10:02.574Z",
- "eligible_messaging_products": [
- "A2P"
], - "features": {
- "mms": null,
- "sms": {
- "domestic_two_way": true,
- "international_inbound": true,
- "international_outbound": true
}
}, - "health": {
- "inbound_outbound_ratio": 0.43,
- "message_count": 122,
- "spam_ratio": 0.06,
- "success_ratio": 0.94
}, - "id": "1293384261075731499",
- "messaging_product": "A2P",
- "messaging_profile_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
- "phone_number": "+18005550001",
- "record_type": "messaging_settings",
- "traffic_type": "A2P",
- "type": "toll-free",
- "updated_at": "2019-01-23T18:10:02.574Z"
}
}
Updated messaging settings for the phone number
Successful response with details about a phone number including voice settings.
object (PhoneNumberWithMessagingSettings) | |||||||||||||||||||||||||||
|
{- "messaging_product": "P2P",
- "messaging_profile_id": "dd50eba1-a0c0-4563-9925-b25e842a7cb6"
}
{- "data": {
- "country_code": "US",
- "created_at": "2019-01-23T18:10:02.574Z",
- "eligible_messaging_products": [
- "A2P"
], - "features": {
- "mms": null,
- "sms": {
- "domestic_two_way": true,
- "international_inbound": true,
- "international_outbound": true
}
}, - "health": {
- "inbound_outbound_ratio": 0.43,
- "message_count": 122,
- "spam_ratio": 0.06,
- "success_ratio": 0.94
}, - "id": "1293384261075731499",
- "messaging_product": "A2P",
- "messaging_profile_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
- "phone_number": "+18005550001",
- "record_type": "messaging_settings",
- "traffic_type": "A2P",
- "type": "toll-free",
- "updated_at": "2019-01-23T18:10:02.574Z"
}
}
Successful response with a list of phone numbers with messaging settings.
Array of objects (PhoneNumberWithMessagingSettings) | |
object (PaginationMeta) |
import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.MessagingPhoneNumber.list(page={"number":1, "size":20})
{- "data": [
- {
- "country_code": "US",
- "created_at": "2019-01-23T18:10:02.574Z",
- "eligible_messaging_products": [
- "A2P"
], - "features": {
- "mms": null,
- "sms": {
- "domestic_two_way": true,
- "international_inbound": true,
- "international_outbound": true
}
}, - "health": {
- "inbound_outbound_ratio": 0.43,
- "message_count": 122,
- "spam_ratio": 0.06,
- "success_ratio": 0.94
}, - "id": "1293384261075731499",
- "messaging_product": "A2P",
- "messaging_profile_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
- "phone_number": "+18005550001",
- "record_type": "messaging_settings",
- "traffic_type": "A2P",
- "type": "toll-free",
- "updated_at": "2019-01-23T18:10:02.574Z"
}
], - "meta": {
- "total_pages": 3,
- "total_results": 55,
- "page_number": 2,
- "page_size": 25
}
}