Skip to Content

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.

FeatureWebsiteTypeScript SDKPython SDKCLI
Create a sandboxSandboxes, Create Sandboxsandboxes.createsandboxes.createsandboxes createSandbox
Estimate the cost of a specSandboxes, Create Sandbox, Estimate Costusage.estimateusage.estimatesandboxes estimateCost
List sandboxesSandboxessandboxes.listsandboxes.listsandboxes listSandboxes
Read a sandboxA sandbox's pagesandboxes.getsandboxes.getsandboxes getSandbox
Pause a sandboxA sandbox's pagesandboxes.pausesandboxes.pausesandboxes pauseSandbox
Resume a sandboxA sandbox's pagesandboxes.resumesandboxes.resumesandboxes resumeSandbox
Snapshot a sandboxA sandbox's pagesandboxes.snapshotsandboxes.snapshotsandboxes snapshotSandbox
List snapshotsSandboxes, Create Sandbox, Advanced Options, Snapshotsandboxes.listSnapshotssandboxes.list_snapshotssandboxes listSnapshots
List usable keysSandboxes, Create Sandbox, API keysandboxes.listUsableKeyssandboxes.list_usable_keyssandboxes listUsableKeys
Destroy a sandboxSandboxes or a sandbox's pagesandboxes.destroysandboxes.destroysandboxes destroySandbox
Run a commandA sandbox's pagesandboxes.exec or sandboxes.execStreamsandboxes.exec or sandboxes.exec_streamsandboxes execSandbox or sandboxes streamExecSandbox
Start a detached commandA sandbox's page, Start it and leave it runningsandboxes.execDetachedsandboxes.exec_detachedsandboxes detachExecSandbox
Start a process and attach to itA sandbox's page, Terminalsandboxes.startProcess and sandboxes.attachProcesssandboxes.start_process and sandboxes.attach_processsandboxes startProcess
Read a processA sandbox's page, Terminalsandboxes.getProcesssandboxes.get_processsandboxes getProcess
List filesA sandbox's pagesandboxes.listFilessandboxes.list_filessandboxes listFiles
Read a fileA sandbox's pagesandboxes.readFile or sandboxes.downloadFilesandboxes.read_file or sandboxes.download_filesandboxes downloadFile
Write a fileA sandbox's pagesandboxes.writeFilesandboxes.write_filesandboxes uploadFile
Get a port preview URLA sandbox's pagesandboxes.portPreviewsandboxes.port_previewsandboxes getPortPreview
List the agents Sandcovery installsAgentsagents.presetsagents.presetsagents listAgentPresets
Add an agentAgents, Getagents.createagents.createagents createAgent
List your agentsAgentsagents.listagents.listagents listAgents
Read an agentAn agent's pageagents.getagents.getagents getAgent
Attach a terminal to its sessionAn agent's page, Open Terminalagents.sessionagents.sessionagents openAgentSession
Open SSH to itAn agent's pageagents.sshagents.sshagents ssh or agents openAgentSsh
Open its web appAn agent's pageagents.webagents.webagents openAgentWeb
Sign in to its web appAn agent's page, from its web appagents.webSignInagents.web_sign_inagents signInAgentWeb
Start an agentAn agent's page, Start Agentagents.startagents.startagents startAgent
Restart an agentAn agent's page, Restartagents.restartagents.restartagents restartAgent
Stop an agentAn agent's page, Stopagents.stopagents.stopagents stopAgent
Read an agent's logAn agent's pageagents.logsagents.logsagents getAgentLogs
Delete an agentAn agent's page, Deleteagents.deleteagents.deleteagents deleteAgent
Read the activity logActivityactivity.listactivity.listactivity listActivity
Read usageUsageusage.getusage.getusage getUsage
Read live usageUsageusage.liveusage.liveusage getLiveUsage
Read usage totalsUsageusage.totalsusage.totalsusage getUsageTotals
Share usage by linkUsage, Share Usageusage.shareusage.shareusage createUsageShare
List usage share linksUsage, Share linksusage.listSharesusage.list_sharesusage listUsageShares
Revoke a usage share linkUsage, Share links, Revokeusage.revokeShareusage.revoke_shareusage revokeUsageShare
Read shared usageA share link's pageusage.getSharedusage.get_sharedsharedUsage getSharedUsage
Read statsStatsstats.getstats.getstats getStats
Share stats by linkStats, Share Statsstats.sharestats.sharestatsShare shareStats
Read the stats linkStatsstats.getSharestats.get_sharestatsShare getStatsShare
Stop sharing statsStats, Share Stats, Stop Sharingstats.unsharestats.unsharestatsShare unshareStats
Read shared statsA shared stats pagestats.getSharedstats.get_sharedsharedStats getSharedStats
List CI jobsCI, Jobsci.listJobsci.list_jobsciJobs listCiJobs
Read a CI jobA CI job's pageci.getJobci.get_jobciJobs getCiJob
List the providers CI jobs run onCIci.listProvidersci.list_providersciJobs listCiProviders
List the names of linked GitHub accountsCI, Set Up CIci.listAccountsci.list_accountsciJobs listCiAccounts
List linked GitHub installationsCI, GitHub installationsci.listInstallationsci.list_installationsciInstallations listCiInstallations
Unlink a GitHub installationCI, GitHub installations, Unlinkci.unlinkInstallationci.unlink_installationciInstallations unlinkCiInstallation
List keysAPI Keyskeys.listkeys.listkeys listKeys
Create a keyAPI Keys, Create Keykeys.createkeys.createkeys createKey
Read a keyAPI Keys, Editkeys.getkeys.getkeys getKey
Change a keyAPI Keys, Editkeys.updatekeys.updatekeys updateKey
Revoke a keyAPI Keys, Revokekeys.revokekeys.revokekeys revokeKey
List provider credentialsProvider Credentialscredentials.listcredentials.listcredentials listProviderCredentials
Set a provider credentialProvider Credentials, Replacecredentials.setcredentials.setcredentials setProviderCredential
Add another provider credential (Pro and Enterprise)Provider Credentials, Add Credentialcredentials.addcredentials.addcredentials addProviderCredential
Delete a provider's credentialsProvider Credentials, Remove on eachcredentials.deletecredentials.deletecredentials deleteProviderCredential
Delete one provider credentialProvider Credentials, Removecredentials.deleteOnecredentials.delete_onecredentials deleteOneProviderCredential
Read the free vCPUh offerProvider Credentialscredentials.offercredentials.offercredentials getOffer
Count an X post toward the free vCPUhProvider Credentials, Check for My Postcredentials.countXPostcredentials.count_x_postcredentials countXPost
Read the plan and creditsBillingbilling.getbilling.getbilling getBilling
Start a paid planBillingbilling.startSubscriptionbilling.start_subscriptionbilling startSubscription
Open the billing portalBilling, Manage Billingbilling.openBillingPortalbilling.open_billing_portalbilling openBillingPortal
Buy creditsBillingbilling.buyCreditsbilling.buy_creditsbilling buyCredits
Set auto top-upBillingbilling.setAutoTopUpbilling.set_auto_top_upbilling setAutoTopUp
Stop auto top-upBillingbilling.stopAutoTopUpbilling.stop_auto_top_upbilling stopAutoTopUp
Read the linked X accountAccountxAccount.getx_account.getxAccount getXAccount
Link an X accountAccount, Link X AccountxAccount.linkx_account.linkxAccount linkXAccount
Unlink the X accountAccount, UnlinkxAccount.unlinkx_account.unlinkxAccount unlinkXAccount
Read the Pro price and credit termsPricingpricing.getpricing.getpricing getPricing
Price a size for a month on each providerCost calculatorpricing.monthlypricing.monthlypricing estimateMonthlyCost
Read the provider boardHome page and Pricingproviders.listproviders.listproviders listProviders
Read one providerA provider's pageproviders.getproviders.getproviders getProvider
Read the provider catalogProvidersproviders.catalogproviders.catalogproviders listCatalog
Report a problemReport a problemproblems.reportproblems.reportproblemReports 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.