curl --request GET \
--url https://api.topcalls.ai/v1/phone-numbers \
--header 'Authorization: Bearer <token>'{
"phone_numbers": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"number": "+18005551234",
"source": "topcalls",
"status": "active",
"phone_number_sid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"voip_carrier_sid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"carrier_name": "<string>",
"label": "<string>",
"error_message": "<string>",
"created_by_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"count": 123
}Get all phone numbers on your account.
curl --request GET \
--url https://api.topcalls.ai/v1/phone-numbers \
--header 'Authorization: Bearer <token>'{
"phone_numbers": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"number": "+18005551234",
"source": "topcalls",
"status": "active",
"phone_number_sid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"voip_carrier_sid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"carrier_name": "<string>",
"label": "<string>",
"error_message": "<string>",
"created_by_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"count": 123
}Use Authorization: Bearer tc_live_xxxxx
Filter by status
active, inactive, pending, failed, deleted Filter by source
topcalls, byoc, manual, import Maximum number of results (default 50)
1 <= x <= 100Pagination offset
x >= 0