Skip to main content
POST
Create agent

Authorizations

better-auth.session_token
string
cookie
required

Session cookie set by Better Auth on sign-in.

x-workspace-id
string
header
required

Workspace UUID. Required on all /api/* endpoints.

Body

application/json

Create a new AI agent

name
string
required
Minimum string length: 1
role
string
model
string
instructions
string | null
handoffDescription
string | null
tone
string
answerLength
string

Response

Agent created

{key}
any