Skip to main content

Endpoint

Authentication

Requires JWT authentication via Authorization: Bearer <token> header.

Description

Creates a new AI agent with a custom name, icon, and initial configuration version. The agent is initialized with default tools and system prompt, which can be customized immediately or later via the update endpoint.

Limits

Agent creation is subject to tier-based limits:
  • Free tier: 3 agents maximum
  • Pro tier: 10 agents maximum
  • Enterprise tier: Unlimited agents
Exceeding the limit returns a 402 error with code AGENT_LIMIT_EXCEEDED.

Request Body

string
required
Agent name (2-100 characters). Used for identification in the UI.
boolean
default:false
Whether this agent should be the default for new threads. Only one agent can be default per account.
string
default:"bot"
Icon identifier from the icon library (e.g., “bot”, “code”, “brain”, “sparkles”).
string
default:"#000000"
Icon color in hex format (e.g., “#6366F1”).
string
default:"#F3F4F6"
Icon background color in hex format.
string
Custom system prompt for the agent. If not provided, uses default Suna configuration.
array
default:[]
Array of configured MCP (Model Context Protocol) integrations.
array
default:[]
Array of custom MCP server configurations.
object
Tool configurations. Core tools (bash, read, write, edit, glob, grep) are automatically enabled.

Response

Returns the created agent with full configuration including the initial version (v1).
string
Unique identifier for the agent (UUID format)
string
Agent name
string
Agent description
string
Icon identifier
string
Icon color in hex format
string
Icon background color in hex format
boolean
Whether this is the default agent
string
ID of the current active version
integer
Total number of versions (starts at 1)
object
Full version configuration object
string
ISO 8601 timestamp of creation
string
ISO 8601 timestamp of last update

Examples

Response Example

Error Responses

error
Agent limit exceeded for current tier
error
Invalid request data (e.g., missing name, invalid icon)
error
Missing or invalid authentication token
error
Server error during agent creation

Notes

  • Default Agent: Setting is_default: true automatically unsets any existing default agent
  • Versioning: Every agent starts with version v1, which is automatically created
  • Core Tools: The core tools (bash, read, write, edit, glob, grep) are always enabled and cannot be disabled
  • Icon Library: Use the /agents/generate-icon endpoint to get AI-suggested icons based on agent name
  • Cache: Creating an agent invalidates the agent count cache for the user