cURL
curl --request POST \ --url https://app.demand-iq.com/api/address/validate \ --header 'Content-Type: application/json' \ --cookie session= \ --data ' { "address": "123 Main St", "city": "Phoenix", "country": "US", "state": "AZ", "zip": "85001" } '
{ "valid": true, "formattedAddress": "<string>", "coordinates": { "lat": 123, "lng": 123 }, "normalized": {}, "error": "<string>" }
Validates a physical address using geocoding. Returns formatted address, coordinates, and normalized components.
Session cookie obtained from POST /api/auth/login.
POST /api/auth/login
"123 Main St"
"Phoenix"
ISO 3166-1 alpha-2 country code
2
"US"
"AZ"
"85001"
Validation result
Show child attributes