调用ConfirmSendSms短信确认接口,将待发送短信内容先进行短信截取,确认后再通过短信通道下发。
QPS限制
本接口的单用户QPS限制为1000次/秒。超过限制,API调用会被限流,这可能会影响您的业务,请合理调用。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 否 | ConfirmSendSms |
系统规定参数。取值:ConfirmSendSms。 |
PoolKey | String | 是 | FC2235**** |
号码池Key。 说明 您可以登录号码隐私保护控制台,在号码池管理中查看号码池Key。
|
SecretNo | String | 是 | 170****0000 |
绑定关系中的隐私号码。 |
CallId | String | 是 | abcedf1234**** |
呼叫记录ID,用于标识一条通话记录。 说明 您可以登录号码隐私保护控制台,在呼叫记录查询中查看呼叫记录ID。
|
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
Code | String | OK |
请求状态码。
|
Message | String | OK |
状态码描述。 |
Data | String | true |
接口调用是否成功。 |
RequestId | String | 1AB3CEF7-DCBE-488C-9C33-D180982CE031 |
请求ID。 |
示例
请求示例
https://dyplsapi.aliyuncs.com/?Action=ConfirmSendSms
&PoolKey=FC2235****
&SecretNo=170****0000
&CallId=abcedf1234****
&公共请求参数
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<ConfirmSendSmsResponse>
<Code>OK</Code>
<Message>OK</Message>
<Data>true</Data>
<RequestId>1AB3CEF7-DCBE-488C-9C33-D180982CE031</RequestId>
</ConfirmSendSmsResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"Code" : "OK",
"Message" : "OK",
"Data" : "true",
"RequestId" : "1AB3CEF7-DCBE-488C-9C33-D180982CE031"
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | ProductUnsubscribe | The specified poolKey does not exist. | 号池不存在 |
400 | PoolKeyNotFound | The specified poolKey does not exist. | 号池不存在 |
400 | ContentUnsupported | There is unsupported content, please check the incoming content. | 存在不支持的内容 |
400 | InvalidJsonParam | There are unavailable parameters, please check the parameter list. | 存在不可用的参数 |
400 | SmartSmsContentNotWhite | Smart SMS content is not configured in the white list. | 智能短信内容未在白名单中配置。 |
400 | SmsContenIllegal | The SMS content is illegal, Please check and adjust it and try again. | 短信内容非法。 |
400 | SmsSignllegal | The SMS sign is illegal, Please check and adjust it and try again. | 短信签名非法。 |
400 | BlackKeyControlLimit | You are under blacklist control, Please contact relevant personnel to cancel the operation. | 黑名单管控。 |
访问错误中心查看更多错误码。