Skip to main content
POST
Create an agent

Authorizations

Authorization
string
header
required

A workspace API key from Workspace settings > API keys, sent as Authorization: Bearer cl_api_.... A Read only key can call the GET endpoints; every other method needs a Full access key.

Body

application/json
name
string
required
Required string length: 1 - 80
role
enum<string>
default:customer-support
Available options:
customer-support,
sales-agent,
shopping-assistant
websiteUrl
string
setup
object
trigger
enum<string>
Available options:
nav_sidebar,
agents_list,
home_checklist,
template_gallery,
template_link
instructions
string
Required string length: 20 - 100000
model
string
default:google/gemini-3.5-flash-lite
Required string length: 1 - 100
temperature
number
default:0.3
Required range: 0 <= x <= 1

Response

Created.

data
object
required