Autocomplete
POST/v1/addver/completions
Resolves a partial street address into a list of full address candidates, optionally selecting a specific candidate by index and verifying it.
Basic usage — omit index: returns an array of CompletedAddressItem
results for the given partialStreet.
With index — specify index to resolve a single candidate. Returns
a single CompletedAddressItem.
With index + verify=true — additionally runs the selected address
through the USPS/Canada Post verifier and returns a StandardVerifiedAddress.
- Uses 1 lookup per call (plus 1 more if geocoding a result).
Query Parameters
Body ParametersJSON
Autocomplete
curl https://api.postgrid.com/v1/addver/completions \
-H 'Content-Type: application/json' \
-H "X-API-Key: $POSTGRID_ADDRESS_VERIFICATION_API_KEY" \
-d '{
"partialStreet": "partialStreet"
}'{
"data": {
"address": {
"address": "address",
"address2": "address2",
"city": "city",
"country": "country",
"pc": "pc",
"prov": "prov"
},
"errors": {
"city": [
"string"
],
"generic": [
"string"
],
"line1": [
"string"
],
"line2": [
"string"
],
"postalOrZip": [
"string"
],
"provinceOrState": [
"string"
]
},
"geocodeResult": {
"accuracy": 0,
"accuracyType": "rooftop",
"location": {
"lat": 0,
"lng": 0
}
}
},
"message": "message",
"status": "success"
}Returns Examples
{
"data": {
"address": {
"address": "address",
"address2": "address2",
"city": "city",
"country": "country",
"pc": "pc",
"prov": "prov"
},
"errors": {
"city": [
"string"
],
"generic": [
"string"
],
"line1": [
"string"
],
"line2": [
"string"
],
"postalOrZip": [
"string"
],
"provinceOrState": [
"string"
]
},
"geocodeResult": {
"accuracy": 0,
"accuracyType": "rooftop",
"location": {
"lat": 0,
"lng": 0
}
}
},
"message": "message",
"status": "success"
}