# Sandbox

A sandbox is a practice copy of your workspace for the API. It has made-up readers, and nothing you do there can email a real person. Use it to build and test an integration or to let an AI agent practice, then switch to a live key.

## What you get

- A separate workspace with test data: two lists, two tags, 200 confirmed readers at simulated mailboxes, one draft mailing and one reader magnet.
- Test keys, which start with `seemly_test_`. A test key works only in the sandbox and a live key never works there, so you cannot mix them up by accident (`sandbox_only`).
- The same API, the same paths and the same answers as a live workspace. Your code does not change when you switch keys.
- The limits of the largest plan, so every operation can be tried.
- No billing and no effect on your plan's quotas.

## What a sandbox never does

- It never emails a real address. A send reaches only the simulated mailboxes. A confirmation email to a real-looking address added in the sandbox is held and never sent.
- It never joins a promo or a newsletter swap with a live workspace.
- It never counts toward your workspace limit.

## Create one

Only a workspace owner can create a sandbox, and the workspace needs a plan with API access (a Free workspace has none).

1. Open Developers in the dashboard, then Sandbox.
2. Choose Create sandbox.
3. Create a test key. Pick the AI agent preset to rehearse an agent.

Each person can have one sandbox. Reset replaces it with a fresh one: consent and send history cannot be erased, so the old sandbox is retired and a new one is created. Create test keys again after a reset.

## Try the whole agent flow

With a test key, the flow in the [agent guide](/developers/md/guides/agents) runs from `get_current_access` to an executed send:

```bash
curl https://api.seemly.com/v1/whoami \
  -H "Authorization: Bearer $SEEMLY_API_KEY"
```

`credential.mode` in the answer is `test`. With a key that holds `mailings:send`, `request_send` is executed at once and reaches only the 200 simulated readers. Without it, the request waits for approval like a live one.

## Moving to live

1. Create a live key in your real workspace with the same scopes.
2. Replace the key in your configuration. Nothing else changes.
3. Run your calls with `dry_run=true` first.
