Atomside docsThis page as Markdown

List letters: list_letters

Finds letters by recipient, status, date, your reference, label or on_behalf_of, newest first. Use it to check "did I already write to them?" before you quote. group lists the letters of one group. Returns up to limit letters and next_cursor for the next page. Free.

MCP toollist_letters
RESTGET /v1/letters
CLIatomside list-letters
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/letters?status=queued \
  -H "Authorization: Bearer $ATOMSIDE_API_KEY"

MCP:

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

CLI:

atomside list-letters \
  --status queued

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

{
  "letters": [
    {
      "letter": "ltr_example000000003",
      "status": "queued",
      "group": null,
      "n": null,
      "to": {
        "name": "Ms A. Sample",
        "postcode": "XX1 1XX"
      },
      "price": {
        "credits": 15,
        "gbp": "1.50"
      },
      "reference": null,
      "on_behalf_of": null,
      "customer": null,
      "approval": null,
      "labels": [],
      "agent": "lettings-helper",
      "created_at": "2026-11-16T09:30:00.000Z",
      "updated_at": "2026-11-16T09:30:00.000Z",
      "post_on": null,
      "posts_on": "2026-11-16",
      "scheduled": false
    }
  ],
  "next_cursor": null
}

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": {
    "to": {
      "description": "Part of the recipient name, or their postcode.",
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "status": {
      "minItems": 1,
      "maxItems": 13,
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "quoted",
          "waiting_for_approval",
          "queued",
          "printing",
          "printed",
          "posted",
          "on_record",
          "declined",
          "lapsed",
          "cancelled",
          "held",
          "failed",
          "returned"
        ]
      }
    },
    "reference": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "label": {
      "type": "string",
      "minLength": 1,
      "maxLength": 50
    },
    "on_behalf_of": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "group": {
      "description": "A group, grp_…: only its letters. Each carries n, its place in your list.",
      "type": "string",
      "minLength": 1,
      "maxLength": 60
    },
    "since": {
      "description": "Made at or after this time.",
      "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))$"
    },
    "until": {
      "description": "Made before this time.",
      "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))$"
    },
    "scheduled": {
      "description": "true: only letters asked for a later day that still wait to go (\"is a letter to them already waiting?\"). false: only the others.",
      "type": "boolean"
    },
    "posts_on_from": {
      "description": "Posting day (booked, or asked for) on or 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])))$"
    },
    "posts_on_to": {
      "description": "Posting day (booked, or asked for) on or before.",
      "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])))$"
    },
    "limit": {
      "default": 20,
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "cursor": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    }
  },
  "additionalProperties": false
}

Output

{
  "type": "object",
  "properties": {
    "letters": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "letter": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "quoted",
              "waiting_for_approval",
              "queued",
              "printing",
              "printed",
              "posted",
              "on_record",
              "declined",
              "lapsed",
              "cancelled",
              "held",
              "failed",
              "returned"
            ]
          },
          "group": {
            "description": "Its group, grp_…, if it went to several people at once.",
            "type": [
              "string",
              "null"
            ]
          },
          "n": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ],
            "description": "Its place in the group's list. Null outside a group."
          },
          "to": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "postcode": {
                "type": "string"
              }
            },
            "required": [
              "name",
              "postcode"
            ],
            "additionalProperties": false
          },
          "price": {
            "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."
          },
          "reference": {
            "type": [
              "string",
              "null"
            ]
          },
          "on_behalf_of": {
            "type": [
              "string",
              "null"
            ]
          },
          "customer": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "ref": {
                    "type": "string"
                  },
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "ref",
                  "name"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ],
            "description": "The customer it is for, by ref and name now, or null for your own letter."
          },
          "approval": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "The approval, apr_…."
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "waiting",
                      "approved",
                      "declined",
                      "lapsed",
                      "withdrawn"
                    ]
                  },
                  "by_link": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "approval": {
                            "type": "string",
                            "description": "The approval, apr_…, to pass to create_approval_link."
                          },
                          "make_with": {
                            "type": "string",
                            "const": "create_approval_link"
                          }
                        },
                        "required": [
                          "approval",
                          "make_with"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "While it waits and a person at the letter's customer approves it, by a link you make: the approval to make it for. Null otherwise."
                  }
                },
                "required": [
                  "id",
                  "status",
                  "by_link"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ],
            "description": "Its latest approval, as on get_letter, or null if it never asked anyone."
          },
          "labels": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "agent": {
            "type": "string"
          },
          "created_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))$"
          },
          "updated_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))$"
          },
          "post_on": {
            "anyOf": [
              {
                "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])))$"
              },
              {
                "type": "null"
              }
            ],
            "description": "The posting day asked for, or null."
          },
          "posts_on": {
            "anyOf": [
              {
                "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])))$"
              },
              {
                "type": "null"
              }
            ],
            "description": "The posting day booked, once queued."
          },
          "scheduled": {
            "type": "boolean",
            "description": "True while it waits to go on the day asked for."
          }
        },
        "required": [
          "letter",
          "status",
          "group",
          "n",
          "to",
          "price",
          "reference",
          "on_behalf_of",
          "customer",
          "approval",
          "labels",
          "agent",
          "created_at",
          "updated_at",
          "post_on",
          "posts_on",
          "scheduled"
        ],
        "additionalProperties": false
      }
    },
    "next_cursor": {
      "description": "Pass as cursor for the next page. Null at the end.",
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "letters",
    "next_cursor"
  ],
  "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.