Get rate center by location
GET/geo/location
Lookup rate centers using zipcode or city/state, only exact matches are supported.
Requires an authorization header or IP Auth setup through the portal.
Request
Query Parameters
type stringrequired
Must be either 'zipcode' or 'city_state'
zipcode string
Zipcode to query for. Required if type = zipcode
city string
City to query for. Required if type = city_state
Responses
200: Success. The response will be an array of RatecenterResults or the NoResults object.
- application/json
400: Bad request when missing required parameters
- application/json
401: Unauthorized request
- application/json
Request samples
curl -L 'https://switchdata.telnyx.com/v1/geo/location' \
-H 'Accept: application/json'
Response samples
[
{
"rc_name": "string",
"rc_abbre": "string",
"state": "string",
"npa_nxx": [
{
"npa": "string",
"nxx": "string",
"ocn": "string",
"effectivedate": "string"
}
]
}
]
{
"success": "string",
"message": "string",
"reasons": [
"string"
]
}
{
"error": "string"
}