Skip to main content
POST
Create Agent

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Schema for creating a new agent. Attributes: name: str - The name of the agent. model: str - The model used by the agent. description: str - A brief description of the agent. instruction: str - Instructions for the agent's behavior. tools: list[str] - A list of tool paths used by the agent. input_schema: dict | None - The input schema for the agent (optional). output_schema: dict | None - The output schema for the agent (optional). organization_id: str - The ID of the organization the agent belongs to. project_id: str - The ID of the project the agent is associated with. owner_id: str - The ID of the owner of the agent. tags: list[str] | None - A list of tags associated with the agent (optional).

agent_name
string
required
agent_model
string
required
agent_description
string
required
agent_instruction
string
required
agent_type
string
required
agent_model_params
Agent Model Params · object | null
agent_tools
string[] | null
input_schema
Input Schema · object | null
output_schema
Output Schema · object | null
output_key
string | null
output_schema_name
string | null
skip_when_upstream
string | null
sub_agents
string[] | null
project_id
string | null
default:thaink2
code_executor
string | null
tags
string[] | null
guardrails_config
Guardrails Config · object | null
memory_enabled
boolean
default:false
artifacts_enabled
boolean
default:false
superagent_template_id
string | null
loop_max_iterations
integer | null
loop_exit_instruction
string | null
mcp_servers
McpServerConfig · object[] | null
agent_skills
string[] | null
hub_origin_id
string | null
propagate_api_key
boolean
default:false

Response

Successful Response