POST
/
sdk
/
{environmentId}
/
smsVerifications
/
create
curl --request POST \
  --url https://app.dynamicauth.com/api/v0/sdk/{environmentId}/smsVerifications/create \
  --header 'Content-Type: application/json' \
  --data '{
  "phoneCountryCode": "An example name",
  "phoneNumber": "An example name",
  "isoCountryCode": "US",
  "captchaToken": "<string>"
}'
{
  "verificationUUID": "95b11417-f18f-457f-8804-68e361f9164f",
  "phoneNumber": "9171113333",
  "phoneCountryCode": "1",
  "isoCountryCode": "US"
}

Path Parameters

environmentId
string
required

ID of the environment

Required string length: 36

Body

application/json
Sms Verification data
phoneCountryCode
string
required
Maximum length: 255
phoneNumber
string
required
Maximum length: 255
isoCountryCode
string
required
Maximum length: 4
captchaToken
string

When provided, used to verify that a captcha is valid and get the success/failure result from the captcha provider server-side.

Response

201
application/json
Successful response, that contains verification UUID.
verificationUUID
string
required
Required string length: 36
phoneNumber
string
required

This field contains the phone number in the country. This could also contain the area code within a country.

phoneCountryCode
string
required

This field contains the phone international country code. See https://countrycode.org/

isoCountryCode
string
required

ISO-3166 two-character country code. See https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes