Sign inGet Started

Get a voice number

GET
/v1/voice/numbers/{number_id}
const number = await bird.voice.numbers.get("number-id");
console.log(number.phone_number, number.directions);
Response200
{
  "id": "vnu_01krdgeqcxet5s7t44vh8rt9mg",
  "phone_number": "+14155551234",
  "country_code": "US",
  "name": "Support line",
  "provider": {
    "type": "allocation",
    "number_id": "nda_01krdgeqcxet5s7t44vh8rt9mg"
  },
  "inbound_configuration": {
    "route": {
      "type": "reject"
    },
    "configuration_error": "unsupported_route_type",
    "forward_as_options": [
      "calling_number"
    ]
  }
}
Returns one of the numbers your workspace can use for voice.
A number nobody has configured reads back with its inbound route set to "reject", which is where every number starts rather than an absence.
Parameters
number_id
string
Response Payload
id
string
required
Identifier of this number, to pass to the operations that read and change it. A number you registered as a caller ID carries the same identifier there, with the caller-ID prefix.
phone_number
string
required
The phone number in E.164 format.
country_code
nullable string
required
Country the number belongs to. Null when the number is not geographic or its country cannot be determined.
name
nullable string
required
Your own label for this number, to tell several apart. Null when it has none. Only you see it, so it never affects what a caller sees.
provider
object
required
Where this number came from, and the facts that belong to that answer. The type selects the shape. allocation is a number we allocated to your workspace, and it carries that allocation's identifier. verified_number is a number from another carrier, and it carries how far proving control of it has got.
Show child attributes
provider.type
string
required
A number we allocated to your workspace.
Value: allocation
provider.number_id
nullable string
required
Identifier of this number's allocation, to pass to the numbers operations. Null when the allocation behind this number cannot be resolved.
directions
object
required
Which directions this number can carry. Both follow from the number itself, so neither is yours to change. On a SIP trunk each direction is a setting you turn on; here it is a fact about the number.
Show child attributes
directions.inbound
boolean
required
Whether calls to this number arrive here. False for a number from another carrier, whose calls that carrier routes, and for one allocated to you that cannot carry calls.
directions.outbound
boolean
required
Whether this number can be presented on a call you place. Buying a number does not grant this on its own: proving control of it does.
inbound_configuration
object
required
What happens to a call arriving for this number.
Show child attributes
inbound_configuration.route
nullable object
required
Null when the stored route type is unsupported; inspect configuration_error before changing it.
Show child attributes
inbound_configuration.route.type
string
required
Refuses the call. Every number starts here, and setting it again is how you stop a number answering without giving it up.
Value: reject
inbound_configuration.configuration_error
string
Possible values: unsupported_route_type
inbound_configuration.forward_as_options
array of string
Which numbers a forward from this number may be set to show as the caller. A value outside this list is refused on write.
"dialed_number" is present only where your workspace is approved to place calls from numbers you bought from us.
created_at
string
required
When this number became usable for voice: when it was allocated to you, or when you first registered it, whichever this number is.