List Voice destination countries
/v1/voice/destinationsconst destinations = await bird.voice.destinations.list();
for (const destination of destinations.data) {
console.log(destination.country_code, destination.enabled, destination.status);
}destinations = client.voice.destinations.list()
for destination in destinations.data:
print(destination.country_code, destination.enabled, destination.status)destinations, err := client.Voice.Destinations.List(context.Background())
if err != nil {
log.Fatal(err)
}
for _, destination := range destinations.Data {
fmt.Println(destination.CountryCode, destination.Enabled, destination.Status)
}$destinations = $bird->voice->destinations->list();
foreach ($destinations->getData() ?? [] as $destination) {
echo $destination->getCountryCode(), ' ', $destination->getEnabled() ? 'on' : 'off', "\n";
}bird voice destinations listcurl -X GET "https://us1.platform.bird.com/v1/voice/destinations" \
-H "Authorization: Bearer $TOKEN"{
"data": [
{
"country_code": "US",
"country_name": "Netherlands",
"dial_code": "31",
"region": "western_europe",
"super_region": "europe",
"status": "available",
"daily_spend_limit": {
"limit": {
"amount": "0.00995",
"currency_code": "USD"
},
"used": {
"amount": "0.00995",
"currency_code": "USD"
},
"remaining": {
"amount": "0.00995",
"currency_code": "USD"
},
"resets_at": "2026-10-09T00:00:00Z"
}
}
]
}
Returns every country the Voice service supports, each annotated with whether your workspace has enabled calling to it, whether the platform supports calling it (status), and any daily spend limit you set for it with today's usage. A supported, enabled country still refuses calls once its daily_spend_limit.remaining reaches zero. Use this to render and manage your destination allowlist.
响应载荷
dataThe Voice destination countries, each annotated with your workspace's enabled setting.
显示子属性
data.country_codedata.country_nameFull English country name.
data.dial_codeInternational dialling prefix, without the leading plus. Absent for countries that have none.
data.regiondata.super_regiondata.enabledWhether your workspace has enabled calling to this country.
data.statusThis country's Voice callability at the destination level, independent of your enabled setting. available means we place calls there; not_supported means we do not.
Possible values (may grow over time): available, not_supported
data.high_risk_destinationWhether we treat this country as a high-risk calling destination.
data.daily_spend_limitYour workspace's daily spend limit for calls to this country and today's usage toward it. It applies whether or not the country is enabled, including to verification calls. Null when you have not set one, before your organization has a wallet, or while your wallet currency cannot be read; a limit you set is still enforced then.
显示子属性
data.daily_spend_limit.limitThe most your workspace can spend on calls to this country each day, in your organization's wallet currency. Calls are also held to the workspace's own daily limit, and whichever is reached first refuses the call.
data.daily_spend_limit.usedUsed toward today's limit for this country, including calls in progress. A call counts its expected cost when it starts; the part it did not use returns when it is billed. Null when today's usage cannot be read right now; the limit is still enforced.
显示子属性
data.daily_spend_limit.used.amountDecimal amount as a string, in major currency units.
data.daily_spend_limit.used.currency_codeISO 4217 currency code.
data.daily_spend_limit.remainingWhat is left of this country's limit today, never below zero. Null when today's usage cannot be read.
data.daily_spend_limit.resets_atWhen usage resets to zero, at midnight UTC.
totalTotal number of destination countries.