Skip to main content
POST
cURL

Body

application/json

Agent creation payload

name
string
required

Agent name

Example:

"Daily triage"

jsonContent
object
required

Agent instructions as a structured document

Example:
mcpServers
string[]

MCP servers available to the agent

Example:
agent
string

Agent harness or model to use

Example:

"claudeCode:claude-opus-4-5"

triggers
object[]

Event triggers to attach to the agent

schedules
object[]

Schedules to attach to the agent

Response

Agent created successfully

id
string<uuid>
required

Unique identifier for the agent

name
string
required

Agent name

Example:

"Daily triage"

organizationId
string<uuid>
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required
key
string | null

Macro key generated for the agent

Example:

"daily-triage"

jsonContent
object | null

Agent instructions as a structured document

agent
string | null

Agent harness or model to use

Example:

"claudeCode:claude-opus-4-5"

mcpServers
string[]

MCP servers available to the agent

enabledAt
string<date-time> | null