Back to API Overview

AI Chat Agent

Conversational AI assistant (Claude) that can query and manage leads, sources, and jobs via natural language

Endpoints (5)

GET/api/chat/conversations
Auth Required

List Conversations

Get all chat conversations for the current user.

POST/api/chat/conversations
Auth Required

Create Conversation

Start a new chat conversation.

GET/api/chat/conversations/{id}
Auth Required

Get Conversation

Get a conversation with its full message history.

DELETE/api/chat/conversations/{id}
Auth Required

Delete Conversation

Delete a conversation and all its messages.

POST/api/chat/conversations/{id}/messages
Auth Required

Send Message (Streaming)

Send a message to the AI agent and receive a streaming SSE response. The agent has 9 built-in tools: search leads, get lead, update lead, search sources, get source, search jobs, get job, create job, and get stats. Requires ANTHROPIC_API_KEY.