查询模板列表
查询模板列表
curl -X POST "https://api.example.com/open/v1/voice/template/list" \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"page": 1,
"size": 1
}'000000 成功;data 含 total 与 list
{
"code": "000000",
"data": {
"list": [
{
"playTimes": 0,
"templateId": "string",
"contentType": "string",
"countryCode": "string",
"templateName": "string",
"templateState": "string"
}
],
"total": 0
},
"message": "string"
}来自当前规范的响应示例,不是真实请求结果。
分页查询当前账号的模板,可按内容类型、国家、审核状态(0 审核中 / 1 已通过 / 2 已失败)过滤。data 为分页结构。
使用 InnoPaaS AppKey 作为 Bearer Token。可在 Console 的 API 密钥页面创建或管理密钥。 查看密钥指南
授权
Authorizationstring<bearer>必填请求主体
application/jsonpageinteger必填页码
最小值
1sizeinteger必填每页条数
最小值
1最大值100contentTypestring可选内容类型过滤(不传=全部)
countryCodestring可选国家过滤(不传=全部)
匹配模式
^[A-Za-z]{2}$templateStatestring可选审核状态过滤:0 审核中、1 已通过、2 已失败(不传=全部)
响应
application/json000000 成功;data 含 total 与 list
codestring可选dataobjectnull可选messagestring可选{
"code": "000000",
"data": {
"list": [
{
"playTimes": 0,
"templateId": "string",
"contentType": "string",
"countryCode": "string",
"templateName": "string",
"templateState": "string"
}
],
"total": 0
},
"message": "string"
}来自当前规范的响应示例,不是真实请求结果。