> ## Documentation Index
> Fetch the complete documentation index at: https://docs.styne.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Agent sign-up

> Let an AI agent create an account with a single call and hand a claim link to a person.

An AI agent with no account can make one with a single call. It gets a key with the smallest limits at once and a claim link
for a person. When the person opens the link and signs in, they become the owner of that account; the agent's key and its
sandboxes stay where they are and keep working. An account nobody claims loses its key after a day.

## The agent's call

```text theme={"theme":"css-variables"}
POST https://app.styne.ai/v1/agent/signup
```

No key, no body. `https://api.styne.ai/v1/agent/signup` answers `308` to the same address, so a client that follows redirects (`curl -L`) can use either. The answer is `201`:

```text theme={"theme":"css-variables"}
{ "api_key": "sty_live_...", "claim_url": "https://app.styne.ai/claim?token=agc_...",
  "expires_at": "2026-11-13T12:00:00Z",
  "limits": { "requests_per_minute": 30, "free_sandbox_seconds": 300 } }
```

The key is shown once. The agent hands `claim_url` to its person.

## Limits before a person claims

| Limit | Value |
| - | - |
| Key lifetime | 24 hours, then the key is revoked |
| Requests | 30 a minute per key |
| Free sandbox time | 300 seconds in total, then `429 free_tier_exhausted` with the way up (add a card in the dashboard) |
| Sign-ups | 3 a day per address, 10 a day per network (/24 or /48), 10 an hour per address on the route |
| Sign-ups, all callers together | 10 a minute, 120 an hour, 2,000 a day |

Every refusal is one `429` with the same body, so it does not say which check refused it. Private and missing addresses and
blocklisted networks are refused the same way. Wait and try again, or sign up in the [dashboard](https://app.styne.ai) instead.

## The claim link

```text theme={"theme":"css-variables"}
GET /v1/agent/claim/{token}        { "state": "open" | "claimed" | "expired", "key_prefix": "sty_live_ab12", "expires_at": ... }
POST /v1/agent/claim               { "token": "agc_..." }   signed in with a confirmed email; answers { "status": "claimed", "account_id": ... }
```

A second claim answers `409`; an unknown or expired link answers `404`. An email address from a disposable-mail domain answers `403`. The token is stored only as a hash.

## After the claim

The person becomes the owner of the agent's account; nothing is copied. The dashboard offers the new account next to the
person's own, and the key, the sandboxes and the usage so far are already in it. The key loses its expiry and its agent
limit. To go beyond the 300 free seconds, the owner starts the 7-day trial or picks a plan under Billing; a card is required
(see [Plans and billing](https://docs.styne.ai/billing.md)). An account with no trial or plan answers `402 plan_required`.

## Operations

| Method | Path | What it does |
| - | - | - |
| `POST` | `/v1/agent/signup` | Create an account and a limited key without a person; returns a claim link |
| `GET` | `/v1/agent/claim/{token}` | Read whether a claim link is open, claimed or expired |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.