Edit AI Toolbox Settings

Edit the AI toolbox settings.

Request URL

POST {base_url}/{api_path}/ai_toolbox/update?access_token={access_token}

Request parameters

Parameter Required Type Description
enable_tts No Integer Whether to enable Text-to-Speech (TTS).

Valid value:

  • 0: Disabled.
  • 1: Enabled.
llm_provider No String The Large Language Model (LLM) provider.

Valid value:

  • openai
  • google
  • disable
llm_model No String The name of the LLM model.
Note:
llm_api_key No String The API key for the LLM provider, encoded in Base64.
enable_voicemail_transcription No Integer Whether to enable voicemail transcription.

Valid value:

  • 0: Disabled.
  • 1: Enabled.
voicemail_transcription_language No String The language for voicemail transcription.
auto_detect_language No String The languages available for automatic language detection in voicemail transcription.
voicemail_grant_type No String The extensions allowed to use voicemail transcription.

Valid value:

  • all: All extensions are allowed to use voicemail transcription.
  • specific: Only specific extensions are allowed to use voicemail transcription.
allowed_voicemail_entities No Array<Allowed_List> The list of extensions allowed to use voicemail transcription.
Note: This parameter takes effect when voicemail_grant_type is set to specific.
vm_transcription_type No String The type of voicemail transcription service.

Valid value:

  • built-in: Use the built-in transcription service.
  • custom: Use a custom transcription service.
vm_transcription_provider No String The provider of voicemail transcription service.
Note: This parameter takes effect when vm_transcription_type is set to custom.

Valid value:

  • aws
  • google
  • openai
  • elevenlabs
vm_transcription_region No String The server region of the voicemail transcription service.

Valid value for AWS:

  • af-south-1
  • ap-east-1
  • ap-northeast-1
  • ap-northeast-2
  • ap-south-1
  • ap-southeast-1
  • ap-southeast-2
  • ca-central-1
  • eu-central-1
  • eu-north-1
  • eu-west-1
  • eu-west-2
  • eu-west-3
  • sa-east-1
  • us-east-1
  • us-east-2
  • us-west-1
  • us-west-2
Valid value for Google:
  • us
  • eu
  • asia-northeast1
  • asia-southeast1
vm_transcription_api_id No String The API ID for the voicemail transcription service, encoded in Base64.
vm_transcription_api_key No String The API key for the voicemail transcription service, encoded in Base64.
vm_transcription_api_key_filename No String The filename of the Google service account credential file for voicemail transcription.
vm_transcription_model No String The model used for voicemail transcription with OpenAI.
Valid value:
  • gpt-4o-transcribe
  • gpt-4o-mini-transcribe
  • gpt-4o-mini-transcribe-2025-12-15
  • whisper-1
enable_call_transcription No Integer Whether to enable call transcription.

Valid value:

  • 0: Disabled.
  • 1: Enabled.
call_transcription_type No String The type of call transcription service.

Valid value:

  • built-in: Use the built-in transcription service.
  • custom: Use a custom transcription service.
call_transcription_provider No String The provider of call transcription service.
Note: This parameter takes effect when call_transcription_type is set to custom.

Valid value:

  • aws
  • google
  • openai
  • elevenlabs
call_transcription_region No String The server region of call transcription service.

Valid value for AWS:

  • af-south-1
  • ap-east-1
  • ap-northeast-1
  • ap-northeast-2
  • ap-south-1
  • ap-southeast-1
  • ap-southeast-2
  • ca-central-1
  • eu-central-1
  • eu-north-1
  • eu-west-1
  • eu-west-2
  • eu-west-3
  • sa-east-1
  • us-east-1
  • us-east-2
  • us-west-1
  • us-west-2

Valid value for Google:

  • us
  • eu
  • asia-northeast1
  • asia-southeast1
call_transcription_api_id No String The API ID for call transcription service, encoded in Base64.
call_transcription_api_key No String The API key for call transcription service, encoded in Base64.
call_transcription_api_key_filename No String The filename of the Google service account credential file for call transcription.
call_transcription_language No String The language used for call transcription.
call_transcription_model No String The model used for call transcription.
Valid value:
  • gpt-4o-transcribe
  • gpt-4o-mini-transcribe
  • gpt-4o-mini-transcribe-2025-12-15
call_transcription_auto_detect_language No String The languages available for automatic language detection in call transcription.
call_grant_type No String The extensions allowed to use call transcription.

Valid value:

  • all: All extensions are allowed to use call transcription.
  • specific: Only specific extensions are allowed to use call transcription.
allowed_call_entities No Array<Allowed_List> The list of extensions allowed to use call transcription.
Note: This parameter takes effect when call_grant_type is set to specific.
enable_play_transcription_prompt No Integer Whether to play a prompt to notify both parties that the call is being transcribed.

Valid value:

  • 0: Disabled.
  • 1: Enabled.
transcription_prompt_call_types No String The call types for which the transcription notification prompt is played.
Note: This parameter takes effect when enable_play_transcription_prompt is set to 1.

Valid value:

  • internal: Internal calls.
  • outgoing: Outgoing calls.
  • incoming: Incoming calls.
allowed_direct_ext_entities No Array<Allowed_List> The extensions for which automatic call transcription is enabled for inbound calls.
allowed_queue_entities No Array<Allowed_List> The queues for which automatic call transcription is enabled for inbound calls.
allowed_ring_group_entities No Array<Allowed_List> The ring groups for which automatic call transcription is enabled for inbound calls.
allowed_trunk_entities No Array<Allowed_List> The trunks for which automatic call transcription is enabled for inbound calls.
Allowed_List
Parameter Type Description
value String The ID of the object in the list.
Note: You can obtain the corresponding IDs using the following interfaces:

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.

Example

Request example

POST /openapi/v1.0/ai_toolbox/update?access_token=xVx9wX2B38gSD0C2o4y9b9bd5QOPz2MK HTTP/1.1

Host: yeastardocs.example.yeastarcloud.com
Content-Type: application/json
{
    "enable_play_transcription_prompt": 1
}

Response example

HTTP/1.1 200 OK
{
    "errcode": 0,
    "errmsg": "SUCCESS"
}