Validate an Address
POSThttps://dashboardapi.voxtelesys.net/api/v1/emergency-services/geolocations/validate
Endpoint for validating an E911 address.
Request
- application/json
Body
line_1stringrequired
The 1st line of the street address.
Possible values: <= 305 characters
Example:
509 25th Ave N
line_2string
The 2nd line of the street address.
Example:
Suite A
citystringrequired
The name of the city.
Possible values: <= 100 characters
Example:
Fargo
statestringrequired
The 2-character abbreviation for the state or province.
Possible values: <= 2 characters
Example:
ND
postal_codestringrequired
The USPS ZIP code or Canada postal code.
Possible values: <= 10 characters
Example:
58102
Responses
- 200
- application/json
- Schema
- Example (auto)
Schema
validboolean
Whether or not the address is a valid E911 address
Example:
true
corrected_address object
{
"valid": true,
"corrected_address": {
"line_1": "509 25th Ave N",
"line_2": "Suite A",
"city": "Fargo",
"state": "ND",
"postal_code": "58102"
}
}
Authorization: http
name: BearerAuthtype: httpscheme: bearer
- python
- curl
- csharp
- go
- nodejs
- ruby
- php
- java
- powershell
- dart
- javascript
- c
- objective-c
- ocaml
- r
- swift
- kotlin
- rust
- HTTP.CLIENT
- REQUESTS
import http.client
import json
conn = http.client.HTTPSConnection("dashboardapi.voxtelesys.net")
payload = json.dumps({
"line_1": "509 25th Ave N",
"line_2": "Suite A",
"city": "Fargo",
"state": "ND",
"postal_code": "58102"
})
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer <token>'
}
conn.request("POST", "/api/v1/emergency-services/geolocations/validate", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))