Platform API Reference
Use the Platform API to define reusable Agents, run stateful work, publish callable services, and schedule repeatable execution.
Looking for model inference?
Chat, image, video, audio, and model-specific request schemas live in the Model API Reference. The Platform API covers managed Agent resources and operations.
Choose a starting point
| Goal | Start with | What happens next |
|---|---|---|
| Define reusable behavior | Agents | Create and version an Agent configuration |
| Run stateful work directly | Sessions | Exchange persisted input, output, and tool events |
| Expose an Agent to an application | Services | Invoke a stable REST, MCP, or ACP Service that creates or continues a Session |
| Run work later or repeatedly | Schedules | Trigger a Schedule run and inspect its linked Session |
| Reuse instruction bundles | Skills | Create and attach versioned Skills to Agents |
| Supply private integration values | Credentials | Keep secrets out of Agent instructions and request bodies |
Resource lifecycle
Agent + version
├── direct execution ────────────────→ Session ─→ events
├── Service (API path: endpoints) ───→ Session ─→ events
└── Schedule (API resource: Deployment) → DeploymentRun ─→ Session ─→ events- An Agent is reusable configuration; creating one does not execute it.
- A Session is the durable execution and event history for one interaction.
- A Service publishes an Agent behind a stable invocation surface. Calling it creates a new Session or continues an authorized existing Session. Its API path remains
/v1/endpointsfor compatibility. - A Schedule stores repeatable input and optional cron configuration. Its API resource remains
Deploymentat/v1/deploymentsfor compatibility. Every trigger creates a distinctDeploymentRunand, after successful Session creation, links that run to a Session. - A Skill packages reusable instructions and supporting files. A Credential stores a private value required by an Agent capability.
Authentication
Send a SandBase API key as a Bearer token:
Authorization: Bearer sk-YOUR_KEYTreat the key as an opaque secret, keep it on the server, and never include it in browser code or logs. See Authentication for compatibility details and Errors for public error envelopes.
Organization and usage
Platform resources belong to the organization associated with the API key. Use the Account API to inspect the supported balance and recent execution-history views. Organization administration and billing management remain Console workflows unless a public endpoint is documented here.
Reference formats
- Browse operations from the sidebar for examples and response details.
- Download the machine-readable OpenAPI specification.
- Use the Model API Reference for inference endpoints and model-specific schemas.
Next steps
- New to managed Agents: Build Agent
- Publish an application service: Services guide
- Schedule repeatable work: Schedules guide
- Call a model directly: Model API Reference

