Agents Chats

API endpoints for Agents Chats

GET /api/agents/{agent_id}/chats

ByAgent

Response Codes

Status Code Description
200 Success

GET /api/agents/{agent_id}/chats/{session_id}

Messages

Response Codes

Status Code Description
200 Success

POST /api/agents/{agent_id}/chats/send

Send handles sending chat messages to an agent.

Uses agent_id from route and optionally creates a session if none provided. Sends the message and returns the response. Returns 400 for invalid agent ID, 422 for validation errors, 404 if session not found, 200 OK with response (may include error field if LLM not configured).

Request Body request.ChatSend

Chat Send

Property Type Description
session_id integer (int64) | null Existing session ID or nil to create new session
message* string Message content from the user

Response Codes

Status Code Description
200 Success
400 Invalid request
404 Resource not found
500 Internal server error