Country code allowlist for a given project and delivery method. This object is used to manage the allowed country codes for the SMS and WhatsApp delivery methods in Stytch projects. For B2B projects, only SMS country code allowlist is supported. For B2C Projects, both SMS and WhatsApp allowlists are supported.
By default, a new project will have only the United States (US) and Canada (CA) enabled for SMS and WhatsApp OTP sends.
The country codes follow the ISO 3166-1 alpha-2 standard, which consists of two-letter country codes. For example, the United States is represented as US.
Attempting to set country codes that are unsupported will result in a country_code_allowlist_invalid_country_codes error.
For a list of countries that are not supported by Stytch, see our unsupported countries list here.