# Request 1: Get all phone numberscurl -X GET "https://app.talkover.ai/api/v1/phone-numbers" \ -H "Authorization: Bearer talq_your_environment_token_here"
// Request 1: Get all phone numbersconst response = await fetch('https://app.talkover.ai/api/v1/phone-numbers', { method: 'GET', headers: { 'Authorization': 'Bearer talq_your_environment_token_here' }});const result = await response.json();console.log(result);
Retrieve a list of available phone numbers with filtering options
GET
/
api
/
v1
/
phone-numbers
# Request 1: Get all phone numberscurl -X GET "https://app.talkover.ai/api/v1/phone-numbers" \ -H "Authorization: Bearer talq_your_environment_token_here"
// Request 1: Get all phone numbersconst response = await fetch('https://app.talkover.ai/api/v1/phone-numbers', { method: 'GET', headers: { 'Authorization': 'Bearer talq_your_environment_token_here' }});const result = await response.json();console.log(result);
Retrieve a list of available phone numbers with various filtering options. This endpoint returns phone numbers with their capabilities, pricing, and status information.
Endpoint
GET /api/v1/phone-numbers
Request headers
string
required
Bearer token for authentication. Format: Bearer talq_your_environment_token_here
Query parameters
string
Filter by phone number type. Options: voice, sms, whatsapp, mms, fax
boolean
Filter by voice capability. Options: true, false
boolean
Filter by WhatsApp capability. Options: true, false
string
Search by phone number or ID
Example requests
# Request 1: Get all phone numberscurl -X GET "https://app.talkover.ai/api/v1/phone-numbers" \ -H "Authorization: Bearer talq_your_environment_token_here"
// Request 1: Get all phone numbersconst response = await fetch('https://app.talkover.ai/api/v1/phone-numbers', { method: 'GET', headers: { 'Authorization': 'Bearer talq_your_environment_token_here' }});const result = await response.json();console.log(result);
# Request 2: Get phone numbers with voice capabilitycurl -X GET "https://app.talkover.ai/api/v1/phone-numbers?has_voice=true" \ -H "Authorization: Bearer talq_your_environment_token_here"
// Request 2: Get phone numbers with voice capabilityconst response = await fetch('https://app.talkover.ai/api/v1/phone-numbers?has_voice=true', { method: 'GET', headers: { 'Authorization': 'Bearer talq_your_environment_token_here' }});const result = await response.json();console.log(result);
# Request 3: Search for a specific phone numbercurl -X GET "https://app.talkover.ai/api/v1/phone-numbers?search=+1234567890" \ -H "Authorization: Bearer talq_your_environment_token_here"
// Request 3: Search for a specific phone numberconst response = await fetch('https://app.talkover.ai/api/v1/phone-numbers?search=+1234567890', { method: 'GET', headers: { 'Authorization': 'Bearer talq_your_environment_token_here' }});const result = await response.json();console.log(result);