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.
Stytch does not support the following country codes for either SMS or WhatsApp delivery methods:
Country | Alpha-2 | Prefix |
---|---|---|
Antarctica | AQ | +672 |
Bouvet Island | BV | +47 |
French Southern Territories (the) | YF | +262 |
Heard Island and McDonald Islands | HM | +672 |
Pitcairn | PN | +64 |
South Georgia and the South Sandwich Islands | GS | +500 |
United States Minor Outlying Islands (the) | UM | +1 |
Due to a recent change from Meta concerning "group senders," we will be disabling WhatsApp sending to the following countries starting on July 9th 2025:
Country | Alpha-2 | Prefix |
---|---|---|
Egypt | EG | +20 |
India | IN | +91 |
Indonesia | ID | +62 |
Malaysia | MY | +60 |
Nigeria | NG | +234 |
Pakistan | PK | +92 |
Saudi Arabia | SA | +966 |
South Africa | ZA | +27 |
United Arab Emirates | AE | +971 |