Skip to main content
POST
/
api
/
agents
Create agent
curl --request POST \
  --url https://api.upon-ai.com/api/agents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "workspaceId": 123,
  "agent_name": "<string>",
  "voice_id": "<string>",
  "response_engine": {
    "type": "<string>",
    "llm_id": "<string>"
  },
  "response_threshold": 123,
  "interruption_sensitivity": "<string>",
  "ambient_sound": "<string>"
}
'
{
  "agent_id": "<string>",
  "version": 123,
  "agent_name": "<string>",
  "voice_id": "<string>",
  "response_engine": {
    "type": "<string>",
    "llm_id": "<string>"
  },
  "response_threshold": 123,
  "interruption_sensitivity": "<string>",
  "ambient_sound": "<string>",
  "responsiveness": "<string>",
  "max_call_duration_ms": 123,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
workspaceId
integer
required
agent_name
string
required
voice_id
string
required
response_engine
object
required
response_threshold
number
interruption_sensitivity
string
ambient_sound
string

Response

201 - application/json

Newly created agent.

agent_id
string
required
version
integer
required
agent_name
string
voice_id
string
response_engine
object
response_threshold
number | null
interruption_sensitivity
string | null
ambient_sound
string | null
responsiveness
string | null
max_call_duration_ms
integer | null
created_at
string<date-time> | null
updated_at
string<date-time> | null