Carton API reference
Use the HTTP API to create sandboxes, execute commands, and transfer files. These pages are generated from Carton’s Rust-authored public OpenAPI contract.
Connection and authentication
Replace https://carton.example.com in the request examples with your
Carton server URL. This is an example address, not a hosted Carton service.
Authenticate with your Carton bearer token, not a provider API key.
See Setup and connection.
Implementation status
This reference includes the full declared contract. Operations in the Planned section are not exposed by the current server. Live request execution is disabled throughout this reference.
Version 1.0.0
Base URL
https://carton.example.comSandboxes
- POST/v1/resolve
- GET/v1/sandboxes
- POST/v1/sandboxes
- DELETE/v1/sandboxes/{id}
- GET/v1/sandboxes/{id}
- POST/v1/sandboxes/{id}/deadline
- GET/v1/sandboxes/{id}/events
- PATCH/v1/sandboxes/{id}/labels
Executions
- POST/v1/sandboxes/{id}/executions
- GET/v1/sandboxes/{id}/executions/{execution_id}
- POST/v1/sandboxes/{id}/executions/{execution_id}/signals
- POST/v1/sandboxes/{id}/executions/{execution_id}/stdin
Files
- DELETE/v1/sandboxes/{id}/files
- GET/v1/sandboxes/{id}/files
- HEAD/v1/sandboxes/{id}/files
- PUT/v1/sandboxes/{id}/files
- GET/v1/sandboxes/{id}/files/archive
- PUT/v1/sandboxes/{id}/files/archive
- GET/v1/sandboxes/{id}/files/list
Ports
Environments
- HEAD/v1/blobs/{digest}
- PUT/v1/blobs/{digest}
- GET/v1/environments
- POST/v1/environments
- GET/v1/environments/{environment_id}
- GET/v1/environments/{environment_id}/revisions
- POST/v1/environments/{environment_id}/revisions
- GET/v1/preparations/{prepare_id}
- GET/v1/revisions/{revision_id}
- POST/v1/revisions/{revision_id}/prepare
Targets
Contract
Planned
Declared contract operations that the current server does not expose.