Download a Custom Prompt

Retrieve the download resource URL of a specified custom prompt, then access the URL to download the prompt file.

Request URL

GET {base_url}/{api_path}/custom_prompt/download?file={file}&access_token={access_token}

Request parameters

Parameter Required Type Description
file Yes String The filename of the prompt, including the file extension (e.g., "welcome.wav").
Note: You can query the filename of the prompt using Search Custom Prompts.

Response parameters

Parameter Type Description
errcode Integer Returned error code.
  • 0: Succeed.
  • Non-zero value: Failed.
Note: You can check the error code and error message in Error Code and Error Message.
errmsg String Returned message.
  • SUCCESS: Succeed.
  • FAILURE: Failed.
file String The filename of the custom prompt.
download_resource_url String The download resource URL of the custom prompt.

Example

Request example

GET /openapi/v1.0/custom_prompt/download?file=doc_demo_prompt.wav&access_token=gwakjgu9ZBUfz36wql4ndsVKkryI0kdj HTTP/1.1
Host: 192.168.5.150:8088

Response example

HTTP/1.1 200 OK
{
  "errcode": 0,
  "errmsg": "SUCCESS",
  "file": "doc_demo_prompt.wav",
  "download_resource_url": "/api/download/CustomPrompt-3xxxxxxx7-download-20260914172717-ExDCEIRoqmN97yqe.wav"
}

Combine the download resource URL with the {base_url}. Then use the complete link to download the prompt file.

Download link format

{base_url}/{download_resource_url}

Download link example

https://192.168.5.150:8088//api/download/CustomPrompt-3xxxxx7-download-20260914165139-XCLciWr6CHloEPOu.wav