Returns details on a specific phone number associated with your account, including primary voice route, and failover voice route if previously configured.
Endpoint
GET /numbers/:idPath Parameters
-
id
integer requiredPhone number to search for which must be a number that you own. The number must be in 11-digit E.164 format with the first digit being the country code 1. For example, 12061231234.
Response Fields
On success, the HTTP status code in the response header is 200 OK and the response body contains a phone number object in JSON format. On error, the header status code is an error code and the response body contains an array of error objects.
-
data
objectPhone number object composed of the following:
-
attributes
objectObject detailing phone number attributes defined in List Account Phone Numbers.
-
id
integerID of the phone number object which is equal to its value.
-
links
objectLinks object pointing to the phone number's URI. For example, https://api.flowroute.com/v2/numbers/16502390214.
-
relationships
objectObject describing the different relationships your phone number can have such as CNAM Presets, e911 Addresses, and Primary and Failover Routes all of which are represented as individual JSON objects.
-
type
stringThis will always be number.
-
included
arrayAn array of objects associated with the phone number that you have purchased. Objects can be of type `cnam`, `e911, `route`, or `messaging-provision`. For object details, see included routes in "Purchase a Phone Number".
-
route
objectA route object has the following information.
-
attributes
objectRoute object composed of the following properties:
alias string- Alias for the route.
edge_strategy_id integer- The edge strategy ID associated with your inbound route. To see the list of different edge strategies, run this curl command: curl -u accessKey:secretKey https://api.flowroute.com/v2/routes/edge_strategies
route_type string- Indicates the type of route: host, number, uri, or sip-reg. sip-reg is the default route type assigned to a phone number's primary voice route which you can change via Specify Primary Voice Route for a Phone Number. To create a new route to be assigned to your newly purchased phone number, see Create an Inbound Route.
value stringValue that the route was set to.
-
id
integerID of the route object for your phone number.
-
links
objectLinks object pointing to the route's URI. For example, https://api.flowroute.com/v2/routes/0.
-
type
stringThis will always be route.
-
cnam
objectA cnam object has the following information.
-
attributes
objectCNAM object composed of the following properties:
value stringValue that the CNAM was set to.
-
id
integerID of the CNAM object for your newly purchased phone number.
-
links
objectLinks object pointing to the CNAM's URI. For example, https://api.flowroute.com/v2/cnams/28526.
-
type
stringThis will always be cnam.
-
e911
objectA e911 object has the following information.
-
attributes
objectAttributes object associated with the specified E911 record. For an explanation of the different attributes, see E911 Attributes on List Account E911 Attributes.
-
id
integerUnique identifier of the E911 record.
-
links
objectLinks object pointing to the E911 address record's URI. For example, https://api.flowroute.com/v2/e911s/20155.
-
type
stringThis will always be e911.
-
Message Provision
objectA message_provisioning_status object has the following information.
-
attributes
objectAttributes object associated with the specified Message Provision record.
status stringThe status of the Message Provision request.
tn stringThe number associated with this Message Provision request.
-
id
integerUnique identifier of the Message Provision request.
-
links
objectLinks object pointing to the Message Provision record's URI. For example, https://api.flowroute.com/v2/message-provision/status/03d30058ac2747c5b5ac59b0588dbc45.
-
type
stringThis will always be message_provisioning_status.
-
links
stringLinks object pointing to the phone number that you have searched for. For example, https://api.flowroute.com/v2/numbers/16502390214.