Skip to main content
POST

Create Agent

Create a new agent and associate it with the authenticated user’s client. The client_id is automatically extracted from your API key - you don’t need to supply it.

Parameters

string
required
Human-readable name for the agent (e.g. "support-bot")
object
default:"{}"
Optional initial configuration for the agent. You can pass any subset of the agent config sections here or leave it empty and configure them later via the section PATCH endpoints.

Request Example


Response

The response is the full agent configuration as it was saved, not a short confirmation. It has no success flag and no agent_name field; read agent_id from the top level and agent_display_name for the name. The example above is abbreviated - the section objects are returned in full.
string
UUID of the newly created agent. Use this in subsequent PATCH calls and when triggering calls.
string
Client UUID the agent was associated with (resolved from your API key).
string
UUID of the user that owns the API key.
string
Display name you supplied for the agent.
object
The saved configuration sections, with defaults filled in for anything you did not send.
string[]
Non-fatal notes about the supplied config, if any.

Duplicate name (409)

Agent names are unique within your workspace. Creating an agent whose agent_display_name already exists returns 409 Conflict:

Video Walkthrough