POST
/
agents
curl --request POST \
  --url https://app.kapso.ai/api/v1/agents \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "agent": {
    "name": "New Customer Support Agent",
    "system_prompt": "You are a helpful customer support assistant."
  }
}'
{
  "data": {
    "id": "agent-123abc",
    "name": "Customer Support Agent",
    "description": "Handles initial customer support queries",
    "project_id": "project-456def",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

X-API-Key
string
header
required

API key required for all endpoints

Body

application/json

Response

201
application/json

Agent created successfully

The response is of type object.