Query AI Toolbox Settings

Query AI toolbox settings.

Request URL

GET {base_url}/{api_path}/ai_toolbox/get?access_token={access_token}

Request parameters

No request parameters. Send the request URL directly to query AI toolbox settings.

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.
data Object<AI_Toolbox> The AI toolbox settings.
AI_Toolbox
Parameter Type Description
enable_tts Integer Whether Text-to-Speech (TTS) is enabled.
  • 0: Disabled.
  • 1: Enabled.
llm_provider String The Large Language Model (LLM) provider.
  • openai: OpenAI.
  • google: Google.
  • disable: Disabled.
llm_model String The name of the LLM model.
llm_api_key String The API key for the LLM provider.
llm_prompt_template String The prompt template used to generate call summaries.
llm_status String The connection status of the LLM.
  • disconnected
  • connected
  • error
  • expire
enable_voicemail_transcription Integer Whether voicemail transcription is enabled.
  • 0: Disabled.
  • 1: Enabled.
voicemail_transcription_language String The language used for voicemail transcription.
auto_detect_language String The languages available for automatic language detection in voicemail transcription.
voicemail_grant_type String The extensions allowed to use voicemail transcription.
  • all: All extensions are allowed to use voicemail transcription.
  • specific: Only specific extensions are allowed to use voicemail transcription.
allowed_voicemail_entities Array<Allowed_List> The list of extensions allowed to use voicemail transcription.
vm_transcription_type String The type of voicemail transcription service.
  • built-in: Use the built-in transcription service.
  • custom: Use a custom transcription service.
vm_transcription_provider String The provider of voicemail transcription service.
  • aws
  • google
  • openai
  • elevenlabs
vm_transcription_region String The server region of the voicemail transcription service.
vm_transcription_api_id String The API ID for the voicemail transcription service.
vm_transcription_api_key String The API key for the voicemail transcription service.
vm_transcription_api_key_filename String The filename of the Google service account credential file for voicemail transcription.
vm_transcription_model String The model used for voicemail transcription with OpenAI.
vm_transcription_status String The connection status of the voicemail transcription service.
  • disconnected
  • connected
  • error
  • expire
enable_call_transcription Integer Whether call transcription is enabled.
  • 0: Disabled.
  • 1: Enabled.
call_transcription_type String The type of call transcription service.
  • built-in: Use the built-in transcription service.
  • custom: Use a custom transcription service.
call_transcription_provider String The provider of call transcription service.
  • aws
  • google
  • openai
  • elevenlabs
call_transcription_region String The server region of call transcription service.
call_transcription_api_id String The API ID for call transcription service.
call_transcription_api_key String The API key for call transcription service.
call_transcription_api_key_filename String The filename of the Google service account credential file for call transcription.
call_transcription_language String The language used for call transcription.
call_transcription_model String The model used for call transcription.
call_transcription_auto_detect_language String The languages available for automatic language detection in call transcription.
call_transcription_status String The connection status of the call transcription service.
  • disconnected
  • connected
  • error
  • expire
call_grant_type String The extensions allowed to use call transcription.
  • all: All extensions are allowed to use call transcription.
  • specific: Only specific extensions are allowed to use call transcription.
allowed_call_entities Array<Allowed_List> The list of extensions allowed to use call transcription.
enable_play_transcription_prompt Integer Whether a prompt is played to notify both parties that the call is being transcribed.
  • 0: Disabled.
  • 1: Enabled.
transcription_prompt_call_types String The call types for which the transcription notification prompt is played.
  • internal: Internal calls.
  • outgoing: Outgoing calls.
  • incoming: Incoming calls.
allowed_direct_ext_entities Array<Allowed_List> The extensions for which automatic call transcription is enabled for inbound calls.
allowed_queue_entities Array<Allowed_List> The queues for which automatic call transcription is enabled for inbound calls.
allowed_ring_group_entities Array<Allowed_List> The ring groups for which automatic call transcription is enabled for inbound calls.
allowed_trunk_entities 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.

Example

Request example

GET /openapi/v1.0/ai_toolbox/get?access_token=xVx9wX2B38gSD0C2o4y9b9bd5QOPz2MK HTTP/1.1

Host: yeastardocs.example.yeastarcloud.com

Response example

HTTP/1.1 200 OK
{
    "errcode": 0,
    "errmsg": "SUCCESS",
    "data": {
        "enable_tts": 1,
        "enable_voicemail_transcription": 1,
        "voicemail_grant_type": "all",
        "allowed_voicemail_entities": null,
        "enable_call_transcription": 1,
        "call_grant_type": "all",
        "allowed_call_entities": null,
        "voicemail_transcription_language": "auto",
        "auto_detect_language": "en-GB ar-AE",
        "call_transcription_language": "en-US",
        "call_transcription_auto_detect_language": "",
        "call_transcription_type": "built-in",
        "call_transcription_provider": "google",
        "call_transcription_api_key": "****",
        "call_transcription_api_id": "****",
        "call_transcription_region": "eu",
        "call_transcription_model": "",
        "call_transcription_status": "connected",
        "vm_transcription_type": "custom",
        "vm_transcription_provider": "aws",
        "vm_transcription_api_key": "****",
        "vm_transcription_api_id": "****",
        "vm_transcription_region": "ap-northeast-1",
        "vm_transcription_model": "",
        "vm_transcription_status": "expire",
        "llm_provider": "disable",
        "llm_api_key": "****",
        "llm_model": "",
        "llm_status": "expire",
        "llm_prompt_template": "",
        "auto_transcription_call_types": "",
        "allowed_direct_ext_entities": null,
        "allowed_queue_entities": null,
        "allowed_ring_group_entities": null,
        "allowed_trunk_entities": null,
        "call_transcription_api_key_filename": "yeastar-pbx-494305-db7b2b25143a.json",
        "vm_transcription_api_key_filename": "",
        "enable_play_transcription_prompt": 0,
        "transcription_prompt_call_types": "internal,incoming,outgoing"
    }
}