Skip to main content
POST
/
ai
/
agents
Create AI agent
curl --request POST \
  --url https://api.wacht.dev/ai/agents \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Customer Support Agent",
  "description": "Handles customer inquiries",
  "configuration": {}
}
'
{
  "id": "1234567890123456789",
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-01-15T10:30:00Z",
  "deployment_id": "9876543210987654321",
  "name": "Customer Support Agent",
  "description": "Handles customer inquiries",
  "configuration": {}
}

Authorizations

Authorization
string
header
required

API key authentication (format: Bearer {api_key})

Body

application/json
name
string
required

Agent name

Example:

"Customer Support Agent"

description
string

Agent description

Example:

"Handles customer inquiries"

configuration
object

Agent configuration (LLM settings, etc.)

Response

200 - application/json

AI agent created

id
string

Agent ID

Example:

"1234567890123456789"

created_at
string<date-time>

Creation timestamp

Example:

"2024-01-15T10:30:00Z"

updated_at
string<date-time>

Last update timestamp

Example:

"2024-01-15T10:30:00Z"

deployment_id
string

Deployment ID

Example:

"9876543210987654321"

name
string

Agent name

Example:

"Customer Support Agent"

description
string | null

Agent description

Example:

"Handles customer inquiries"

configuration
object

Agent configuration