# Mint a secret lease

Collection: api
Human docs: https://zei.sh/docs/api

Mint a short-lived lease for secret resolution.

POST /public/secrets/:sandboxId/leases
Permission: ORG_MANAGE.
Leases are scoped to organization, sandbox, operation, secret IDs, expiry, and nonce.
Request body: {"operation":"command"}
Response: The short-lived lease claims.
Operation is startup, command, or file. Do not persist lease tokens.

Example:

```
curl -X POST https://api.zei.sh/api/v1/public/secrets/:sandboxId/leases \
  -H "X-API-Key: $ZEISH_API_KEY"
  -H "Content-Type: application/json" \
  -d '{"operation":"command"}'
```
