cURL
curl --request POST \ --url https://management.stytch.com/pwa/v3/projects/:project_slug/environments/:environment_slug/allowed_country_codes/sms \ --header 'Authorization: Basic <encoded-value>' \ --header 'Content-Type: application/json' \ --data ' { "country_codes": [ "<string>" ] } '
{ "request_id": "<string>", "country_codes": [ "<string>" ], "status_code": 123 }
SetAllowedSMSCountryCodes sets the allowed SMS country codes for an environment.
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Basic <encoded-value>
<encoded-value>
username:password
Request type
Successful response
Response type