Stannp | Direct Mail Marketing Platform
package icon
Choose the right postage when sending on the API Are you sending personal information, or marketing content? Before you send your mail, know the key difference between First-Class and USPS Marketing Mail. Read our blog to find out more.

Validate an address

We currently can only validate UK & US addresses.

[POST]
https://api-us1.stannp.com/v1/addresses/validate

Parameters

ParameterDetailsDescription
company
str optional
Company name.
address1
str optional
Address line 1.
address2
str optional
Address line 2.
city
str optional
Address city.
state
str optional
Two-letter abbreviation if possible.
zipcode
str optional
Address zipcode.
country
str optional
ISO 3166-1 Alpha 2 Country Code (US,GB,CA,FR...).

Request Example

        curl "https://api-us1.stannp.com/v1/addresses/validate" \
-u {API_KEY}: \
-d "company=Stannp" \
-d "address1=1000 N west street" \
-d "address2=Suite 1200 #1939" \
-d "city=Wilmington" \
-d "zipcode=19801" \
-d "country=US"
    

Response Example

{
  "success": true,
  "data": {
    "is_valid": true
  }
}