froogdocs
Dashboard

DocsReference

HTTP API

Base URL https://api.froog.tech/v1. Send an API key from the dashboard as a bearer token. Keys expire after 90 days by default (401 api_key_expired) and can be scoped. JSON in and out. Errors: {"error": {"code", "message", "request_id"}}; the id is also in X-Request-Id. Quote it when reporting a problem.

Rate limit. 10,000 requests per 60 seconds per account (all keys and sessions together), or per IP without a valid key. Responses carry RateLimit-Limit, -Remaining, -Reset and -Policy. Past it: 429 account_rate_limited or 429 ip_rate_limited, with Retry-After.

$ curl -s https://api.froog.tech/v1/sandboxes \
    -H "Authorization: Bearer $FROOG_API_KEY" -H "Content-Type: application/json" \
    -d '{"name": "ci-1", "size": "small"}'
$ curl -s https://api.froog.tech/v1/sandboxes/ci-1/exec \
    -H "Authorization: Bearer $FROOG_API_KEY" -H "Content-Type: application/json" \
    -d '{"command": "uname -a", "timeout_secs": 60}'
{"exit_code":0,"stdout":"Linux froog-… 6.8.0 …\n","stderr":""}

Lifecycle. Create, stop, start, fork and restore return 202 and continue in the background; poll GET /sandboxes/{name} until state is running or stopped. Errors on starting a sandbox:

  • 402 capacity_full: no free setup slot of that size and vCPU kind. 402 capacity_unpaid: this month's charge failed.
  • 409 no_capacity on a create, fork or start: every host is full right now, so nothing was made or started. Try again in a few minutes or at a smaller size.
  • 402 card_required / 429 limit_reached / 402 free_lite_in_use: free lite without a card / a second lite / that card's lite runs in another account.
  • 403 xlarge_coming_soon, 403 account_closed.
  • 429 member_limit_reached, 402 team_member_cap_reached: organization caps.
  • 429 limit_reached with Retry-After: a start limit (GET /limits).

Retries. Send Idempotency-Key (up to 255 characters) with POST /sandboxes and /fork. A retry with the same key within 24 hours replays the first response (Idempotent-Replayed: true). Same key, different body: 422 idempotency_key_reused; first still running: 409 idempotency_key_in_use. Errors aren't replayed. The CLI does this for you.

$ KEY=$(uuidgen)   # reuse for every retry
$ curl -s --retry 3 https://api.froog.tech/v1/sandboxes \
    -H "Authorization: Bearer $FROOG_API_KEY" -H "Idempotency-Key: $KEY" \
    -H "Content-Type: application/json" -d '{"name": "ci-2"}'

Streamed exec. "stream": true (or Accept: application/x-ndjson) on /exec returns one JSON object per line: started, then stdout/stderr chunks, then one exit (or error if the connection broke). Hanging up stops the command.

$ curl -sN https://api.froog.tech/v1/sandboxes/ci-1/exec \
    -H "Authorization: Bearer $FROOG_API_KEY" -H "Content-Type: application/json" \
    -d '{"command": "make test", "stream": true}'
{"type":"started","command_id":"cmd_…"}
{"type":"stdout","data":"ok  build\n"}
{"type":"exit","exit_code":0,"timed_out":false}

Watching files and ports. NDJSON streams open up to timeout_secs (default 3600), then reconnect. /files/watch sends ready, then {"type":"change","event":"create"|"modify"|"delete","path"}. /ports/watch sends {"type":"open"|"close","port","protocol":"tcp"}, listening ports first. Each holds one of the sandbox's 8 command slots.

GET/sandboxes?label=&name=&name_prefix=&state=&sort=&limit=&cursor=List, oldest first. With limit (1-200), page with X-Next-Cursor
POST/sandboxesCreate: {name?, size?, cpu?, adaptive?, max_vcpus?, os?, count?, ttl_secs?, auto_start?, max_lifetime_secs?, delete_after_secs?, expires_in_secs?, setup?, environment?, environment_name?, from?, snapshots?, monitoring?, env?, files?, labels?, repo?}. See cpu, adaptive, ttl, lifetime, repo, from
GET · PATCH · DELETE/sandboxes/{name}Show · change {name?, ttl_secs?, labels?, max_lifetime_secs?, delete_after_secs?, expires_in_secs?, auto_start?} · delete (saved snapshots stay)
GET/sandboxes/{name}/metrics · /metrics/historyCPU, memory, disk, network now · 30-second samples, 7 days
GET/sandboxes/{name}/usage?since=&until=Running time and cost
POST/sandboxes/{name}/exec{command, timeout_secs?, cwd?, env?, stream?, stdin?, stdin_b64?} → {exit_code, stdout, stderr, timed_out}. Max 3600 s, then exit 124. stdin up to 1 MiB
POST/sandboxes/{name}/waitWait for a port: {port, timeout_secs?} (up to 600)
GET · POST/sandboxes/{name}/jobsList · start a background command {command, cwd?, env?, stdin?, stdin_open?}
GET/sandboxes/{name}/jobs/{id}?offset=NState, exit code, output from offset
POST/sandboxes/{name}/jobs/{id}/stop · /stdinStop · write or close input {data?, data_b64?, close?}
GET/sandboxes/{name}/command-history[/{id}[/logs]]Past commands, newest first · one · its stored output
GET/sandboxes/{name}/processes[/samples|/records]Processes now · 30-second samples (7 days) · every process seen (72 hours)
GET · POST/sandboxes/{name}/urlsList · add a URL {port, public?, subdomain?, title?}, private unless public
DELETE/sandboxes/{name}/urls/{port}Remove a URL
GET · POST · DELETE/sandboxes/{name}/urls/{port}/tokens[/{id}]Viewer tokens: list · make {ttl_secs?, label?} · revoke
GET · DELETE/sandboxes/{name}/files?path=PFile details or folder entries · delete (&recursive=true)
GET · PUT/sandboxes/{name}/files/content?path=PDownload · upload raw bytes (100 MiB, &mode=755)
PUT/sandboxes/{name}/files/archive?path=DIRUnpack a .tar.gz into a folder
POST/sandboxes/{name}/files/move · /mkdir · /permissions{from, to} · {path, mode?} · {path, mode, recursive?}
POST/sandboxes/{name}/files/download-url · /upload-urlA link that needs no auth: {path, expires_in?} (default 15 min, up to 24 h)
GET/sandboxes/{name}/files/search?pattern=&path=Paths matching a glob
GET/sandboxes/{name}/files/find?pattern=&path=&regex=Lines containing text or a regex
POST/sandboxes/{name}/files/replace{paths, pattern, new_value}: plain-text replace in up to 100 files
GET/sandboxes/{name}/files/watch · /ports/watchStream changes
POST/sandboxes/{name}/stopRun ~/.froog/pre-stop, snapshot, stop: {force?} → stop_id
GET/stops/{id}status: pending, failing, completed, superseded, failed (see Stopping safely)
POST/sandboxes/{name}/startFrom the latest snapshot: {size?, ttl_secs?, environment?, environment_name?, env?}, kept for later starts
POST/sandboxes/{name}/fork{name, snapshot?, count?, size?, env?, ttl_secs?, snapshots?, environment?, environment_name?}; environment: false removes your logins
POST/sandboxes/{name}/restore{snapshot} (id or label)
GET · POST · DELETE/sandboxes/{name}/snapshotsList · save {label?} (402 credit_required past 10 saved without a day of the extras in the wallet) · delete all automatic ones
GET · DELETE/sandboxes/{name}/snapshots/{snap}One snapshot (latest works) · delete
GET/sandboxes/{name}/snapshots/{snap}/files[/download]Files inside, sandbox may be stopped
GET/snapshotsEvery snapshot of the account, newest first
GET/saved-snapshotsSaved snapshots. Start one with POST /sandboxes {"from": NAME}
GET · DELETE/saved-snapshots/{name}One (poll status until available) · remove
GET · POST · DELETE/saved-snapshots/{name}/shares[/{id}]Share codes: list · make (code shown once) · revoke
GET/saved-snapshots/{name}/files[/download]Files inside a saved snapshot
POST/sandboxes/{name}/desktop · /browserA viewer link (desktop, or Chrome only), ?theme=dark|light
GET/sandboxes/{name}/sshSSH host, user, port, host key
POST/sandboxes/{name}/touchRecord activity (doesn't move auto-stop)
POST/sandboxes/{name}/share · /unshareShare with the organization · make private
POST/sandboxes/{name}/github-tokenA one-hour GitHub token {owner?}
POST/sandboxes/{name}/prompt · /promptsPrompt an agent and wait · queue (202): {prompt, agent?, model?, effort?, fast?, new?, conversation_id?, attachments?, timeout_secs?}. 400 provider_not_configured without credentials
GET/sandboxes/{name}/prompts/{id}[/events]Status and result · its events (JSON, SSE, NDJSON)
GET/sandboxes/{name}/events · /conversations[/{id}]All agent events · conversations (DELETE one)
POST/sandboxes/{name}/steer · /interrupt{message, conversation_id?} · {conversation_id?}
GET/provider-models · /subscriptionsHarnesses and models (no key) · Claude and ChatGPT sign-ins
GET · PUT · DELETE/env[/{name}]Environment variables (masked) · set {value} · remove
GET · PATCH/environmentDefault environment · change {repos?, setup?, repo_setup?} (new version)
GET · POST/environmentsEnvironments · create {name, copy_from?, default?}
GET · PATCH · DELETE/environments/{env}One · change (also name, default) · delete
PUT · DELETE/environment/files, /environments/{env}/filesAdd {path, content} · remove ?path=
GET · POST/environments/{env}/versions · /upgradeVersions · move sandboxes to the latest {sandboxes?}
GET · POST · DELETE/ssh-keys[/{id}]List · add {name, public_key} · remove
GET · POST · DELETE/api-keys[/{id}]List · create {label?, ttl_days?, never_expires?, preset? | actions?, sandboxes?, labels?, environments?} (secret once; see scopes) · revoke
POST/api-keys/{id}/rotateNew secret, same scope and expiry
GET · POST · PATCH · DELETE/webhooks[/{id}]List · add {url, events?, name?} (secret once) · change · remove
GET · POST/webhooks/{id}/deliveries · /rotate · /testDelivery log (30 days) · new secret · ping
GET · POST/inboxesTokenmail inboxes, $2/month · create {username?, name?, sandbox?}
GET · PATCH · DELETE/inboxes/{inbox}Show · {name?, sandbox?} · delete
GET · DELETE/inboxes/{inbox}/messages[/{id}[/raw]]Messages with codes and links · one · delete
GET/inboxes/{inbox}/wait?sender=&subject=&timeout=Next matching message (up to 120 s)
GET · POST/inboxes/billing[/checkout]Inbox subscription · buy more {quantity?}
GET · POST/github · /github/connectGitHub connection · install link
GET · PUT · DELETE/github/repos · /github/token-repos · /github/installations/{id}Repos the app sees · limit the sandbox token · unlink
GET · PUT/seaeye · /seaeye/settingsSeaeye overview · public repos
GET/seaeye/runs[/{id}] · /seaeye/jobs/{id}[/logs]Runs · jobs and logs
GET/accountAccount and limits
GET · PATCH/account/alertsEmail alerts, auto_rebuild
GET · DELETE/account/connections[/{id}]Sign-in methods · remove (not the last: 409 last_connection)
POST · PUT/account/connections/email[/verify] · /account/primaryAdd an email by code · choose the address for emails
GET · PATCH/account/data-retentionData controls (changing needs a dashboard session)
POST/account/close · /account/reopenClose (header X-Froog-Confirm-Close: EMAIL) · reopen within 30 days
GET/deletion-operations/{id}Progress of a deletion
GET/audit · /audit/export?format=csv|ndjsonAudit log (account.admin) · 90 days as a file
GET · POST · PATCH · DELETE/orgs[/{org}], /orgs/activeOrganizations: list · create · change · delete · switch
GET · PATCH · DELETE · POST/orgs/{org}/members[/{m}] · /invites[/{id}]Members and caps · invite {email, role?} · revoke
POST · PUT/orgs/{org}/leave · /transfer · /seatsLeave · new owner · seats
GET · POST/org-invites/{token} · /acceptSee · accept an invite
GET/usage?month=YYYY-MMMonth's setup charge and usage-billed lines
GET/billingCard, setup, rates, free lite, wallet, cap; stopped_for explains a billing stop
PUT/billing/capacitySet the whole setup {slots: [{size, cpu, count}]}. Adding charges now (402 if declined)
POST/billing/capacity/payStripe page to pay an unpaid setup charge
POST · GET/billing/card · /billing/cardsAdd a card (Checkout URL) · list
DELETE · PUT/billing/cards/{id} · /defaultRemove (409 card_needed if the only card on a billed setup) · make default
GET/billing/history?limit=Wallet history
PUT/billing/spend-capCap {usd}, null removes
GET · POST · PUT/billing/wallet/quote · /pay · /auto-topupWallet: bonus quote · add {amount_usd, auto_topup?, card_id?} · auto top-up {amount_usd}
POST/billing/portalStripe portal for cards and address
POST/dashboard-linkOne-time dashboard sign-in link, 15 minutes (full-access key)
GET · PUT · DELETE/telemetryOpenTelemetry endpoint {endpoint, headers}
POST/feedback{message}