REST API
The REST API's address, authentication, and OpenAPI document, the Markdown copies of the docs, and every feature in every interface.
Address and authentication
The SDKs and the CLI call the REST API at https://www.sandcovery.com/api/v1, which the OpenAPI 3.1 document describes. Authenticate every call with an API key.
Docs for agents
Each docs page has a Markdown copy at its address plus .md, such as /docs/routing.md, and llms.txt lists every copy, the OpenAPI document, and the pricing page. A request to a docs page whose Accept header ranks text/markdown or text/plain at least as high as text/html and */* gets the same Markdown copy at the page's own address.
Every feature in every interface
The website, the REST API, both SDKs, and the CLI offer the same features, so a task started in one can finish in any other.
| Feature | Website | TypeScript SDK | Python SDK | CLI |
|---|---|---|---|---|
| Create a sandbox | Sandboxes, Create Sandbox | sandboxes.create | sandboxes.create | sandboxes createSandbox |
| Estimate the cost of a spec | Sandboxes, Create Sandbox, Estimate Cost | usage.estimate | usage.estimate | sandboxes estimateCost |
| List sandboxes | Sandboxes | sandboxes.list | sandboxes.list | sandboxes listSandboxes |
| Read a sandbox | A sandbox's page | sandboxes.get | sandboxes.get | sandboxes getSandbox |
| Pause a sandbox | A sandbox's page | sandboxes.pause | sandboxes.pause | sandboxes pauseSandbox |
| Resume a sandbox | A sandbox's page | sandboxes.resume | sandboxes.resume | sandboxes resumeSandbox |
| Snapshot a sandbox | A sandbox's page | sandboxes.snapshot | sandboxes.snapshot | sandboxes snapshotSandbox |
| List snapshots | Sandboxes, Create Sandbox, Advanced Options, Snapshot | sandboxes.listSnapshots | sandboxes.list_snapshots | sandboxes listSnapshots |
| List usable keys | Sandboxes, Create Sandbox, API key | sandboxes.listUsableKeys | sandboxes.list_usable_keys | sandboxes listUsableKeys |
| Destroy a sandbox | Sandboxes or a sandbox's page | sandboxes.destroy | sandboxes.destroy | sandboxes destroySandbox |
| Run a command | A sandbox's page | sandboxes.exec or sandboxes.execStream | sandboxes.exec or sandboxes.exec_stream | sandboxes execSandbox or sandboxes streamExecSandbox |
| Start a detached command | A sandbox's page, Start it and leave it running | sandboxes.execDetached | sandboxes.exec_detached | sandboxes detachExecSandbox |
| Start a process and attach to it | A sandbox's page, Terminal | sandboxes.startProcess and sandboxes.attachProcess | sandboxes.start_process and sandboxes.attach_process | sandboxes startProcess |
| Read a process | A sandbox's page, Terminal | sandboxes.getProcess | sandboxes.get_process | sandboxes getProcess |
| List files | A sandbox's page | sandboxes.listFiles | sandboxes.list_files | sandboxes listFiles |
| Read a file | A sandbox's page | sandboxes.readFile or sandboxes.downloadFile | sandboxes.read_file or sandboxes.download_file | sandboxes downloadFile |
| Write a file | A sandbox's page | sandboxes.writeFile | sandboxes.write_file | sandboxes uploadFile |
| Get a port preview URL | A sandbox's page | sandboxes.portPreview | sandboxes.port_preview | sandboxes getPortPreview |
| List the agents Sandcovery installs | Agents | agents.presets | agents.presets | agents listAgentPresets |
| Add an agent | Agents, Get | agents.create | agents.create | agents createAgent |
| List your agents | Agents | agents.list | agents.list | agents listAgents |
| Read an agent | An agent's page | agents.get | agents.get | agents getAgent |
| Attach a terminal to its session | An agent's page, Open Terminal | agents.session | agents.session | agents openAgentSession |
| Open SSH to it | An agent's page | agents.ssh | agents.ssh | agents ssh or agents openAgentSsh |
| Open its web app | An agent's page | agents.web | agents.web | agents openAgentWeb |
| Sign in to its web app | An agent's page, from its web app | agents.webSignIn | agents.web_sign_in | agents signInAgentWeb |
| Start an agent | An agent's page, Start Agent | agents.start | agents.start | agents startAgent |
| Restart an agent | An agent's page, Restart | agents.restart | agents.restart | agents restartAgent |
| Stop an agent | An agent's page, Stop | agents.stop | agents.stop | agents stopAgent |
| Read an agent's log | An agent's page | agents.logs | agents.logs | agents getAgentLogs |
| Delete an agent | An agent's page, Delete | agents.delete | agents.delete | agents deleteAgent |
| Read the activity log | Activity | activity.list | activity.list | activity listActivity |
| Read usage | Usage | usage.get | usage.get | usage getUsage |
| Read live usage | Usage | usage.live | usage.live | usage getLiveUsage |
| Read usage totals | Usage | usage.totals | usage.totals | usage getUsageTotals |
| Share usage by link | Usage, Share Usage | usage.share | usage.share | usage createUsageShare |
| List usage share links | Usage, Share links | usage.listShares | usage.list_shares | usage listUsageShares |
| Revoke a usage share link | Usage, Share links, Revoke | usage.revokeShare | usage.revoke_share | usage revokeUsageShare |
| Read shared usage | A share link's page | usage.getShared | usage.get_shared | sharedUsage getSharedUsage |
| Read stats | Stats | stats.get | stats.get | stats getStats |
| Share stats by link | Stats, Share Stats | stats.share | stats.share | statsShare shareStats |
| Read the stats link | Stats | stats.getShare | stats.get_share | statsShare getStatsShare |
| Stop sharing stats | Stats, Share Stats, Stop Sharing | stats.unshare | stats.unshare | statsShare unshareStats |
| Read shared stats | A shared stats page | stats.getShared | stats.get_shared | sharedStats getSharedStats |
| List CI jobs | CI, Jobs | ci.listJobs | ci.list_jobs | ciJobs listCiJobs |
| Read a CI job | A CI job's page | ci.getJob | ci.get_job | ciJobs getCiJob |
| List the providers CI jobs run on | CI | ci.listProviders | ci.list_providers | ciJobs listCiProviders |
| List the names of linked GitHub accounts | CI, Set Up CI | ci.listAccounts | ci.list_accounts | ciJobs listCiAccounts |
| List linked GitHub installations | CI, GitHub installations | ci.listInstallations | ci.list_installations | ciInstallations listCiInstallations |
| Unlink a GitHub installation | CI, GitHub installations, Unlink | ci.unlinkInstallation | ci.unlink_installation | ciInstallations unlinkCiInstallation |
| List keys | API Keys | keys.list | keys.list | keys listKeys |
| Create a key | API Keys, Create Key | keys.create | keys.create | keys createKey |
| Read a key | API Keys, Edit | keys.get | keys.get | keys getKey |
| Change a key | API Keys, Edit | keys.update | keys.update | keys updateKey |
| Revoke a key | API Keys, Revoke | keys.revoke | keys.revoke | keys revokeKey |
| List provider credentials | Provider Credentials | credentials.list | credentials.list | credentials listProviderCredentials |
| Set a provider credential | Provider Credentials, Replace | credentials.set | credentials.set | credentials setProviderCredential |
| Add another provider credential (Pro and Enterprise) | Provider Credentials, Add Credential | credentials.add | credentials.add | credentials addProviderCredential |
| Delete a provider's credentials | Provider Credentials, Remove on each | credentials.delete | credentials.delete | credentials deleteProviderCredential |
| Delete one provider credential | Provider Credentials, Remove | credentials.deleteOne | credentials.delete_one | credentials deleteOneProviderCredential |
| Read the free vCPUh offer | Provider Credentials | credentials.offer | credentials.offer | credentials getOffer |
| Count an X post toward the free vCPUh | Provider Credentials, Check for My Post | credentials.countXPost | credentials.count_x_post | credentials countXPost |
| Read the plan and credits | Billing | billing.get | billing.get | billing getBilling |
| Start a paid plan | Billing | billing.startSubscription | billing.start_subscription | billing startSubscription |
| Open the billing portal | Billing, Manage Billing | billing.openBillingPortal | billing.open_billing_portal | billing openBillingPortal |
| Buy credits | Billing | billing.buyCredits | billing.buy_credits | billing buyCredits |
| Set auto top-up | Billing | billing.setAutoTopUp | billing.set_auto_top_up | billing setAutoTopUp |
| Stop auto top-up | Billing | billing.stopAutoTopUp | billing.stop_auto_top_up | billing stopAutoTopUp |
| Read the linked X account | Account | xAccount.get | x_account.get | xAccount getXAccount |
| Link an X account | Account, Link X Account | xAccount.link | x_account.link | xAccount linkXAccount |
| Unlink the X account | Account, Unlink | xAccount.unlink | x_account.unlink | xAccount unlinkXAccount |
| Read the Pro price and credit terms | Pricing | pricing.get | pricing.get | pricing getPricing |
| Price a size for a month on each provider | Cost calculator | pricing.monthly | pricing.monthly | pricing estimateMonthlyCost |
| Read the provider board | Home page and Pricing | providers.list | providers.list | providers listProviders |
| Read one provider | A provider's page | providers.get | providers.get | providers getProvider |
| Read the provider catalog | Providers | providers.catalog | providers.catalog | providers listCatalog |
| Report a problem | Report a problem | problems.report | problems.report | problemReports reportProblem |
Creating a sandbox on the website takes an API key, as in every other interface, since each sandbox runs under the limits of the key that created it. Sandcovery sends that key with the one request and does not keep it.
X confirms an X account link in the browser, so the SDKs and the CLI answer the dashboard's Account page, where you finish linking while signed in.