/
Contact usSee pricingStart building

    Management

    API keys
    Redirect urls
    Event logs
    Dashboard roles & permissions
    Webhooks

    Programmatic Workspace Actions

    Overview
    Limits
    Country code allowlists
      Country code allowlist object
      Get allowed country codes
      Set allowed country codes
    Email templates
      Email template object
      Sender information object
      Prebuilt customization object
      Custom HTML customization object
      Create email template
      Get email template
      Get all email templates
      Update email template
      Delete email template
    JWT templates
      JWT template object
      Get JWT templates
      Set JWT templates
    Password strength config
      Password strength config object
      Get password strength config
      Set password strength config
    Projects
      Project object
      Create project
      Get project
      Get all projects
      Update project
      Delete project
    Project metrics
      Metrics object
      Get project metrics
    Public tokens
      Public token object
      Create public token
      Get all public tokens
      Delete public tokens
    RBAC policy
      Policy object
      Role object
      Permission object
      Resource object
      Get RBAC policy
      Set RBAC policy
    Redirect URLs
      Redirect URL object
      URL type object
      Create redirect URL
      Get redirect URL
      Get all redirect URLs
      Update redirect URL
      Delete redirect URL
    SDK config
      SMSAutofillMetadata object
      ConsumerSDKBasicConfig object
      ConsumerSDKSessionsConfig object
      ConsumerSDKMagicLinksConfig object
      ConsumerSDKOTPsConfig object
      ConsumerSDKOAuthConfig object
      ConsumerSDKTOTPsConfig object
      ConsumerSDKWebauthnConfig object
      ConsumerSDKCryptoWalletsConfig object
      ConsumerSDKDFPPAConfig object
      ConsumerSDKBiometricsConfig object
      ConsumerSDPasswordsConfig object
      ConsumerConfig object
      B2BSDKBasicConfig object
      B2BSDKSessionsConfig object
      B2BSDKMagicLinksConfig object
      B2BSDKOTPsConfig object
      B2BSDKOAuthConfig object
      B2BSDKTOTPsConfig object
      B2BSDKSSOConfig object
      B2BSDKPasswordsConfig object
      B2BConfig object
      Get Consumer SDK config
      Set Consumer SDK config
      Get B2B SDK config
      Set B2B SDK config
    Secrets
      Secret object
      CreatedSecret object
      Create secret
      Get secret
      Get all secrets
      Delete secret
Get support on SlackVisit our developer forum

Contact us

Home

/

Workspace management

/

Programmatic Workspace Actions

/

Country code allowlists

/

Country code allowlist object

Country code allowlist object

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:

CountryAlpha-2Prefix
AntarcticaAQ+672
Bouvet IslandBV+47
French Southern Territories (the)YF+262
Heard Island and McDonald IslandsHM+672
PitcairnPN+64
South Georgia and the South Sandwich IslandsGS+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:

CountryAlpha-2Prefix
EgyptEG+20
IndiaIN+91
IndonesiaID+62
MalaysiaMY+60
NigeriaNG+234
PakistanPK+92
Saudi ArabiaSA+966
South AfricaZA+27
United Arab EmiratesAE+971