For the complete documentation index, see llms.txt. This page is also available as Markdown.

Admin

Get AI Engine configuration

get

Get the ai engine configuration.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
idstringRequired

Unique identifier of the AI Engine configuration.

Responses
200

Successfully retrieved AI Engine configuration

application/json
idstringOptional
engine_typestring · enumOptionalPossible values:
configone ofOptional
or
or
get/admin/ai_engine
GET /api/admin/ai_engine?id=text HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "id": "text",
  "engine_type": "aws",
  "config": {
    "access_key": "text",
    "secret_key": "text",
    "region": "text",
    "bucket_name": "text",
    "locale": "text",
    "lang_code": "text",
    "max_level": 1,
    "max_speech_to_text_queue": 1,
    "max_sentiment_requests_per_10s": 1
  }
}

Create or Update AI Engine configuration

post

Create a new AI Engine configuration if it does not exist, or update the existing configuration by its ID. The config field varies depending on the selected engine type.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
engine_typestring · enumRequired

Type of AI engine.

Possible values:
configone ofRequired
or
or
Responses
200

AI Engine configuration updated successfully.

No content

post/admin/ai_engine
POST /api/admin/ai_engine HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 292

{
  "engine_type": "aws",
  "config": {
    "access_key": "AKIAIOSFODNN7EXAMPLE",
    "secret_key": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY",
    "region": "us-west-2",
    "bucket_name": "my-audio-bucket",
    "locale": "en-US",
    "lang_code": "en",
    "max_level": 4,
    "max_speech_to_text_queue": 100,
    "max_sentiment_requests_per_10s": 20
  }
}

No content

Last updated

Was this helpful?