> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zerodrive.dev/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Hosted remote MCP endpoint: https://api.zerodrive.dev/mcp (OAuth 2.0 PKCE or Bearer token).
> REST API base URL: https://api.zerodrive.dev with OpenAPI 3.1.0 specification at https://api.zerodrive.dev/openapi.json.
> S3-compatible gateway: https://api.zerodrive.dev/s3 (AWS Signature V4, region auto).
> Local command-line tool: zd (or zerodrive) and local stdio MCP server: zerodrive mcp.
> Token prefixes: zdk_ (Personal API Key), zdt_ (device session token), zda_ (OAuth access token), zdr_ (OAuth refresh token), zdx_ (temporary sandbox key). Never paste real keys into prompts or code.
> Be honest about platform boundaries: cloud files require internet access, files are encrypted at rest and in transit by Cloudflare rather than end-to-end encrypted, ZeroDrive is not a replacement for an independent backup, Windows 11 support is an unsigned x64 beta, and the 7-day Pro free trial requires a card and charges automatically when it ends.

# Sandboxes, Leases, Handoffs & Cold Archive

> Mint temporary restricted zdx_ keys, lock file paths with leases, pass task handoffs, and archive older folders.

Coordinate multi-agent teams and archive old media without extra queues or IAM setup.

## Temporary restricted keys (`zdx_...`)

Mint short-lived keys locked to one drive, an optional `root_folder`, an access level (`read`, `write`, `full`), and an expiration time.

* Mint one via `create_sandbox_token` (`POST /v1/sandboxes`, `zd sandbox create`) or up to 100 at once via `batch_create_sandbox_tokens`.
* Manage via `list_sandbox_tokens`, `extend_sandbox_token`, and `revoke_sandbox_token`.
* **Plan caps.** **100** sandboxes on Pro, **500** on Pro Max, and **1,000** on Agency.

## Temporary file locks (`Leases`)

Keep two workers from colliding on the same file using `acquire_lease` (`POST /v1/leases`, default 120s), `renew_lease`, `release_lease`, and `list_leases`.

## Task handoffs

Pass tasks between agents cleanly. Call `create_handoff`, claim once via `claim_handoff` (returns `409` if another agent already claimed it), and finish with `complete_handoff`.

## Cold Archive (`InfrequentAccess`)

Included on **Pro**, **Pro Max**, and **Agency**. Call `archive_to_cold` and `restore_from_cold` on older files without affecting quota, compare totals with `list_cold_archives`, or automate by age via `set_archive_policy`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.