# Versioning

The API has dated versions, so we can change a shape without breaking anyone.

## How it works

- Each key is pinned to the newest version released when it was made. A connected assistant is pinned to the version current when it was connected.
- To use another version for one call, send the `Atomside-Version` header (REST and MCP alike):

  ```sh
  curl https://api.atomside.com/v1/account \
    -H "Authorization: Bearer $ATOMSIDE_API_KEY" \
    -H "Atomside-Version: 2026-11-24"
  ```

- Every answer from `/v1` and `/mcp` names the version it was answered in, in the same header.
- A version we do not serve is refused `invalid_request`, naming `Atomside-Version` and the versions we do.

Within a version we only add: new operations, new optional input fields, new output fields and new refusal codes. Read what you know and ignore the rest. Anything else (a field removed or renamed, a meaning changed) is a new version.

## Versions

| Version | Released | What changed |
|---|---|---|
| `2026-11-15` | 2026-11-15 | The first dated version: quote, approve, execute, prove, as documented. |
| `2026-11-16` | 2026-11-16 | Additive: one letter to several people. quote_letter takes a list in to (up to 50, with fields, purpose and all_or_none) and answers with a group quote; send_letter sends it as a group (grp_…) of ordinary letters; letter events carry group and n; a new event, group.settled; two new refusal codes, too_many_recipients and field_not_filled. A call with one recipient is unchanged. |
| `2026-11-17` | 2026-11-17 | Top up automatically: get_account gains credits.auto_top_up (state, when_below, adds, left_this_month, resets_at, next_possible_at, can_change and can_trigger always false, says, real) and one sentence in summary while it is on. A waiting_for_credit answer keeps its code, not_yet and retry not_needed, and gains details.auto_top_up (state, will_buy, next_possible_at, real); its say ends with what automatic top-up is doing and person.ask follows. A new webhook event, credits.bought, is sent for every pack, with automatic true or false. No tool buys credits. |
| `2026-11-24` | 2026-11-24 | Customers: the customers operations, letters_for, customer and link approvals on letters. Additive. New operations over REST, the CLI and the SDK, never MCP, for keys with the new customers:manage scope: create_customer, get_customer, list_customers, update_customer, set_customer_limits, pause_customer, resume_customer, request_customer_sender, confirm_customer_sender, resend_customer_sender_code, get_customer_usage, create_approval_link and close_customer. get_account gains letters_for (own, customers or null). quote_letter gains sender (name, of, verified; null in test mode before a sender is set). send_letter may answer customer_sender_unverified (not yet, the letter kept), customer_suspended, customer_closed or customer_limit_reached; when a person at the customer approves by link, its needs-approval answer has details.approval.by_link (the approval to pass to create_approval_link), also_emailed false and words that leave out the team page. get_letter and list_letters gain customer (ref and name, or null); an approval decided by link reads via link and by "{approver name or ref}, by a link" in get_letter (approval.decided_by) and wait_for_approval. On get_letter the approval gains approval.id (apr_…) and approval.by_link (while it waits and a person at the customer approves by link), and get_letter gains fixed_by; a letter held until its customer has a verified sender, or while its customer is suspended reads waiting_reason customer_sender or customer_suspended, with a next that says so. list_letters gains approval (id, status and by_link, or null). wait_for_approval gains approval, by_link and money (held, charged, returned and a sentence), and its charged is now what the ledger says, so it reads the price once the letter is posted. list_customers gains previous_cursor, for the page before. create_approval_link takes an Idempotency-Key: a retry with the same key gives the same link, and approval_link_gone once that link was used, revoked or ran out. Every letter event gains customer (ref and name, or null), as get_letter has it. customer_over_limit gains details.period (day or month). New webhook events: customer.sender_code_posted, customer.sender_verified, customer.sender_not_accepted, customer.suspended, customer.suspension_lifted, customer.closed, customer.data_deleted, usage.month_closed, capacity.day_closed and capacity.day_reopened. In live mode a key cannot hold both letters:send and customers:manage. |

A newer version that only adds, like the customers release, changes nothing for a key pinned to an older one except that the new fields and operations are there to read. The customer operations ([Sending for your customers](platforms.md)) are over REST, the CLI and the SDK only, never MCP.

The OpenAPI document at `https://api.atomside.com/v1/openapi.json` describes the newest version.
