List templates
List templates
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
}'code=000000 success; data contains total/list
{
"code": "000000",
"data": {
"list": [
{
"playTimes": 0,
"templateId": "string",
"contentType": "string",
"countryCode": "string",
"templateName": "string",
"templateState": "string"
}
],
"total": 0
},
"message": "string"
}Documented response example from the spec, not a real request result.
Paginated template list for the current account, filterable by content type, country, or review status (0 under review, 1 approved, 2 rejected). data is a pagination structure; list items contain templateId/templateName/contentType/templateState/countryCode/playTimes etc. Error codes follow the platform six-digit scheme.
Use the InnoPaaS AppKey as a Bearer token. Create or manage keys in Console. API key guide
Authorization
Authorizationstring<bearer>requiredBody
application/jsonpageintegerrequiredPage number
1sizeintegerrequiredPage size
1Maximum100contentTypestringoptionalContent type filter (empty = all)
countryCodestringoptionalCountry filter (empty = all)
^[A-Za-z]{2}$templateStatestringoptionalReview status filter — 0 under review, 1 approved, 2 rejected (empty = all)
Response
application/jsoncode=000000 success; data contains total/list
codestringoptionaldataobjectnulloptionalmessagestringoptional{
"code": "000000",
"data": {
"list": [
{
"playTimes": 0,
"templateId": "string",
"contentType": "string",
"countryCode": "string",
"templateName": "string",
"templateState": "string"
}
],
"total": 0
},
"message": "string"
}Documented response example from the spec, not a real request result.