Accountless agents
Create sandboxes from an agent before anyone has an account, then let a person claim the organization.
An agent can start on Sandcovery before anyone signs up. It asks for an API key with no credentials, creates sandboxes at once within a small trial, and gives a person a link that makes the organization theirs.
This page is also served to agents as Markdown at https://www.sandcovery.com/auth.md, and https://www.sandcovery.com/.well-known/agent-configuration describes the same method as JSON.
Provision an organization
curl -X POST https://www.sandcovery.com/api/v1/accountless \
-H "Content-Type: application/json" \
-d '{"source": "my-agent"}'The request needs no authentication. Send a JSON body: source names your agent, or is null, and may be left out, so {} works.
Sandcovery creates an unclaimed organization with one API key and 12,000 micros ($0.012) of trial credit, and answers 201:
{
"api_key": "ak_...",
"claim_url": "https://www.sandcovery.com/app/claim#...",
"organization_id": "org_...",
"expires_at": "..."
}| Field | Meaning |
|---|---|
api_key | The organization's API key. Send it as a bearer token, and store it as SANDCOVERY_API_KEY |
claim_url | The link a person opens to claim the organization. Sandcovery returns it only once, so keep it with the key and never log it |
organization_id | The new organization |
expires_at | When Sandcovery deletes the organization if nobody has claimed it |
Each network address can provision 3 organizations a day, and Sandcovery provisions at most 25 a day in total. Past either limit, the request answers 429.
CI jobs
A CI job uses a key from API Keys in the Sandcovery dashboard as SANDCOVERY_API_KEY, and never provisions an organization. The Sandcovery CLI refuses to provision one when the CI environment variable is set.
Create sandboxes with the key
The key works at once with the sandbox API, the SDKs, and the CLI. Until a person claims the organization, it:
- Creates and drives sandboxes only.
- Runs them on Sandcovery capacity, since the organization has no provider credentials of its own.
- Spends only its 12,000 micros of trial credit.
- Runs 1 sandbox at a time.
- Gives each sandbox a TTL of at most 600 seconds.
Buying credit, adding provider credentials, minting API keys, and inviting people stay closed until the organization is claimed.
Give a person the claim link
Show claim_url to your person exactly as Sandcovery returned it. They open it, sign in or create an account, and click Claim Organization to become the organization's admin. A claim link works only once.
The API key does not change. After the claim it keeps working within the organization's usual API key limits, and the trial limits above no longer apply.
Check whether the organization is claimed
curl -X POST https://www.sandcovery.com/api/v1/accountless/complete \
-H "Authorization: Bearer $SANDCOVERY_API_KEY"It answers 404 while the organization is unclaimed, and 200 with the organization_id once a person has claimed it. From then on the organization is like any other, and its admin can buy credit, add provider credentials, mint keys, and invite people.
Unclaimed organizations expire
Sandcovery deletes an unclaimed organization, its API key, and its data 7 days after it was provisioned, at expires_at. After that the key stops working, so provision again only once your person agrees to start over.