Skip to main content

AI Agents

The Shinzo Platform allows you to deploy and manage autonomous AI agents that can execute complex tasks. Agents run in isolated Kubernetes environments with persistent storage and can interact with external services via MCP servers.

Features

  • Kubernetes-Based: Each agent runs in an isolated container with dedicated resources
  • Persistent Storage: Agents have their own persistent volume for files and state
  • Task Management: Submit tasks, monitor progress, and receive results via polling or webhooks
  • Filesystem API: Read, write, and manage files in the agent’s workspace
  • MCP Support: Connect agents to MCP servers for external service integration

Authentication

Agent endpoints accept either:
  • JWT Token: Authorization: Bearer <jwt_token>
  • Platform API Key: x-shinzo-api-key: <api_key> or Authorization: Bearer <api_key>

Feature Flag

AI Agents is a feature that must be enabled for your account. If you receive a 403 Forbidden error, contact support to enable this feature.

Endpoints

Agent Lifecycle

EndpointMethodDescription
/agent/createPOSTDeploy a new AI agent
/agent/listGETList all agents
/agent/:idGETGet agent details
/agent/update/:idPOSTUpdate agent configuration
/agent/delete/:idPOSTDelete an agent
/agent/:id/pausePOSTPause an agent
/agent/:id/resumePOSTResume a paused agent

Task Management

EndpointMethodDescription
/agent/request/:idPOSTSubmit a task to an agent
/agent/:id/task/:taskIdGETGet task status and results
/agent/:id/task/:taskId/messagePOSTSend a message to a running task
/agent/:id/task/:taskId/cancelPOSTCancel a running task

Filesystem

EndpointMethodDescription
/agent/:agentId/filesystem/files/:path*GETRead file contents
/agent/:agentId/filesystem/files/:path*POSTCreate new file
/agent/:agentId/filesystem/files/:path*PUTUpdate file contents
/agent/:agentId/filesystem/files/:path*DELETEDelete file
/agent/:agentId/filesystem/directories/:path*GETList directory
/agent/:agentId/filesystem/directories/:path*POSTCreate directory

Agent States

StateDescription
activeAgent is running and ready to accept tasks
pausedAgent is paused and won’t accept new tasks
stoppedAgent has been stopped
errorAgent encountered an error

Task States

StateDescription
queuedTask is waiting to be processed
runningTask is currently being executed
awaiting_inputTask needs user input to continue
completedTask finished successfully
failedTask encountered an error
cancelledTask was cancelled by user