POST
/
agent
curl --request POST \
  --url https://atoms-api.smallest.ai/api/v1/agent \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "description": "<string>",
  "language": {
    "enabled": "en",
    "switching": false,
    "synthesizer": {
      "voiceConfig": {
        "model": "waves_lightning_large_voice_clone",
        "voiceId": "<string>",
        "gender": "male"
      },
      "speed": 1.2,
      "consistency": 0.5,
      "similarity": 0,
      "enhancement": 1
    },
    "speed": 1.2,
    "consistency": 0.5,
    "similarity": 0,
    "enhancement": 1
  },
  "globalKnowledgeBaseId": "<string>",
  "slmModel": "electron",
  "defaultVariables": {},
  "globalPrompt": "<string>",
  "telephonyProductId": "<string>"
}'
{
  "status": true,
  "data": "60d0fe4f5311236168a109ca"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

201
application/json
Agent created successfully

The response is of type object.