curl --request GET \
--url https://api.puretalk.ai/api/phone-numbers \
--header 'X-API-KEY: <api-key>'{
"count": 10,
"next": "https://api.puretalk.ai/api/phone-numbers?page=2",
"previous": "https://api.puretalk.ai/api/phone-numbers?page=1",
"results": [
{
"user": {
"name": "John Doe",
"dp": "https://api.puretalk.ai/api/users/1/profile_picture.jpg",
"email": "[email protected]"
},
"ai_assistant": {
"assistant_id": "00ef5401-cbfb-450a-a806-adad5dd907f3",
"name": "My AI Assistant",
"variables": [
"<string>"
]
},
"additional_data": {
"postal_code": "<string>",
"capabilities": {
"voice": true,
"SMS": true,
"MMS": true
},
"locality": "<string>",
"region": "<string>",
"iso_country": "<string>"
},
"phone_number_id": "<string>",
"phone_number": "<string>",
"friendly_name": "<string>",
"provider": "<string>",
"provider_id": "<string>",
"is_active": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}Returns all phone numbers from the system that the user has access to
curl --request GET \
--url https://api.puretalk.ai/api/phone-numbers \
--header 'X-API-KEY: <api-key>'{
"count": 10,
"next": "https://api.puretalk.ai/api/phone-numbers?page=2",
"previous": "https://api.puretalk.ai/api/phone-numbers?page=1",
"results": [
{
"user": {
"name": "John Doe",
"dp": "https://api.puretalk.ai/api/users/1/profile_picture.jpg",
"email": "[email protected]"
},
"ai_assistant": {
"assistant_id": "00ef5401-cbfb-450a-a806-adad5dd907f3",
"name": "My AI Assistant",
"variables": [
"<string>"
]
},
"additional_data": {
"postal_code": "<string>",
"capabilities": {
"voice": true,
"SMS": true,
"MMS": true
},
"locality": "<string>",
"region": "<string>",
"iso_country": "<string>"
},
"phone_number_id": "<string>",
"phone_number": "<string>",
"friendly_name": "<string>",
"provider": "<string>",
"provider_id": "<string>",
"is_active": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}Authorization header containing API key. You can find your API key in the dashboard under 'API Keys'.
The page number to return
The maximum number of results to return
Phone numbers response
The total number of phone numbers
10
The next page of phone numbers
"https://api.puretalk.ai/api/phone-numbers?page=2"
The previous page of phone numbers
"https://api.puretalk.ai/api/phone-numbers?page=1"
Show child attributes
The user object
Show child attributes
The name of the user
"John Doe"
The profile picture of the user
"https://api.puretalk.ai/api/users/1/profile_picture.jpg"
The email of the user
Show child attributes
The postal code of the phone number
The locality of the phone number
The region of the phone number
The ISO country code of the phone number
The ID of the phone number
The phone number
The friendly name of the phone number
The provider of the phone number
The provider ID of the phone number
Indicates if the phone number is active
The date and time the phone number was created
The date and time the phone number was updated
Was this page helpful?