Create Agent
/v1/agentsCreate a reusable agent configuration that bundles a model, instructions, capabilities, and metadata. The returned ID can be used to start sessions.
Request body
Send a JSON object with the agent configuration.
Model identifier or {id, effort?, speed?}. Responses always use the structured object.
Human-readable agent name. Accepts 1 to 256 characters.
Short explanation of the agent's purpose. Maximum 2,048 characters.
System instructions that define the agent's behavior. Maximum 100,000 characters.
Built-in toolset and custom tool configurations. Maximum 128 tools.
URL MCP servers referenced by MCP toolsets. Maximum 20.
Up to 16 application-defined key-value pairs.
Agent object
Fields returned for an agent resource.
Stable identifier beginning with agent_.
Configuration version, beginning at 1 and incrementing after a successful change.
RFC 3339 timestamp set after the agent is archived.
Time the agent was created.
Time the current version was last updated.
Model choice
SandBase is multi-model. The model field accepts any available model identifier from the SandBase catalog.
Tool execution
Built-in tools run inside the managed agent runtime. Custom tools are executed by your client after an agent.custom_tool_use event.
Errors
invalid_requestA required field is missing or a field has an invalid value.
authentication_errorThe API key is missing or invalid.

