# Create an agent sandbox key (QuantSet API)

> Create an account (201) or rotate an unconfirmed, unfunded account key (200). Confirmed or funded accounts return 409. Save the returned key immediately.

> ## For AI agents
> The QuantSet API is at https://api.quantset.dev. Send the key in the `X-API-Key` header. The sandbox key `mw_demo` needs no signup and reads the sample listings.
> No key yet? An agent can open an account on its own: https://api.quantset.dev/skill.md
> Connect an MCP client to https://api.quantset.dev/mcp. Client setup is at https://api.quantset.dev/agents.md.
> Start with https://api.quantset.dev/llms.txt or read the full reference at https://api.quantset.dev/llms-full.txt. The OpenAPI file is https://api.quantset.dev/openapi.json. Add `.md` to any docs URL to get that page as Markdown.

`POST https://api.quantset.dev/api/v1/agent/signup` · `create_agent_sandbox_key`

Keyless operation.
Returns JSON.
Price: Free. It uses no credits.

## Workflow examples

### How can a research agent provision a key for its owner?

```http
POST https://api.quantset.dev/api/v1/agent/signup
Content-Type: application/json

{
  "email": "YOUR_ACCOUNT_EMAIL",
  "agent_name": "Research agent"
}
```

Replace YOUR_ACCOUNT_EMAIL with the owner’s real address. Save api_key from a successful response directly to secret storage before making the first sample read.

## Reading the results

A 201 response creates access. A repeat request for an unconfirmed and unfunded account can rotate its key and return 200. Existing integrations would then need the replacement key.


## Coverage and limits

Confirmed or funded accounts use the existing account flow when signup returns account_exists. A newly issued key initially has sandbox coverage.


## Parameters


## Response fields

- `api_key` (string)
- `email` (string)
- `agent_name` (string)
- `plan` (string)
- `status` (string): The current state of the record.
- `trial_credits_remaining` (integer)
- `checkout_link_endpoint` (string)
- `feedback_endpoint` (string)
- `docs_url` (string): A link.
- `message` (string)

## Example

```
curl -X POST 'https://api.quantset.dev/api/v1/agent/signup' -H 'Content-Type: application/json' --data '{"email":"YOUR_ACCOUNT_EMAIL","agent_name":"Research agent"}'
```

## Responses

- 200 An unconfirmed sandbox key was rotated.
- 201 Successful Response
- 409 Use the existing account to manage API keys.
- 413 Reduce the size of the request body.
- 422 Correct the named parameter and retry.
- 429 Wait for Retry-After seconds.
- 500 The request could not be completed.

## Questions

**Can I try Create an agent sandbox key without signing up?** Yes. This operation is keyless.

**Can an AI agent use this?** Yes. An agent calls it over HTTP like any client. Add .md to this page's address for a version written for agents.

**What does null mean in the response?** The value could not be confirmed. It is never a zero, so treat it as missing in your own calculations.

Group: Account and integration
Docs page: https://quantset.dev/docs/api/agent-signup-post
Integrations & Ecosystem: https://quantset.dev/integrations (Claude/Cursor MCP, LangGraph, PydanticAI, CrewAI, Agno, Vercel AI SDK, Mastra, Sheets =QUANTSET(), Excel, Notion & x402)
Full API guide: https://api.quantset.dev/llms-full.txt
