Create an approved folder
create_folderCreates an approved Proton Mail folder using a user-approved preview token; no other folder is renamed or deleted.
Instructions
Create the folder an approved preview names; only call after explicit approval of its preview.
Use it only with a token from preview_create_folder that the user approved: the token, not an argument, names the folder. Unless the operator turned it off, the user then confirms the exact change in the client's form; a declined form retires the token.
Creates one folder and never deletes or renames one; removing a created folder is manual in the Proton app. If the folder now exists, it succeeds without consuming the token, so a repeat changes nothing.
Returns log_id for the logged creation attempt, including an already-existing folder, with name, created, exists, partial and token_consumed. partial=true, with error, means the call was interrupted and the folder may exist: check list_actions and the Proton app first. An expired, used or unknown token refuses: preview again.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | Single-use token from the preview the user approved. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||