Skip to main content
POST
/
agents
Create Agent (with optional Function Calling)
curl --request POST \
  --url https://call.aivoco.on.cloud.vispark.in/agents \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "id": "<string>",
  "name": "<string>",
  "system_message": "<string>",
  "voice": "boy",
  "functions": {
    "functions": [
      {
        "name": "<string>",
        "description": "<string>",
        "api_url": "<string>",
        "method": "GET",
        "parameters": {
          "type": "<string>",
          "properties": {},
          "required": [
            "<string>"
          ]
        }
      }
    ]
  }
}'
{
  "id": "<string>",
  "name": "<string>",
  "system_message": "<string>",
  "voice": "boy",
  "functions": {
    "functions": [
      {
        "name": "<string>",
        "description": "<string>",
        "api_url": "<string>",
        "method": "GET",
        "parameters": {
          "type": "<string>",
          "properties": {},
          "required": [
            "<string>"
          ]
        }
      }
    ]
  }
}

Authorizations

X-API-Key
string
header
required

Body

application/json
id
string

Unique identifier for the agent.

name
string

Name of the agent.

system_message
string

Defines the agent's personality and behavior.

voice
enum<string>

Voice identity of the agent.

Available options:
boy,
girl
functions
object

Response

201 - application/json

Agent successfully created.

id
string

Unique identifier for the agent.

name
string

Name of the agent.

system_message
string

Defines the agent's personality and behavior.

voice
enum<string>

Voice identity of the agent.

Available options:
boy,
girl
functions
object