ConstantsDefinitions
listStates
Return ISO state or province codes for the supplied country code.
Authorization<token>
Preferred authentication method for automation and integrations. Send the API token in the HTTP Authorization header.
Format:
Authorization: Token {apitoken}
Notes:
- An API token generated for a specific admin has the same privileges as that admin
- An API token is automatically removed if it is not used for more than 90 days
- SSO admins cannot generate admin API tokens. Use organization API tokens when scoped Org/Site privileges are needed.
In: header
Query Parameters
country_code*string
Country code, in two-character
Response Body
curl -X GET "https://example.com/api/v1/const/states?country_code=US"[ { "iso_code": "AK", "name": "Alaska" }, { "iso_code": "AL", "name": "Alabama" }, { "iso_code": "AS", "name": "American Samoa" }, { "iso_code": "AZ", "name": "Arizona" }, { "iso_code": "CA", "name": "California" }]