tencent cloud

智能媒资托管

产品简介
产品概述
功能介绍
产品优势
应用场景
基本概念
购买指南
快速入门
创建媒体库
发起请求
服务级 API 文档
History
Introduction
API Category
Making API Requests
PaaS Service APIs
Official Cloud Disk APIs
Data Types
Error Codes
业务级 API 文档
简介
访问令牌操作接口
租户空间操作接口
文件操作接口
目录或相簿操作接口
回收站操作接口
配额操作接口
查询任务操作接口
搜索操作接口
历史版本操作接口
目录和文件批量操作接口
收藏操作接口
Error Codes
SDK 文档
Android SDK
iOS SDK
鸿蒙 SDK
常见问题
企业网盘
产品简介
购买指南
快速入门
常见问题
Service Level Agreement
词汇表

SendSmsCode

聚焦模式
字号
最后更新时间: 2025-12-07 00:27:07

1. API Description

Domain name for API request: smh.intl.tencentcloudapi.com.

This API is used to send SMS verification codes for changing the admin account of a super official cloud disk instance.

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: SendSmsCode.
Version Yes String Common Params. The value used for this API: 2021-07-12.
Region No String Common Params. This parameter is not required for this API.
Purpose Yes String Captcha target, currently supported: rebind super administrator account, BindSuperAdmin; trial version business upgrade, ChannelUpdateVerify.
PhoneNumber Yes String Specifies the mobile number as the super admin account.
InstanceId No String Official cloud disk instance ID.
CountryCode No String Specifies the country code of the mobile number that serves as the super administrator account. defaults to +86.

3. Output Parameters

Parameter Name Type Description
RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

4. Example

Example1 Sending SMS Verification Code

Input Example

POST / HTTP/1.1
Host: smh.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: SendSmsCode
<Common request parameters>

{
    "Purpose": "BindSuperAdmin",
    "InstanceId": "n0v9tdme",
    "PhoneNumber": "18999999999"
}

Output Example

{
    "Response": {
        "RequestId": "37c3c855-caee-4c44-9778-bdec5998e5f1"
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
InternalError.SendSms Error occurs when sending sms verification code.
InvalidParameterValue.CountryCode The specified country code is invalid.
InvalidParameterValue.NotModified The specified phone number is the same as the current one.
InvalidParameterValue.NotSuperAdmin The specified phone number is not the super administrator of the enterprise.
InvalidParameterValue.PhoneNumber The specified phone number is invalid.
RequestLimitExceeded.SendSms The sms verification code sent to the designated mobile number has reached the rate limit.
ResourceNotFound.OfficialInstance The official cloud disk instance does not exist or does not belong to the current account.
UnsupportedOperation.Purpose The specified purpose is unsupported.

帮助和支持

本页内容是否解决了您的问题?

填写满意度调查问卷,共创更好文档体验。

文档反馈