Atomside docsThis page as Markdown

Approvals and wait_for_approval

A person approves a letter through a link outside the chat, signed in. Your agent never approves its own letter, and an assistant's own "allow this tool" prompt is not an approval.

When a letter waits

The agent's approval mode decides, together with its limits:

ModeWhat happens
every_letterA person approves every letter. New agents start here.
over_limitsLetters inside the limits go ahead; anything over a limit waits for a person.
autopilotEvery letter goes ahead; a letter over a limit is refused, not queued.

"Ask for new addresses" makes the first letter to an address the workspace has never written to wait as well. A possible duplicate always waits, even on autopilot. get_account says which applies now (approval.on_send).

What the agent gets

send_letter answers "answer": "not_yet", code needs_approval, with:

Do not send it again. The letter exists; a second send would be a second letter.

Some assistants can show a person a link and ask before opening it (MCP "URL elicitation", protocol revision 2026-07-28). When a call to send_letter or wait_for_approval over MCP says it supports this (elicitation.url in the client capabilities it sends with the call), we ask the assistant to show the approval link, with a few plain words about the letter, before the tool answers. The assistant shows the full address and asks the person whether to open it; nothing opens without their say-so.

Either way the answer is the same as above, with the link in it. The assistant retries the call by itself after asking, and that retry answers with the same letter: send_letter replays it under your idempotency key, so nothing is sent twice. The first line of the text then says whether the person chose to open the link. If they did not, show them details.show_to_person as usual. Assistants that do not support it, and older MCP clients, get the link in the answer only, as before.

Opening the link still needs an approver who is signed in, so the link on its own approves nothing.

Waiting

curl "https://api.atomside.com/v1/letters/ltr_…/approval?timeout_seconds=50" -H "Authorization: Bearer $ATOMSIDE_API_KEY"

wait_for_approval holds the call for up to 50 seconds and returns as soon as a person decides:

statusMeansDo
still_waitingNobody has decided yet.Call again, or stop and tell your person you are waiting.
approvedA person said yes. The letter is queued.Carry on.
declinedA person said no. note is their reason, word for word.Change only what the note asks, then quote again. If there is no note, ask your person. Never resend the same letter.
lapsedNobody decided before the quote ran out (48 hours). Held credits went back.Quote again once and pass on the new link. Then stop.
not_waitingIt never needed a person, or no longer waits.Read it with get_letter.

A letter for a later day

A letter sent with post_on asks for approval at send, as any letter does; the approver sees the posting day beside the price, and the email says "to post" that day. The approval lapses after 48 hours or at the cut-off on the posting day, whichever comes first: a letter for a day that has gone is never approved into a later one. needs_approval names the day, and approval_expired says nothing will be posted on it.

The place in the day's print run is booked when the letter is approved. If the day filled while it waited, the approver is shown the next posting day with room before they approve, the letter is booked on that day, and letter.posting_moved says so (reason: "day_full_at_approval").

The approver is also emailed the link. A test letter can be decided by advancing it (advance_test_letter), or by the TEST postcodes: see Test mode.

A group

When a group waits (needs_approval with details.group), the person decides on the whole list at once, through one link. They may approve some letters and decline the rest, each declined letter with its own note, and they confirm that everyone on the list already deals with the sender. The same letter to more than 10 addresses in a day always asks a person, autopilot included (reason: same_letter_to_many).

Pass the group to wait_for_approval (letter: "grp_…"). It waits while any letter waits, then answers decided with approved (how many) and declined (each letter with its note), or lapsed or withdrawn. Tell your person the declined letters by name. Never send them again unless asked. See One letter to several people.