Search Custom Prompts

Search custom prompts.

Request URL

GET {base_url}/{api_path}/custom_prompt/search?page={page}&page_size={page_size}&prompt_type={prompt_type}&search_value={search_value}&access_token={access_token}

Request parameters

Parameter Required Type Description
page No Integer Define which page is displayed.
page_size No Integer Define how many records per page.
search_value No String Search keyword.
prompt_type No String The prompt type.

Valid value:

  • tts: Custom prompt generated via Text-to-Speech feature.
  • record: Custom prompt recorded by an extension or uploaded from local storage.

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.
total_number Integer The total number of custom prompts.
prompt_list Array<Custom_Prompt> The list of custom prompts.
Custom_Prompt
Parameter Type Description
id Integer The ID of the custom prompt.
file String The filename of the custom prompt without the file extension.
suffix String The file extension (e.g., ".wav").
type String The prompt type.
  • tts: Custom prompt generated via Text-to-Speech feature.
  • record: Custom prompt recorded by an extension or uploaded from local storage.
storage Integer The ID of the storage device.
real_filename String The complete filename, including the extension (e.g., "demo.wav").
created_ts Integer The creation timestamp in seconds.
updated_ts Integer The modification timestamp in seconds.
asr_manufacturer String The text-to-speech vendor for the prompt generated via TTS.
language String The language code used for TTS.
voice_id String The voice used for TTS.
text String The text used to generate prompt via TTS.
speed Integer The speech rate for TTS.
volume Integer The volume for TTS.
pitch Integer The pitch for TTS.
extension String The extension number that records the prompt.
path String The storage path of the prompt on storage devices.

Example

Request example

GET /openapi/v1.0/custom_prompt/search?page=1&page_size=10&search_value=welcome&access_token=gwakjgu9ZBUfz36wql4ndsVKkryI0kdj HTTP/1.1
Host: 192.168.5.150:8088

Response example

HTTP/1.1 200 OK
{
  "errcode": 0,
  "errmsg": "SUCCESS",
  "total_number": 3,
  "prompt_list": [
    {
      "id": 22,
      "file": "WelcomeMessage",
      "suffix": ".wav",
      "type": "tts",
      "storage": 1,
      "created_ts": 1759066512,
      "updated_ts": 1759066512,
      "asr_manufacturer": "aws",
      "language": "en-GB",
      "voice_id": "en-GB_female_ne_amy",
      "text": "Hello, welcome to Sample Company. We are pleased to serve you!",
      "speed": 50,
      "volume": 50,
      "real_filename": "WelcomeMessage.wav"
    }
  ]
}