Proton Mail API guide

mail.proton.me

Check which Proton Mail account is signed in and list recent inbox messages by sender and received time.

Actions and inputs

whoami

Show the signed-in account's ID, username, and email address.

inbox

List inbox senders, subjects, and received times, newest first.

Inputs optional sender name or address, earliest Unix timestamp in seconds, result limit

Email drafts

Create

Compose and save an unsent draft in your signed-in mailbox.

Inputs Recipients, subject, body, optional attachments

Read

Open a draft from your Drafts folder and review its contents.

Inputs Draft subject or ID

Update

Revise recipients, text, or attachments in your draft without sending it.

Inputs Draft subject or ID, requested changes

Delete

Discard your unsent draft without touching sent mail.

Inputs Draft subject or ID, confirmation