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
or
or
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: */*
{
  "provider": "aws",
  "opts": {
    "access_key": "text",
    "secret_key": "password",
    "region": "text",
    "bucket_name": "text",
    "locale": "text",
    "lang_code": "text",
    "max_speech_to_text_queue": 1,
    "max_sentiment_requests_per_10s": 1
  }
}

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
or
or
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: 273

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

No content

Last updated

Was this helpful?