向联系人的手机号码发送验证信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| ContactId |
string |
否 |
联系人 ID。 |
c-qL4HqKONzOM7**** |
| PhoneNumber |
string |
否 |
联系人的手机号码。 格式: 该手机号码为您在 AddMessageContact 中设置的手机号码。 |
86-139****1234 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回结果。 |
||
| RequestId |
string |
请求 ID。 |
CD76D376-2517-4924-92C5-DBC52262F93A |
示例
正常返回示例
JSON格式
{
"RequestId": "CD76D376-2517-4924-92C5-DBC52262F93A"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | MissingParameter.ContactId | You must specify ContactId. | |
| 400 | InvalidParameter.ContactId | The ContactId is invalid. | |
| 400 | MissingParameter.PhoneNumber | You must specify PhoneNumber. | |
| 400 | InvalidParameter.PhoneNumber | The PhoneNumber is invalid. | |
| 400 | InvalidParameter.MobileCountryCode | The current site does not support the country code. | |
| 404 | EntityNotExists.Contact | This Contact does not exist. | |
| 404 | EntityNotExists.Contact.Verification | This contact verification does not exist. | |
| 409 | SendValidateCodeExceedsLimitForAccount | For the same account, the number of verification codes sent exceeds the limit. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。