Start an account: start_account
Needs no key. Gives a new agent a test key and a link its person can use to claim the account. Test only: 20 test letters, 5 an hour, for 30 days, and nothing real can happen before the claim. Store the key, send a test letter, then pass on tell_your_person. Needs an idempotency key: a retry returns the same account.
| MCP tool | start_account |
| REST | POST /v1/start |
| CLI | atomside start-account |
| Key needs | No key |
| Changes anything | Yes. |
| Idempotency key | Required: the Idempotency-Key header over REST, the idempotency_key argument over MCP, --idempotency-key in the CLI. |
Example
A real call and its real answer, made against the API in test mode. A test runs it again and fails if the answer changes. Ids, keys and links are replaced with stand-ins.
A call that works
REST:
curl -X POST https://api.atomside.com/v1/start \
-H "Idempotency-Key: lettings-helper-first-run" \
-H "Content-Type: application/json" \
-d '{
"agent_name": "lettings-helper",
"purpose": "Posts rent reviews and notices for a small letting agent."
}'
MCP:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "start_account",
"arguments": {
"agent_name": "lettings-helper",
"purpose": "Posts rent reviews and notices for a small letting agent.",
"idempotency_key": "lettings-helper-first-run"
}
}
}
CLI:
atomside start-account \
--agent-name lettings-helper \
--purpose 'Posts rent reviews and notices for a small letting agent.' \
--idempotency-key lettings-helper-first-run \
--key-file ./atomside-key
The answer (HTTP 200; over MCP, the same JSON is the result's structuredContent):
{
"account": "acct_example000000001",
"status": "unclaimed",
"mode": "test",
"key": "as_test_…",
"claim_url": "https://app.atomside.com/claim/…",
"expires": "2026-12-16T09:30:00.000Z",
"limits": {
"test_letters": 20,
"per_hour": 5,
"address_checks": 100
},
"cannot": [
"live",
"file_url",
"webhooks"
],
"tell_your_person": "I have set up a test account with Atomside, a UK service that prints and posts letters. So far I have only sent test letters. Nothing has been printed or charged. To let me send real letters, open this link and claim the account: https://app.atomside.com/claim/…. You will sign in, confirm who the letters come from, and add credits. The link works until 16 December 2026. If you did not ask for this, ignore it and the account will be deleted.",
"next": "Store the key. Send a test letter. Then pass on tell_your_person."
}
Input
Over REST, fields in the path go in the path, GET fields in the query string, and POST fields in the JSON body. Over MCP, every field is an argument of the tool.
{
"type": "object",
"properties": {
"agent_name": {
"type": "string",
"pattern": "^[a-z0-9][a-z0-9-]{1,39}$",
"description": "What the agent is called, e.g. \"lettings-helper\". Shown to the person who claims it."
},
"purpose": {
"description": "In your words: what the letters are for. Shown, marked unchecked, on the claim page.",
"type": "string",
"minLength": 1,
"maxLength": 280
}
},
"required": [
"agent_name"
],
"additionalProperties": false
}
Over MCP the tool also takes idempotency_key (required), the same key REST takes in the header.
Output
{
"type": "object",
"properties": {
"account": {
"type": "string"
},
"status": {
"type": "string",
"const": "unclaimed"
},
"mode": {
"type": "string",
"const": "test"
},
"key": {
"type": "string",
"description": "Shown once. Store it. A retry with the same idempotency key gives a new one."
},
"claim_url": {
"type": "string"
},
"expires": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
},
"limits": {
"type": "object",
"properties": {
"test_letters": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"per_hour": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"address_checks": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"required": [
"test_letters",
"per_hour",
"address_checks"
],
"additionalProperties": false
},
"cannot": {
"type": "array",
"items": {
"type": "string",
"enum": [
"live",
"file_url",
"webhooks"
]
}
},
"tell_your_person": {
"type": "string",
"description": "Pass these words on, as they are."
},
"next": {
"type": "string"
}
},
"required": [
"account",
"status",
"mode",
"key",
"claim_url",
"expires",
"limits",
"cannot",
"tell_your_person",
"next"
],
"additionalProperties": false
}
Refusals
Every refusal has the same shape. Branch on code, answer and retry; repeat say to your person.
| Code | Answer | Retry | HTTP | What to do next |
|---|---|---|---|---|
invalid_request | no | after_fix | 400 | Fix the field named in details.field. The same idempotency key is fine. |
rate_limited | no | at_time | 429 | Wait. The same idempotency key never sends twice. |
try_again_shortly | no | at_time | 503 | Try again after retry_after with the same idempotency key. |
idempotency_key_reused | no | after_fix | 409 | Check first: the earlier call may be the one you meant. Otherwise use a new key. |
request_in_progress | no | at_time | 409 | Wait, then repeat the same call with the same key. You will get its answer. |
account_already_claimed | no | never | 409 | Nothing to do. Call get_account to see what changed. |