Atomside docsThis page as Markdown

Get account: get_account

Call this first, before any work. Says whether this is test or live mode, who your letters are sent as, what this key may do, what is left of each limit, whether the next letter goes ahead or waits for a person, and when the post goes. Start with summary. credits.auto_top_up says whether a pack may be bought automatically: plan on the balance; no tool buys credits. Free, read only, and never counts against a limit.

MCP toolget_account
RESTGET /v1/account
CLIatomside get-account
Key needsRead (letters:read)
Changes anythingNo. It only reads.
Idempotency keyNot used.

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 https://api.atomside.com/v1/account \
  -H "Authorization: Bearer $ATOMSIDE_API_KEY"

MCP:

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_account",
    "arguments": {}
  }
}

CLI:

atomside get-account

The answer (HTTP 200; over MCP, the same JSON is the result's structuredContent):

{
  "as_of": "2026-11-16T09:30:00.000Z",
  "summary": "Test mode: nothing I send is printed, posted or charged. I send as Example Lettings Ltd, which I cannot change. I have 200 credits (£20.00) to spend and no daily limit. Letters inside the limits go ahead. A letter over a limit waits for a person. Approved by 16:00: posted today, Mon 16 Nov.",
  "verdict": {
    "can_send_now": true,
    "next_letter": "goes_ahead",
    "reasons": [],
    "says": "A one-sheet letter to an address you know goes ahead."
  },
  "mode": {
    "name": "test",
    "real": false,
    "says": "Nothing is printed, posted or charged."
  },
  "agent": {
    "name": "lettings-helper",
    "key": "as_test_…41ka",
    "connected_through": null,
    "workspace": "Residential lettings",
    "may": [
      "read",
      "quote",
      "send",
      "cancel"
    ]
  },
  "sender": {
    "name": "Example Lettings Ltd",
    "verified": true,
    "can_change": false,
    "says": "You send as Example Lettings Ltd. You cannot change the sender."
  },
  "credits": {
    "balance": {
      "credits": 200,
      "gbp": "20.00"
    },
    "first_sheet": {
      "credits": 15,
      "gbp": "1.50"
    },
    "extra_sheet": {
      "credits": 2,
      "gbp": "0.20"
    },
    "typical_letter": {
      "credits": 15,
      "gbp": "1.50"
    },
    "auto_top_up": {
      "state": "off",
      "real": false,
      "when_below": null,
      "adds": null,
      "left_this_month": null,
      "resets_at": null,
      "next_possible_at": null,
      "can_change": false,
      "can_trigger": false,
      "says": "Nothing is bought automatically. When credit runs out, letters wait for a person to buy more."
    },
    "says": "200 credits (£20.00) can be spent. A one-sheet letter is 15 credits (£1.50)."
  },
  "limits": {
    "per_day": {
      "limit": null,
      "used": {
        "credits": 0,
        "gbp": "0.00"
      },
      "left": null,
      "resets_at": "2026-11-17T00:00:00.000Z"
    },
    "per_month": {
      "limit": null,
      "used": {
        "credits": 0,
        "gbp": "0.00"
      },
      "left": null,
      "resets_at": "2026-12-01T00:00:00.000Z"
    },
    "per_letter": {
      "limit": null,
      "max_sheets": 5
    },
    "per_recipient": null,
    "says": "There is no daily limit."
  },
  "approval": {
    "mode": "ask_over_limits",
    "on_send": {
      "known_address": "goes_ahead",
      "new_address": "goes_ahead",
      "over_a_limit": "waits_for_approval"
    },
    "approver": "a person in this workspace who can approve",
    "usually_within_hours": null,
    "expires_after_hours": 48,
    "says": "Letters inside the limits go ahead. A letter over a limit waits for a person. Undecided after 48 hours: nothing is sent."
  },
  "sending": {
    "state": "open",
    "by": null,
    "since_at": null,
    "says": "Sending is open."
  },
  "posting": {
    "cutoff_at": "2026-11-16T16:00:00.000Z",
    "posts_on_if_by_cutoff": "2026-11-16",
    "posts_on_if_after": "2026-11-17",
    "capacity_today": "open",
    "says": "Approved by 16:00: posted today, Mon 16 Nov."
  },
  "post_on": {
    "earliest": "2026-11-16",
    "latest": "2027-01-15",
    "not_posting": [
      {
        "day": "2026-12-25",
        "why": "bank_holiday"
      },
      {
        "day": "2026-12-28",
        "why": "bank_holiday"
      },
      {
        "day": "2027-01-01",
        "why": "bank_holiday"
      }
    ],
    "says": "A letter can be posted on a later day: pass post_on, a posting day from Mon 16 Nov to Fri 15 Jan. We post Monday to Friday, not on bank holidays in England."
  },
  "letters": {
    "countries": [
      "GB"
    ],
    "max_sheets": 5,
    "max_pages": 10,
    "file_types": [
      "pdf",
      "docx",
      "odt",
      "rtf",
      "txt",
      "md",
      "html",
      "jpg",
      "png"
    ],
    "cannot": [
      "outside_uk",
      "signed_for",
      "change_sender"
    ],
    "says": "UK addresses only. Up to 5 sheets. No signed-for post."
  },
  "groups": {
    "max_recipients": 1,
    "same_letter_addresses_left_today": 10,
    "asks_above": 10,
    "atomside_reads_above": 20,
    "new_account_max": null,
    "print_room_today": {
      "room": null
    },
    "says": "You send to one person at a time. Your person can let you send one letter to 10 or 50 people at once. The same letter to more than 10 addresses in a day always asks a person: 10 left today."
  },
  "claim": null,
  "recheck_after_at": "2026-11-16T09:45:00.000Z",
  "letters_for": null,
  "next": "Call quote_letter for each letter. A quote is free."
}

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": {},
  "additionalProperties": false
}

Output

{
  "type": "object",
  "properties": {
    "as_of": {
      "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))$"
    },
    "summary": {
      "type": "string",
      "description": "In the first person, so your agent can repeat it to you. Read this first."
    },
    "verdict": {
      "type": "object",
      "properties": {
        "can_send_now": {
          "type": "boolean"
        },
        "next_letter": {
          "type": "string",
          "enum": [
            "goes_ahead",
            "waits_for_approval",
            "refused"
          ],
          "description": "What happens to a one-sheet letter to a known address."
        },
        "reasons": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Refusal codes behind the verdict."
        },
        "says": {
          "type": "string",
          "description": "A sentence to repeat to your person as it stands."
        }
      },
      "required": [
        "can_send_now",
        "next_letter",
        "reasons",
        "says"
      ],
      "additionalProperties": false
    },
    "mode": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "enum": [
            "test",
            "live"
          ]
        },
        "real": {
          "type": "boolean",
          "description": "True only in live mode. The one field never to get wrong."
        },
        "says": {
          "type": "string",
          "description": "A sentence to repeat to your person as it stands."
        }
      },
      "required": [
        "name",
        "real",
        "says"
      ],
      "additionalProperties": false
    },
    "agent": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "key": {
          "description": "Masked. Null for a connected agent.",
          "type": [
            "string",
            "null"
          ]
        },
        "connected_through": {
          "description": "For an agent an assistant connected with no key: the app, as the person saw it named on the consent screen. Null for a key.",
          "type": [
            "string",
            "null"
          ]
        },
        "workspace": {
          "type": "string"
        },
        "may": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "read",
              "quote",
              "send",
              "cancel"
            ]
          }
        }
      },
      "required": [
        "name",
        "key",
        "connected_through",
        "workspace",
        "may"
      ],
      "additionalProperties": false
    },
    "sender": {
      "type": "object",
      "properties": {
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "verified": {
          "type": "boolean"
        },
        "can_change": {
          "type": "boolean",
          "const": false
        },
        "says": {
          "type": "string",
          "description": "A sentence to repeat to your person as it stands."
        }
      },
      "required": [
        "name",
        "verified",
        "can_change",
        "says"
      ],
      "additionalProperties": false
    },
    "credits": {
      "type": "object",
      "properties": {
        "balance": {
          "type": "object",
          "properties": {
            "credits": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991,
              "description": "Whole credits. 1 credit is 10p."
            },
            "gbp": {
              "type": "string",
              "pattern": "^-?\\d+\\.\\d{2}$",
              "description": "The same amount in pounds, ex VAT, as a decimal string."
            }
          },
          "required": [
            "credits",
            "gbp"
          ],
          "additionalProperties": false,
          "description": "An amount in credits, with pounds beside it."
        },
        "first_sheet": {
          "type": "object",
          "properties": {
            "credits": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991,
              "description": "Whole credits. 1 credit is 10p."
            },
            "gbp": {
              "type": "string",
              "pattern": "^-?\\d+\\.\\d{2}$",
              "description": "The same amount in pounds, ex VAT, as a decimal string."
            }
          },
          "required": [
            "credits",
            "gbp"
          ],
          "additionalProperties": false,
          "description": "An amount in credits, with pounds beside it."
        },
        "extra_sheet": {
          "type": "object",
          "properties": {
            "credits": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991,
              "description": "Whole credits. 1 credit is 10p."
            },
            "gbp": {
              "type": "string",
              "pattern": "^-?\\d+\\.\\d{2}$",
              "description": "The same amount in pounds, ex VAT, as a decimal string."
            }
          },
          "required": [
            "credits",
            "gbp"
          ],
          "additionalProperties": false,
          "description": "An amount in credits, with pounds beside it."
        },
        "typical_letter": {
          "type": "object",
          "properties": {
            "credits": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991,
              "description": "Whole credits. 1 credit is 10p."
            },
            "gbp": {
              "type": "string",
              "pattern": "^-?\\d+\\.\\d{2}$",
              "description": "The same amount in pounds, ex VAT, as a decimal string."
            }
          },
          "required": [
            "credits",
            "gbp"
          ],
          "additionalProperties": false,
          "description": "An amount in credits, with pounds beside it."
        },
        "auto_top_up": {
          "type": "object",
          "properties": {
            "state": {
              "type": "string",
              "enum": [
                "off",
                "on",
                "buying",
                "one_in_24_hours",
                "ceiling_reached",
                "card_declined",
                "needs_bank_approval",
                "held"
              ],
              "description": "off, on, buying, one_in_24_hours, ceiling_reached, card_declined, needs_bank_approval or held."
            },
            "real": {
              "type": "boolean",
              "description": "False in test mode: a rehearsal with free test credits."
            },
            "when_below": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "credits": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "description": "Whole credits. 1 credit is 10p."
                    },
                    "gbp": {
                      "type": "string",
                      "pattern": "^-?\\d+\\.\\d{2}$",
                      "description": "The same amount in pounds, ex VAT, as a decimal string."
                    }
                  },
                  "required": [
                    "credits",
                    "gbp"
                  ],
                  "additionalProperties": false,
                  "description": "An amount in credits, with pounds beside it."
                },
                {
                  "type": "null"
                }
              ],
              "description": "A pack may be bought when fewer than this can be spent."
            },
            "adds": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "credits": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "description": "Whole credits. 1 credit is 10p."
                    },
                    "gbp": {
                      "type": "string",
                      "pattern": "^-?\\d+\\.\\d{2}$",
                      "description": "The same amount in pounds, ex VAT, as a decimal string."
                    }
                  },
                  "required": [
                    "credits",
                    "gbp"
                  ],
                  "additionalProperties": false,
                  "description": "An amount in credits, with pounds beside it."
                },
                {
                  "type": "null"
                }
              ],
              "description": "The credits one automatic purchase adds."
            },
            "left_this_month": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "purchases": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "credits": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "gbp": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "purchases",
                    "credits",
                    "gbp"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ],
              "description": "Automatic purchases left this calendar month (UK time), and the credits they add."
            },
            "resets_at": {
              "anyOf": [
                {
                  "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))$"
                },
                {
                  "type": "null"
                }
              ],
              "description": "When the month starts again."
            },
            "next_possible_at": {
              "anyOf": [
                {
                  "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))$"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The earliest the next purchase can happen, when something stops it now."
            },
            "can_change": {
              "type": "boolean",
              "const": false,
              "description": "Always false: no agent can change it."
            },
            "can_trigger": {
              "type": "boolean",
              "const": false,
              "description": "Always false: no agent can make it buy."
            },
            "says": {
              "type": "string",
              "description": "A sentence to repeat to your person as it stands."
            }
          },
          "required": [
            "state",
            "real",
            "when_below",
            "adds",
            "left_this_month",
            "resets_at",
            "next_possible_at",
            "can_change",
            "can_trigger",
            "says"
          ],
          "additionalProperties": false,
          "description": "Whether a pack may be bought automatically when credit runs low. \"May\", never \"will\": plan on the balance."
        },
        "says": {
          "type": "string",
          "description": "A sentence to repeat to your person as it stands."
        }
      },
      "required": [
        "balance",
        "first_sheet",
        "extra_sheet",
        "typical_letter",
        "auto_top_up",
        "says"
      ],
      "additionalProperties": false
    },
    "limits": {
      "type": "object",
      "properties": {
        "per_day": {
          "type": "object",
          "properties": {
            "limit": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "credits": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "description": "Whole credits. 1 credit is 10p."
                    },
                    "gbp": {
                      "type": "string",
                      "pattern": "^-?\\d+\\.\\d{2}$",
                      "description": "The same amount in pounds, ex VAT, as a decimal string."
                    }
                  },
                  "required": [
                    "credits",
                    "gbp"
                  ],
                  "additionalProperties": false,
                  "description": "An amount in credits, with pounds beside it."
                },
                {
                  "type": "null"
                }
              ],
              "description": "Null when there is no limit."
            },
            "used": {
              "type": "object",
              "properties": {
                "credits": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991,
                  "description": "Whole credits. 1 credit is 10p."
                },
                "gbp": {
                  "type": "string",
                  "pattern": "^-?\\d+\\.\\d{2}$",
                  "description": "The same amount in pounds, ex VAT, as a decimal string."
                }
              },
              "required": [
                "credits",
                "gbp"
              ],
              "additionalProperties": false,
              "description": "An amount in credits, with pounds beside it."
            },
            "left": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "credits": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "description": "Whole credits. 1 credit is 10p."
                    },
                    "gbp": {
                      "type": "string",
                      "pattern": "^-?\\d+\\.\\d{2}$",
                      "description": "The same amount in pounds, ex VAT, as a decimal string."
                    }
                  },
                  "required": [
                    "credits",
                    "gbp"
                  ],
                  "additionalProperties": false,
                  "description": "An amount in credits, with pounds beside it."
                },
                {
                  "type": "null"
                }
              ],
              "description": "Worked out for you. Null when there is no limit."
            },
            "resets_at": {
              "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))$"
            }
          },
          "required": [
            "limit",
            "used",
            "left",
            "resets_at"
          ],
          "additionalProperties": false
        },
        "per_month": {
          "type": "object",
          "properties": {
            "limit": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "credits": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "description": "Whole credits. 1 credit is 10p."
                    },
                    "gbp": {
                      "type": "string",
                      "pattern": "^-?\\d+\\.\\d{2}$",
                      "description": "The same amount in pounds, ex VAT, as a decimal string."
                    }
                  },
                  "required": [
                    "credits",
                    "gbp"
                  ],
                  "additionalProperties": false,
                  "description": "An amount in credits, with pounds beside it."
                },
                {
                  "type": "null"
                }
              ],
              "description": "Null when there is no limit."
            },
            "used": {
              "type": "object",
              "properties": {
                "credits": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991,
                  "description": "Whole credits. 1 credit is 10p."
                },
                "gbp": {
                  "type": "string",
                  "pattern": "^-?\\d+\\.\\d{2}$",
                  "description": "The same amount in pounds, ex VAT, as a decimal string."
                }
              },
              "required": [
                "credits",
                "gbp"
              ],
              "additionalProperties": false,
              "description": "An amount in credits, with pounds beside it."
            },
            "left": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "credits": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "description": "Whole credits. 1 credit is 10p."
                    },
                    "gbp": {
                      "type": "string",
                      "pattern": "^-?\\d+\\.\\d{2}$",
                      "description": "The same amount in pounds, ex VAT, as a decimal string."
                    }
                  },
                  "required": [
                    "credits",
                    "gbp"
                  ],
                  "additionalProperties": false,
                  "description": "An amount in credits, with pounds beside it."
                },
                {
                  "type": "null"
                }
              ],
              "description": "Worked out for you. Null when there is no limit."
            },
            "resets_at": {
              "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))$"
            }
          },
          "required": [
            "limit",
            "used",
            "left",
            "resets_at"
          ],
          "additionalProperties": false
        },
        "per_letter": {
          "type": "object",
          "properties": {
            "limit": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "credits": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "description": "Whole credits. 1 credit is 10p."
                    },
                    "gbp": {
                      "type": "string",
                      "pattern": "^-?\\d+\\.\\d{2}$",
                      "description": "The same amount in pounds, ex VAT, as a decimal string."
                    }
                  },
                  "required": [
                    "credits",
                    "gbp"
                  ],
                  "additionalProperties": false,
                  "description": "An amount in credits, with pounds beside it."
                },
                {
                  "type": "null"
                }
              ]
            },
            "max_sheets": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            }
          },
          "required": [
            "limit",
            "max_sheets"
          ],
          "additionalProperties": false
        },
        "per_recipient": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "letters": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "per_days": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "letters",
                "per_days"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "says": {
          "type": "string",
          "description": "A sentence to repeat to your person as it stands."
        }
      },
      "required": [
        "per_day",
        "per_month",
        "per_letter",
        "per_recipient",
        "says"
      ],
      "additionalProperties": false
    },
    "approval": {
      "type": "object",
      "properties": {
        "mode": {
          "type": "string",
          "enum": [
            "ask_every_time",
            "ask_for_new_addresses",
            "ask_over_limits",
            "autopilot"
          ]
        },
        "on_send": {
          "type": "object",
          "properties": {
            "known_address": {
              "type": "string",
              "enum": [
                "goes_ahead",
                "waits_for_approval",
                "refused"
              ]
            },
            "new_address": {
              "type": "string",
              "enum": [
                "goes_ahead",
                "waits_for_approval",
                "refused"
              ]
            },
            "over_a_limit": {
              "type": "string",
              "enum": [
                "goes_ahead",
                "waits_for_approval",
                "refused"
              ]
            }
          },
          "required": [
            "known_address",
            "new_address",
            "over_a_limit"
          ],
          "additionalProperties": false
        },
        "approver": {
          "type": "string",
          "description": "A role, never a name."
        },
        "usually_within_hours": {
          "description": "Null until there is a month of history.",
          "type": [
            "number",
            "null"
          ]
        },
        "expires_after_hours": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "says": {
          "type": "string",
          "description": "A sentence to repeat to your person as it stands."
        }
      },
      "required": [
        "mode",
        "on_send",
        "approver",
        "usually_within_hours",
        "expires_after_hours",
        "says"
      ],
      "additionalProperties": false
    },
    "sending": {
      "type": "object",
      "properties": {
        "state": {
          "type": "string",
          "enum": [
            "open",
            "paused",
            "stopped"
          ]
        },
        "by": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "safeguard",
                "a_person",
                "stop_all"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "since_at": {
          "anyOf": [
            {
              "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))$"
            },
            {
              "type": "null"
            }
          ]
        },
        "says": {
          "type": "string",
          "description": "A sentence to repeat to your person as it stands."
        }
      },
      "required": [
        "state",
        "by",
        "since_at",
        "says"
      ],
      "additionalProperties": false
    },
    "posting": {
      "type": "object",
      "properties": {
        "cutoff_at": {
          "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))$"
        },
        "posts_on_if_by_cutoff": {
          "type": "string",
          "format": "date",
          "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])))$"
        },
        "posts_on_if_after": {
          "type": "string",
          "format": "date",
          "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])))$"
        },
        "capacity_today": {
          "type": "string",
          "enum": [
            "open",
            "nearly_full",
            "full"
          ]
        },
        "says": {
          "type": "string",
          "description": "A sentence to repeat to your person as it stands."
        }
      },
      "required": [
        "cutoff_at",
        "posts_on_if_by_cutoff",
        "posts_on_if_after",
        "capacity_today",
        "says"
      ],
      "additionalProperties": false
    },
    "post_on": {
      "type": "object",
      "properties": {
        "earliest": {
          "type": "string",
          "format": "date",
          "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])))$",
          "description": "The first day quote_letter takes as post_on now."
        },
        "latest": {
          "type": "string",
          "format": "date",
          "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])))$",
          "description": "The last day it takes now."
        },
        "not_posting": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "day": {
                "type": "string",
                "format": "date",
                "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])))$"
              },
              "why": {
                "type": "string",
                "enum": [
                  "bank_holiday",
                  "day_away",
                  "day_full"
                ]
              }
            },
            "required": [
              "day",
              "why"
            ],
            "additionalProperties": false
          },
          "description": "Weekdays between them that cannot be asked for: bank holidays, days the print room is away, days full for letters sent ahead. We never post at weekends."
        },
        "says": {
          "type": "string",
          "description": "A sentence to repeat to your person as it stands."
        }
      },
      "required": [
        "earliest",
        "latest",
        "not_posting",
        "says"
      ],
      "additionalProperties": false,
      "description": "Send on a later date: the posting days post_on can be now."
    },
    "letters": {
      "type": "object",
      "properties": {
        "countries": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "max_sheets": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "max_pages": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "file_types": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "cannot": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "says": {
          "type": "string",
          "description": "A sentence to repeat to your person as it stands."
        }
      },
      "required": [
        "countries",
        "max_sheets",
        "max_pages",
        "file_types",
        "cannot",
        "says"
      ],
      "additionalProperties": false
    },
    "groups": {
      "type": "object",
      "properties": {
        "max_recipients": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991,
          "description": "The most people one send of yours may go to: 1, 10 or 50. Your person sets it."
        },
        "same_letter_addresses_left_today": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991,
          "description": "Addresses the same letter can still go to today before a person is asked, counted for the letter you have sent most today. A new letter starts at asks_above."
        },
        "asks_above": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991,
          "description": "The same letter to more addresses than this in a day always asks a person."
        },
        "atomside_reads_above": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991,
          "description": "A live group larger than this is read by Atomside before it prints."
        },
        "new_account_max": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ],
          "description": "While we check a new live account's first letters, the most in one send. Null otherwise."
        },
        "print_room_today": {
          "type": "object",
          "properties": {
            "room": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ],
              "description": "Letters the next print run can still take. A group prints together. Null in test mode: test letters never fill it."
            }
          },
          "required": [
            "room"
          ],
          "additionalProperties": false
        },
        "says": {
          "type": "string",
          "description": "A sentence to repeat to your person as it stands."
        }
      },
      "required": [
        "max_recipients",
        "same_letter_addresses_left_today",
        "asks_above",
        "atomside_reads_above",
        "new_account_max",
        "print_room_today",
        "says"
      ],
      "additionalProperties": false,
      "description": "One letter to several people: what a list in quote_letter may hold today."
    },
    "claim": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "status": {
              "type": "string",
              "enum": [
                "unclaimed",
                "claimed"
              ]
            },
            "expires_at": {
              "anyOf": [
                {
                  "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))$"
                },
                {
                  "type": "null"
                }
              ],
              "description": "When an unclaimed account is deleted."
            },
            "expires_soon": {
              "type": "boolean",
              "description": "True in its last 7 days: remind your person."
            },
            "says": {
              "type": "string",
              "description": "A sentence to repeat to your person as it stands."
            }
          },
          "required": [
            "status",
            "expires_at",
            "expires_soon",
            "says"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ],
      "description": "For an account made by start_account. Null for any other."
    },
    "recheck_after_at": {
      "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))$",
      "description": "When this answer goes stale."
    },
    "letters_for": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "own",
            "customers"
          ]
        },
        {
          "type": "null"
        }
      ],
      "description": "Whose letters the organisation sends: its own, or its customers' (on_behalf_of). Null until someone says; treated as own."
    },
    "next": {
      "type": "string",
      "description": "What to call next."
    }
  },
  "required": [
    "as_of",
    "summary",
    "verdict",
    "mode",
    "agent",
    "sender",
    "credits",
    "limits",
    "approval",
    "sending",
    "posting",
    "post_on",
    "letters",
    "groups",
    "claim",
    "recheck_after_at",
    "letters_for",
    "next"
  ],
  "additionalProperties": false
}

Refusals

Every refusal has the same shape. Branch on code, answer and retry; repeat say to your person.

CodeAnswerRetryHTTPWhat to do next
key_missingnoafter_fix401Send the key as "Authorization: Bearer as_test_…". Ask your person if you have none.
key_not_validnonever401Ask your person for a new key. There is no link: we cannot say whose it was.
scope_missingnoafter_person403Ask your person to give the key that permission.
invalid_requestnoafter_fix400Fix the field named in details.field. The same idempotency key is fine.
rate_limitednoat_time429Wait. The same idempotency key never sends twice.
try_again_shortlynoat_time503Try again after retry_after with the same idempotency key.
account_expirednonever401Start again with start_account if your person still wants this.
connection_endednoafter_person401Tell your person. To carry on, they connect Atomside again in your assistant.
not_foundnoafter_fix404Check the name against the tool list or /v1/openapi.json.