All Products
Search
Document Center

Phone Number Verification Service:StartVerification

最終更新日:Apr 07, 2024

Sends verification codes to an end user by using a specified channel, such as Short Message Service (SMS), Voice, and WhatsApp.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ChannelstringYes

The channels that you can use for verification.

Enumeration Value:
  • VOICE: VOICE.
  • SMS: SMS.
  • WHATSAPP: WHATSAPP.
SMS
TostringYes

The mobile phone number of the recipient. You must add the country code to the beginning of the mobile phone number.

6212345****01
ServiceSidstringYes

The service ID that is displayed in the Phone Number Verification Service console.

FA00000000000001

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request. An ID is a unique identifier that Alibaba Cloud generates for a request.

HF14955E-EEB5-3CE4-AE50-00F7FC8C1D62
Messagestring

The message that was returned.

OK
Modelobject

The data that was returned only if the request was successful.

{ "verifyCode": "", "verificationId": "", "status": "" }
Codestring

The HTTP status code that was returned for the request.

OK
Successboolean

Indicates whether the request was successful. Valid values:

  • true: The request was successful.

  • false: The request failed.

true

Examples

Sample success responses

JSONformat

{
  "RequestId": "HF14955E-EEB5-3CE4-AE50-00F7FC8C1D62",
  "Message": "OK",
  "Model": {
    "verifyCode": "",
    "verificationId": "",
    "status": ""
  },
  "Code": "OK",
  "Success": true
}

Error codes

HTTP status codeError codeError message
400Invalid.ParametersThe parameter is invalid.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-11-03The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400