Skip to content

Authentication

Every call to the API is made as a signed-in person, with that person’s permissions on each book.

Signing in

  • Passkey. One step, with the device’s own check (Face ID, Touch ID, a PIN). It counts as both factors.
  • Email and password, then an authenticator code when two-step sign-in is on. A password alone opens no session until the six-digit code is checked. Backup codes stand in for a lost authenticator.

Allmoni is open to everyone, and every account starts on the free plan. Anyone signs up in the web app with an email and a password.

Sessions

AppSends the session as
Web app A cookie: HttpOnly, SameSite=Strict, Secure
iPhone app Authorization: Bearer <token>, kept in the Keychain

A request carrying both a session cookie and an Authorization header is refused with AMBIGUOUS_CREDENTIALS (400).

  • A session ends after 12 hours without use, and 7 days after sign-in whatever its use.
  • Changing how you sign in (password, authenticator, passkeys, backup codes) needs a sign-in from the last 10 minutes. An older session is refused with SESSION_NOT_FRESH (403): sign in again.

Permissions

Each book has its members, each with a role:

RoleCan
OwnerEverything, including the book’s settings and members
EditorRead the book and change its money
ViewerRead the book

Signed out is UNAUTHENTICATED (401). A book you are not a member of is NOT_FOUND (404), never 403, so its existence stays private. An action your role does not allow is FORBIDDEN (403).

OAuth for MCP clients

An MCP client such as Claude connects to the MCP server with OAuth 2.1. You sign in to Allmoni, choose the books, and allow reading, or reading and changing.

  • Allowed clients only. A client is known by its Client ID Metadata Document: the URL of a JSON file it publishes. Only the clients Allmoni allows can connect; there is no dynamic registration.
  • PKCE with S256 on every authorization, and each code works once.
  • Tokens bound to the server. The resource is https://app.allmoni.com/mcp; a token for it works nowhere else.
  • Opaque tokens. An access token lives 1 hour. A refresh token lives 30 days and is replaced at each use; using an old one again ends the connection.
  • A recent sign-in. Allowing a client needs a sign-in from the last 10 minutes.
  • At most 10 live connections and tokens together, per person. Remove one in Settings → Connections, and it stops on its next call.

Personal access tokens

For your own agent or script. Create one in Settings → Connections with:

  • a name, to tell it apart;
  • the books it covers;
  • read, or read and write;
  • an expiry, from 1 to 365 days (30 by default).

The token, am_pat_…, is shown once. Allmoni keeps only its SHA-256 hash. Creating one needs a sign-in from the last 10 minutes, and you can revoke it at any time.

Authorization: Bearer am_pat_…

It works on /mcp (the MCP server) and /api (REST) only. /rpc and /auth refuse it.

Scopes

ScopeAllows
finance:readReading the books and their finances
finance:writeAlso changing the finances; includes reading

No scope reaches book settings, members, sign-in or connections.

What an agent can do

An agent, by OAuth or by token, acts as the person who connected it, narrowed to the books and scopes they granted, and never beyond that person’s role in each book.

  • A book outside the grant is NOT_FOUND, as if it did not exist.
  • A change without finance:write is refused: on /mcp with 403 insufficient_scope (the client can ask you for more), on /api with FORBIDDEN (403).

See where it all is

Every account, card, wallet and cash pile, in every currency, in one place.

Open the web app