Create Folder
create_folderCreate a new IMAP mailbox as a folder or label by specifying an unused path. Use Folders/Name or Labels/Name to add a mailbox for organizing email.
Instructions
Create one new IMAP mailbox. Use Folders/Name for a custom folder or Labels/Name for a label; the path must be unused across both namespaces. Use rename_folder to change an existing mailbox. Returns success after Proton Bridge accepts the create; create labels before adding them with move_to_label.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | No | Optional account ID to route this call to (multi-account configs). Omit to use the active account. Configured account IDs are listed in the settings UI (Accounts tab). | |
| folderName | Yes | Folder path to create (e.g. Folders/Archive, Labels/Work) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | ||
| success | Yes | ||
| messageId | No |