Skip to main content
DELETE
/
api
/
sandboxes
cURL
curl --request DELETE \
  --url https://recoup-api.vercel.app/api/sandboxes \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "status": "success",
  "deleted_snapshot": {
    "account_id": "550e8400-e29b-41d4-a716-446655440000",
    "snapshot_id": "snap_abc123def456",
    "expires_at": "2027-01-01T00:00:00.000Z",
    "github_repo": "https://github.com/org/repo",
    "created_at": "2025-01-01T00:00:00.000Z"
  },
  "error": "<string>"
}

Authorizations

x-api-key
string
header
required

Your Recoup API key. Learn more.

Body

application/json

Optional account targeting parameters

account_id
string<uuid>

UUID of the account to delete the sandbox for. Only applicable for organization API keys - org keys can specify an account_id for any account within their organization. If not provided, deletes the sandbox for the API key's own account.

Response

Sandbox deleted successfully

status
enum<string>
required

Status of the delete operation

Available options:
success,
error
deleted_snapshot
object

The snapshot record that was deleted. Null if no snapshot existed for the account.

error
string

Error message (only present if status is error)