Countries

Look up supported countries and address field requirements.

GET
/api/v1/countries

Description

Returns the platform country catalog with address validation metadata. Use is_state_required to determine whether the state field is required for a selected country in Recover and other address flows.

Response

Response Fields

FieldTypeDescription
successbooleanIndicates if the request was successful
data.address_requirements.stateobjectDescribes when the state field is required
data.countries[].codestringISO country code
data.countries[].namestringCountry display name
data.countries[].is_state_requiredbooleanWhen true, state must be provided for that country

State-required countries

The API is authoritative. Each country in the response includes is_state_required. When true, the state field must be provided for that country. When false, requests may omit state.

Notes

  • Recover endpoints such as Initiate Recovery and Bulk Upload validate state using this catalog.
  • When state is required and omitted, the API returns HTTP 422 with State is required for the selected country.

Related Endpoints

Did this page help you?