Skip to main content
Agents are the AI assistants in your workspace — every contact, conversation, form, and pipeline lives under one. The Agents API is a read-only discovery endpoint: use it to list the agents in a workspace and look up the IDs you’ll pass as bot_id to the rest of the API.
Most resources in the API (contacts, companies, forms, pipelines, conversations) are scoped by bot_id. If you don’t already have one, list agents first and pick the right id.

The Agent object

string
Unique agent identifier — pass this as bot_id to other endpoints.
string
The workspace this agent belongs to.
string | null
Human-readable agent name.
string | null
URL-safe handle used in dashboard links (/admin/{workspace}/{slug}).
string | null
One-line description of what this agent does.
boolean
true for next-gen agents (/admin/{workspace}/agents). Some legacy bots may have is_agent=false — they’re still valid bot_id targets for the rest of the API.
boolean
false if the agent has been disabled by an admin.
boolean
true if the agent’s chat embed is allowed on public sites.
string | null
Role string (e.g. "sales", "support").
string | null
One of internal, external, or both.
string | null
string | null
Brand color used in the dashboard / inbox.
string | null
Auto-provisioned inbound email address (e.g. b_01HDEF@inbound.clarky.ai).
string | null
Provisioned voice / SMS phone number, when one is attached.
string | null
Opening message shown in the chat widget.
string | null
Speech bubble shown next to the avatar before the user opens the widget.
string | null
string | null
Spoken greeting on inbound calls.
string | null
ID of the TTS voice used for outbound speech.
string | null
Auto-reply for first SMS contact.
boolean | null
true if inbound emails to agent_email are processed.
boolean | null
string | null
“From” address used for outbound emails.
string | null
“From” name used for outbound emails.
string | null
Booking integration in use — clarky, calcom, google, etc. null if booking isn’t enabled.
string[] | null
IDs of Event Types this agent can offer when scheduling.
boolean
true if teammates can take over conversations from this agent.
boolean
true if Clarky should auto-flag conversations that need a human.
boolean
true if conversations are analyzed for sentiment.
number
Approximate number of knowledge entries attached to this agent.
number
Lifetime conversation count.
Recent top topics extracted from this agent’s conversations.
string
ISO 8601 timestamp.
We deliberately omit secrets (Slack tokens, Resend API keys), system prompts (internal_personality, external_personality, custom_escalation_prompt), and internal RAG tuning knobs (match_threshold, match_count) from this response. Manage those in the dashboard.

List agents

GET
GET /api/v1/agents
Returns a paginated list of every agent in the workspace.

Query parameters

Example


Get an agent

GET
GET /api/v1/agents/{id}

Example


Common patterns

Resolve an agent by slug

The dashboard URL https://clarky.ai/admin/{workspace}/{slug} exposes each agent’s slug. Use it to look up the canonical id:

Bootstrap an integration

A first-run flow for a new integration: