Export Phone Templates
Exports multiple custom phone templates to an encrypted .cust file in one request and returns a download URL.
Request URL
POST {base_url}/uc-cautop/api/v1/phone-templates/export-cust
Request parameters
- Headers
-
Parameter Required Type Description Authorization Yes String The access token used for authentication. Format: Bearer
{access_token}.x-tenant-code No String The tenant name. Note: You can obtain tenant name using the Query Tenants interface.
- Body parameters
-
Parameter Required Type Description query No String The search keyword, which takes effect when ids is empty. All matching custom templates are exported. When both parameters are empty, all custom templates are exported. ids No Array<String> The list of IDs of the templates to export. You can obtain the IDs using the Search Custom Phone Templates interface.
Response parameters
| Parameter | Type | Description |
|---|---|---|
| requestId | String | The unique ID of the request, which can be used to quickly locate the request. |
| code | String | The HTTP status code of the request.
|
| message | String | The status message of the request. |
| detailMessage | String | The detailed error information. When the request is successful, this parameter returns empty. |
| result | Object<Export_Result> | The export result. |
- Export_Result
-
Parameter Type Description downloadUrl String The presigned download URL with a validity period. fileName String The name of the file.
Example
Request example
POST /uc-cautop/api/v1/phone-templates/export-cust HTTP/1.1
Host: api.cn.novoone.com
Authorization: Bearer eyJraWQiOiJjbi0wLWtleS0xIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJkaXN0cmlidXRvcmV4YW1wbGVAb3V0bG9vay5jb20iLCJhcHBfa2V5Ijoic2xOdnQzaHc1NXB2Vm5HRlNhR2ZOVTNmMWxYQ3lpa08iLCJncmFudF90eXBlIjoib3BlbmFwaSIsImNsaWVudF9leHQiOnsiZGVzY3JpcHRpb24iOiLnrKzkuInmlrnlkIjkvZzkvJnkvLTlupTnlKgiLCJwYXJ0bmVyIjoi56S65L6L5ZCI5L2c5LyZ5Ly0In0sImNsaWVudF90eXBlIjoib3BlbmFwaSIsImV4cCI6MTc5MjU2NjA5OSwiaWF0IjoxNzkyNTQ0NDk5LCJqdGkiOiI3NjY2ZWU3Ny0zZTYwLTQxMGEtOTQyMy1hOTRlZmNlZjYwMjYiLCJjbGllbnRfaWQiOiJub3ZvLW9wZW4tcGxhdGZvcm0iLCJ1c2VyX2V4dCI6eyJyb2xlSWRzIjpbM10sInN0eXBlIjoiQURNSU4iLCJ0ZW5hbnRDb2RlIjpudWxsLCJ0eXBlIjoiUF9BQ0NPVU5UIiwidXNlcklkIjozMDc2OTEzNjQ0OTE1OTk4NzIwLCJlbWFpbCI6ImRpc3RyaWJ1dG9yZXhhbXBsZUBvdXRsb29rLmNvbSIsInVzZXJuYW1lIjoiZGlzdHJpYnV0b3JleGFtcGxlQG91dGxvb2suY29tIiwidWNJZCI6MzA3NjkxMzY0NDg5MDgzMjg5Nn19.zQ5trUGZLZpONqSK-W4IYwft0hfjEAEQ1Yltse27gR0Wfec--msHIKXs3Ukvc9kKdU04IplkNgtjj_iHr31STcCdu_XAfU3E3A2AiNzkcd1f6jwIqs3_ZVOkQLLgwUkpRY_6vWkhOmwlyU8L4ue2n03eoYRU__IdHlECXTSh9P-QmPUWF2Sxti8zctDpA6QqeoSnIO5ChKHC8n8IG9k82HKfigG5SrFkD9MR6EOUjw3feqFH9mVJvuL61ZPYBhJ29hHo7hsgxDahs9s3p-A02J3zEQrsHDCFM4KtB-9wm8e1j26rl_cfC14BIxo0BeZLSAuAEVnEXwpVdSBEXOu9PA
Content-Type: application/json
{
"ids": [
"371100695713411072"
]
}
Response example
HTTP/1.1 200 OK { "requestId": "89e771d4463f91f790b00312283df4c6", "code": "200", "message": "SUCCESS", "detailMessage": "", "result": { "downloadUrl": "https://novo-one-tst-self-operated-business.s3.ap-east-1.amazonaws.com/commctl-autop/phonetemplate/phonetemplate_export/phonetemplate-export-20261021090142-JNmN1HonDo77TwLH.cust?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20261021T010142Z&X-Amz-SignedHeaders=host&X-Amz-Credential=AKIA6ODU5BKBMSDIXP4N%2F20261021%2Fap-east-1%2Fs3%2Faws4_request&X-Amz-Expires=900&X-Amz-Signature=e977449d8f7a51828db813a7825b9fc1affd949edfe7d01e46ead0b75e8da909", "fileName": "phonetemplate-export-20261021090142-JNmN1HonDo77TwLH.cust" } }