# Mail > An email client for accounting firms, with automation. A firm connects the client mailboxes it works in once; staff and AI agents then read, label, assign and reply from them through the app, the API or the fob-mail CLI. Every page below is raw Markdown, for LLMs and AI agents. - [Overview](https://mail.finopsbricks.com/docs/md/index): Welcome to the documentation ## Product Guide - [Quick Start](https://mail.finopsbricks.com/docs/md/guide/quick-start): Get up and running quickly ## CLI - [fob-mail CLI](https://mail.finopsbricks.com/docs/md/cli): Install fob-mail, the CLI and Node.js client for Mail. Read, label, assign and reply to a firm's client mailboxes from the terminal or an AI agent. - [Setup](https://mail.finopsbricks.com/docs/md/cli/setup): Create a Mail API key, add it to fob-mail as a profile, and switch between firms. - [Command Reference](https://mail.finopsbricks.com/docs/md/cli/commands): Every fob-mail command and flag, for mailboxes, threads, messages, attachments, labels and profiles. - [Use with AI agents](https://mail.finopsbricks.com/docs/md/cli/ai-agents): Let Claude Code, Cursor or Codex read, label and reply to your firm's client mail with fob-mail, with a paste-in instructions block and a read-only key. - [Troubleshooting](https://mail.finopsbricks.com/docs/md/cli/troubleshooting): The fob-mail errors you are most likely to see, each with its cause and the fix. ## API Reference - [Authentication](https://mail.finopsbricks.com/docs/md/api/authentication): API keys for Mail, their permission presets, and limiting a key to some mailboxes - [Error Codes](https://mail.finopsbricks.com/docs/md/api/errors): The error envelope and every error code Mail's API returns - [Pagination & Filtering](https://mail.finopsbricks.com/docs/md/api/pagination): Paging, filtering by date and change time, and picking fields in Mail's list endpoints - [LLM Access](https://mail.finopsbricks.com/docs/md/api/llm-access): How LLMs and AI agents can programmatically access API documentation via raw markdown endpoints - [Who Am I](https://mail.finopsbricks.com/docs/md/api/endpoints/whoami): The firm, key, permissions and mailboxes behind the API key making the call ### Mailboxes - [List Mailboxes](https://mail.finopsbricks.com/docs/md/api/endpoints/mailboxes/list): The client mailboxes this API key may use, with their connection status - [Get Mailbox](https://mail.finopsbricks.com/docs/md/api/endpoints/mailboxes/get): One client mailbox with its connection status ### Threads - [List Threads](https://mail.finopsbricks.com/docs/md/api/endpoints/threads/list): Threads in the key's mailboxes, filtered by mailbox, status, assignee, label, sender, date or change time - [Get Thread](https://mail.finopsbricks.com/docs/md/api/endpoints/threads/get): One thread with its mailbox, messages, attachments and labels - [Update Thread](https://mail.finopsbricks.com/docs/md/api/endpoints/threads/update): Set a thread's status and assignee, and add or remove labels - [Reply to a Thread](https://mail.finopsbricks.com/docs/md/api/endpoints/threads/reply): Reply from the client's mailbox, safely retryable with an idempotency key ### Messages - [List Messages](https://mail.finopsbricks.com/docs/md/api/endpoints/messages/list): Messages across the key's mailboxes, for reading new mail in order or finding one by Message-ID - [Get Message](https://mail.finopsbricks.com/docs/md/api/endpoints/messages/get): One message with its headers, bodies and attachments - [Send a Message](https://mail.finopsbricks.com/docs/md/api/endpoints/messages/send): Start a new thread from a client's mailbox, safely retryable with an idempotency key - [Download Raw Message](https://mail.finopsbricks.com/docs/md/api/endpoints/messages/raw): The stored RFC 822 source of a message, as an .eml file - [Download Attachment](https://mail.finopsbricks.com/docs/md/api/endpoints/attachments/content): An attachment's content, read from the stored message ### Labels - [List Labels](https://mail.finopsbricks.com/docs/md/api/endpoints/labels/list): The firm's labels, which threads are labelled from - [Create Label](https://mail.finopsbricks.com/docs/md/api/endpoints/labels/create): Create a label, or get the existing one with that name