Microsoft Outlook Me.mail Folder API

The me.mailFolder API from Microsoft Outlook — 64 operation(s) for me.mailfolder.

GitHub OpenAPI

Operations 96

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /me/mailFolders List the top-level mail folders · List mailFolders #
Ask an LLM
“What folders sit under my mailbox root?”
“Can I include hidden folders when listing top-level mail folders?”
Tell an agent
List my top-level mail folders.
List top-level mail folders including hidden ones.
POST /me/mailFolders Create a top-level mail folder · Create MailFolder #
Ask an LLM
“How do I create a new folder at the root of my mailbox?”
“Can a new top-level folder be hidden from view?”
Tell an agent
Create a top-level mail folder named {displayName}.
Create a hidden top-level folder {displayName} with hidden set to {isHidden}.
GET /me/mailFolders/{mailFolder-id} Get a top-level mail folder · Get mailFolder #
Ask an LLM
“What are the properties of one of my top-level mail folders?”
“Can I fetch a root-level folder by its ID?”
Tell an agent
Get top-level mail folder {mailFolder-id}.
Show the properties of my root folder {mailFolder-id}.
PATCH /me/mailFolders/{mailFolder-id} Update a top-level mail folder · Update mailfolder #
Ask an LLM
“Can I rename a folder at the root of my mailbox?”
“Is it possible to change a root-level folder's hidden state after creation?”
Tell an agent
Rename top-level mail folder {mailFolder-id} to {displayName}.
Set hidden to {isHidden} on root folder {mailFolder-id}.
DELETE /me/mailFolders/{mailFolder-id} Delete a top-level mail folder · Delete mailFolder #
Ask an LLM
“How do I delete a folder from my mailbox root?”
“Can I delete a root-level folder by its well-known name?”
Tell an agent destructive · confirm first
Delete top-level mail folder {mailFolder-id}.
Remove the root folder {mailFolder-id} from my mailbox.
GET /me/mailFolders/{mailFolder-id}/childFolders List the child folders of a mail folder · List childFolders #
Ask an LLM
“What subfolders are inside a particular mail folder?”
“Can I include hidden child folders when listing them?”
Tell an agent
List child folders of mail folder {mailFolder-id}.
Show the subfolders of {mailFolder-id}, including hidden ones.
POST /me/mailFolders/{mailFolder-id}/childFolders Create a child folder inside a mail folder · Create child folder #
Ask an LLM
“How do I create a subfolder inside an existing mail folder?”
“Can a child folder be hidden when I create it?”
Tell an agent
Create a child folder named {displayName} inside mail folder {mailFolder-id}.
Create a hidden subfolder {displayName} under {mailFolder-id}.
GET /me/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1} Get a child folder of a mail folder · Get childFolders from me #
Ask an LLM
“What are the properties of one subfolder inside a mail folder?”
“Can I fetch a single child folder by its ID?”
Tell an agent
Get child folder {mailFolder-id1} of mail folder {mailFolder-id}.
Show subfolder {mailFolder-id1} inside {mailFolder-id}.
PATCH /me/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1} Update a child folder of a mail folder · Update the navigation property childFolders in me #
Ask an LLM
“Can I rename a subfolder inside a mail folder?”
“Is it possible to change a child folder's hidden state after creation?”
Tell an agent
Rename child folder {mailFolder-id1} of {mailFolder-id} to {displayName}.
Set hidden to {isHidden} on subfolder {mailFolder-id1} in {mailFolder-id}.
DELETE /me/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1} Delete a child folder of a mail folder · Delete navigation property childFolders for me #
Ask an LLM
“How do I delete a subfolder from a mail folder?”
“Can I remove a single child folder by its ID?”
Tell an agent destructive · confirm first
Delete child folder {mailFolder-id1} from mail folder {mailFolder-id}.
Remove subfolder {mailFolder-id1} under {mailFolder-id}.
GET /me/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1}/messageRules List the message rules of a child folder · Get messageRules from me #
Ask an LLM
“What mail rules are applied to a subfolder?”
“Can I see the message rules defined on a child folder?”
Tell an agent
List the message rules of child folder {mailFolder-id1} in {mailFolder-id}.
Show the mail rules applied to subfolder {mailFolder-id1} under {mailFolder-id}.
POST /me/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1}/messageRules Create a message rule on a child folder · Create new navigation property to messageRules for me #
Ask an LLM
“How do I add a mail rule to a subfolder?”
“Can a new message rule be created on a child folder?”
Tell an agent
Create a message rule {displayName} on child folder {mailFolder-id1} in {mailFolder-id}.
Add a mail rule {displayName} to subfolder {mailFolder-id1} under {mailFolder-id}.
GET /me/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1}/messageRules/{messageRule-id} Get a message rule of a child folder · Get messageRules from me #
Ask an LLM
“What conditions and actions does one mail rule on a subfolder have?”
“Can I fetch a single message rule by its ID?”
Tell an agent
Get message rule {messageRule-id} of child folder {mailFolder-id1} in {mailFolder-id}.
Show the mail rule {messageRule-id} on subfolder {mailFolder-id1} under {mailFolder-id}.
PATCH /me/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1}/messageRules/{messageRule-id} Update a message rule of a child folder · Update the navigation property messageRules in me #
Ask an LLM
“Can I change the conditions of a mail rule on a subfolder?”
“Is it possible to disable a message rule on a child folder?”
Tell an agent
Update message rule {messageRule-id} on child folder {mailFolder-id1} in {mailFolder-id} with conditions {conditions}.
Set enabled to {isEnabled} on mail rule {messageRule-id} of subfolder {mailFolder-id1} under {mailFolder-id}.
DELETE /me/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1}/messageRules/{messageRule-id} Delete a message rule of a child folder · Delete navigation property messageRules for me #
Ask an LLM
“How do I remove a mail rule from a subfolder?”
“Can I delete a single message rule by its ID?”
Tell an agent destructive · confirm first
Delete message rule {messageRule-id} from child folder {mailFolder-id1} in {mailFolder-id}.
Remove the mail rule {messageRule-id} on subfolder {mailFolder-id1} under {mailFolder-id}.
GET /me/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1}/messageRules/$count Count the message rules of a child folder · Get the number of the resource #
Ask an LLM
“How many mail rules are defined on a subfolder?”
“Can I count the message rules on a child folder?”
Tell an agent
Count the message rules of child folder {mailFolder-id1} in {mailFolder-id}.
Tell me how many mail rules exist on subfolder {mailFolder-id1} under {mailFolder-id}.
GET /me/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1}/messages List the messages in a child folder · Get messages from me #
Ask an LLM
“What messages are inside a subfolder?”
“Can I list the messages of a child folder?”
Tell an agent
List the messages in child folder {mailFolder-id1} of {mailFolder-id}.
Show the messages of subfolder {mailFolder-id1} under {mailFolder-id}.
POST /me/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1}/messages Create a message in a child folder · Create new navigation property to messages for me #
Ask an LLM
“How do I send an email into a subfolder?”
“Can I create a message inside a child folder?”
Tell an agent
Create a message with subject {subject} in child folder {mailFolder-id1} of {mailFolder-id}.
Send an email into subfolder {mailFolder-id1} under {mailFolder-id}.
GET /me/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1}/messages/{message-id} Get a message in a child folder · Get messages from me #
Ask an LLM
“What are the details of one message inside a subfolder?”
“Can I fetch a single message by its ID from a child folder?”
Tell an agent
Get message {message-id} from child folder {mailFolder-id1} in {mailFolder-id}.
Show the email {message-id} in subfolder {mailFolder-id1} under {mailFolder-id}.
PATCH /me/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1}/messages/{message-id} Update a message in a subfolder · Update the navigation property messages in me #
Ask an LLM
“How do I change the subject or body of an email in a subfolder of my inbox?”
“Can I mark a message in a subfolder as read or unread?”
Tell an agent
Update message {message} in subfolder {subfolder} of folder {folder}.
Set the importance of message {message} in subfolder {subfolder} of {folder} to {importance}.
DELETE /me/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1}/messages/{message-id} Delete a message from a subfolder · Delete navigation property messages for me #
Ask an LLM
“How do I remove one email from a nested subfolder in my mailbox?”
“Can I delete a message by giving the parent folder, subfolder and message IDs?”
Tell an agent destructive · confirm first
Trash email {message} sitting in subfolder {child} of folder {parent}.
Delete the message {message} from subfolder {child} under {parent}.
GET /me/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1}/messages/{message-id}/$value Download a message's content · Get media content for the navigation property messages from me #
Ask an LLM
“How do I download the raw content of an email in a subfolder?”
“Can I fetch the full MIME body of a message in a subfolder?”
Tell an agent
Download the content of message {message} in subfolder {subfolder} of folder {folder}.
Fetch the raw body of email {message} from subfolder {subfolder} in {folder}.
PUT /me/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1}/messages/{message-id}/$value Replace a message's content · Update media content for the navigation property messages in me #
Ask an LLM
“How do I overwrite the full content of an email in a subfolder?”
“Can I replace an email's body with new MIME content in a subfolder?”
Tell an agent
Replace the content of message {message} in subfolder {subfolder} of folder {folder}.
Overwrite email {message} in subfolder {subfolder} of {folder} with fresh content.
DELETE /me/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1}/messages/{message-id}/$value Delete a message's content · Delete media content for the navigation property messages in me #
Ask an LLM
“How do I delete the content of an email in a subfolder?”
“Can I remove an email's body but keep the message itself in a subfolder?”
Tell an agent destructive · confirm first
Delete the content of message {message} in subfolder {subfolder} of folder {folder}.
Remove the body of email {message} from subfolder {subfolder} in {folder}.
GET /me/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1}/messages/{message-id}/attachments List attachments on a message · Get attachments from me #
Ask an LLM
“Which attachments are attached to an email in a subfolder?”
“Can I see every attachment on a message in a subfolder?”
Tell an agent
List the attachments on message {message} in subfolder {subfolder} of folder {folder}.
Show every attachment attached to email {message} from subfolder {subfolder} in {folder}.
POST /me/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1}/messages/{message-id}/attachments Attach a file to a message · Create new navigation property to attachments for me #
Ask an LLM
“How do I attach a file to an email in a subfolder?”
“Can I add an attachment to a message in a subfolder?”
Tell an agent
Attach a file named {name} to message {message} in subfolder {subfolder} of folder {folder}.
Add attachment {name} to email {message} in subfolder {subfolder} of {folder}.
GET /me/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1}/messages/{message-id}/attachments/{attachment-id} Get an attachment on a message · Get attachments from me #
Ask an LLM
“How do I download one attachment from an email in a subfolder?”
“Can I fetch a single attachment on a message in a subfolder?”
Tell an agent
Get attachment {attachment} on message {message} in subfolder {subfolder} of folder {folder}.
Download attachment {attachment} from email {message} in subfolder {subfolder} of {folder}.
DELETE /me/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1}/messages/{message-id}/attachments/{attachment-id} Remove an attachment from a message · Delete navigation property attachments for me #
Ask an LLM
“How do I remove an attachment from an email in a subfolder?”
“Can I delete one attachment on a message in a subfolder?”
Tell an agent destructive · confirm first
Delete attachment {attachment} from message {message} in subfolder {subfolder} of folder {folder}.
Remove attachment {attachment} on email {message} in subfolder {subfolder} of {folder}.
GET /me/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1}/messages/{message-id}/attachments/$count Count attachments on a message · Get the number of the resource #
Ask an LLM
“How many attachments does an email in a subfolder have?”
“Can I count only the attachments on a message in a subfolder?”
Tell an agent
Count the attachments on message {message} in subfolder {subfolder} of folder {folder}.
Tell me how many attachments email {message} has in subfolder {subfolder} of {folder}.
POST /me/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1}/messages/{message-id}/attachments/createUploadSession Start an upload session for a message attachment · Invoke action createUploadSession #
Ask an LLM
“How do I upload a large file as an attachment to an email in a subfolder?”
“Can I upload a file to an email in a subfolder in chunks?”
Tell an agent
Create an upload session for a file attachment on message {message} in subfolder {subfolder} of folder {folder}.
Start a chunked upload for a file on email {message} in subfolder {subfolder} of {folder}.
GET /me/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1}/messages/{message-id}/extensions List extensions on a message · Get extensions from me #
Ask an LLM
“Which custom open extensions are set on an email in a subfolder?”
“Can I see all extensions on a message in a subfolder?”
Tell an agent
List the extensions on message {message} in subfolder {subfolder} of folder {folder}.
Show every custom extension on email {message} from subfolder {subfolder} in {folder}.
POST /me/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1}/messages/{message-id}/extensions Add an open extension to a message · Create new navigation property to extensions for me #
Ask an LLM
“How do I add a custom open extension to an email in a subfolder?”
“Can I attach an open extension to a message in a subfolder?”
Tell an agent
Add an open extension to message {message} in subfolder {subfolder} of folder {folder}.
Create a new custom extension on email {message} in subfolder {subfolder} of {folder}.
GET /me/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1}/messages/{message-id}/extensions/{extension-id} Get the open extensions on a message · Get extensions from me #
Ask an LLM
“How do I read the custom extension data stored on an email?”
“Which extensions are defined for a message in an inbox folder?”
Tell an agent
Get extensions {extension} on message {message-id} in child folder {child} of folder {parent}.
Show the custom extension data attached to email {message-id}, folder {parent} subfolder {child}.
PATCH /me/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1}/messages/{message-id}/extensions/{extension-id} Update an extension on a message · Update the navigation property extensions in me #
Ask an LLM
“How do I change a custom extension on an email in a subfolder?”
“Can I edit an existing extension on a message in a subfolder?”
Tell an agent
Update extension {extension} on message {message} in subfolder {subfolder} of folder {folder}.
Change the value of custom extension {extension} on email {message} in subfolder {subfolder} of {folder}.
DELETE /me/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1}/messages/{message-id}/extensions/{extension-id} Remove an extension from a message · Delete navigation property extensions for me #
Ask an LLM
“How do I remove a custom extension from an email in a subfolder?”
“Can I delete one extension on a message in a subfolder?”
Tell an agent destructive · confirm first
Delete extension {extension} from message {message} in subfolder {subfolder} of folder {folder}.
Remove custom extension {extension} on email {message} in subfolder {subfolder} of {folder}.
GET /me/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1}/messages/{message-id}/extensions/$count Count extensions on a message · Get the number of the resource #
Ask an LLM
“How many custom extensions does an email in a subfolder have?”
“Can I count only the extensions on a message in a subfolder?”
Tell an agent
Count the extensions on message {message} in subfolder {subfolder} of folder {folder}.
Tell me how many extensions email {message} has in subfolder {subfolder} of {folder}.
POST /me/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1}/messages/{message-id}/copy Copy a message to another folder · Invoke action copy #
Ask an LLM
“How do I copy an email from a subfolder to another folder?”
“Can I duplicate a message in a subfolder into a different folder?”
Tell an agent
Copy message {message} from subfolder {subfolder} of folder {folder} to folder {destination}.
Duplicate email {message} in subfolder {subfolder} of {folder} into folder {destination}.
POST /me/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1}/messages/{message-id}/createForward Forward a message to recipients · Invoke action createForward #
Ask an LLM
“How do I forward an email from a subfolder to someone else?”
“Can I add a comment when forwarding a message in a subfolder?”
Tell an agent
Forward message {message} from subfolder {subfolder} of folder {folder} to {to}.
Forward email {message} in subfolder {subfolder} of {folder} with comment {comment}.
POST /me/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1}/messages/{message-id}/createReply Reply to a message · Invoke action createReply #
Ask an LLM
“How do I reply to an email in a subfolder?”
“Can I reply to a message in a subfolder with a comment?”
Tell an agent
Reply to message {message} in subfolder {subfolder} of folder {folder}.
Reply to email {message} in subfolder {subfolder} of {folder} with comment {comment}.
POST /me/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1}/messages/{message-id}/createReplyAll Reply to a message to sender and all recipients · Invoke action createReplyAll #
Ask an LLM
“How do I reply to everyone who received an email, including the sender?”
“Can I include a comment when replying to all recipients of a message?”
Tell an agent
Create a reply-all draft to message {message-id} in child folder {child} of folder {parent}.
Reply to sender and all recipients of email {message-id}, folder {parent} subfolder {child}, with {comment}.
POST /me/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1}/messages/{message-id}/forward Forward a message to new recipients · Invoke action forward #
Ask an LLM
“How do I forward an email to recipients I choose?”
“Is it possible to forward a message and add a comment along the way?”
Tell an agent
Forward message {message-id} in child folder {child} of folder {parent} to {to}.
Forward email {message-id}, folder {parent} subfolder {child}, saying {comment}.
POST /me/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1}/messages/{message-id}/move Move a message to another folder · Invoke action move #
Ask an LLM
“How do I move an email from one folder to another?”
“Does copying a message to a new folder keep the original?”
Tell an agent
Move message {message-id} in child folder {child} of folder {parent} to folder {destination}.
Move email {message-id}, folder {parent} subfolder {child}, into destination {destination}.
POST /me/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1}/messages/{message-id}/permanentDelete Permanently delete an email · Invoke action permanentDelete #
Ask an LLM
“How do I permanently delete an email so it can't be recovered?”
“Is a permanent message delete different from moving it to the Deleted Items folder?”
Tell an agent destructive · confirm first
Permanently delete message {message-id} in child folder {child} of folder {parent}.
Permanently remove email {message-id} from folder {parent} subfolder {child}.
POST /me/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1}/messages/{message-id}/reply Reply to the sender of a message · Invoke action reply #
Ask an LLM
“How do I reply privately to the sender of an email?”
“Can I reply to a message with a short note in the body?”
Tell an agent
Reply to the sender of message {message-id} in child folder {child} of folder {parent}.
Reply to sender of email {message-id}, folder {parent} subfolder {child}, with {comment}.
POST /me/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1}/messages/{message-id}/replyAll Reply to all on a message in a subfolder · Invoke action replyAll #
Ask an LLM
“How do I send a reply-all to an email stored in a subfolder?”
“Can I reply to all recipients of a child-folder message with a comment or a MIME body?”
Tell an agent
Reply to everyone on message {message} in subfolder {child} of folder {parent}.
Reply all to {message} in subfolder {child} under {parent} with the comment {comment}.
POST /me/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1}/messages/{message-id}/send Send a message draft · Invoke action send #
Ask an LLM
“How do I send a draft email I already wrote?”
“Where does a sent draft end up after I send it?”
Tell an agent
Send the draft message {message-id} in child folder {child} of folder {parent}.
Send email {message-id} from folder {parent} subfolder {child} as a sent message.
GET /me/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1}/messages/$count Count messages in an inbox folder · Get the number of the resource #
Ask an LLM
“How many messages are in my inbox folder?”
“Can I count only unread emails in a subfolder?”
Tell an agent
Count the messages in child folder {child} of folder {parent}.
Count messages in inbox folder {parent} subfolder {child} matching {filter}.
GET /me/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1}/messages/delta() Get incremental changes to message folders · Invoke function delta #
Ask an LLM
“How do I sync only the new or changed messages in a folder since my last sync?”
“Can I fetch only deleted messages for a folder?”
Tell an agent
Get the delta of messages in folder {parent} child folder {child} since the last sync.
Fetch messages changed in folder {parent} subfolder {child} since the last call.
POST /me/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1}/copy Copy a folder to another folder · Invoke action copy #
Ask an LLM
“How do I copy a mail folder and all its messages?”
“Can I copy an entire folder to a different mailbox location?”
Tell an agent
Copy folder {child} and its contents in {parent} to destination {destination}.
Copy mail folder {child} to {destination}, folder {parent} subfolder {child}.
POST /me/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1}/move Move a mail folder to another folder · Invoke action move #
Ask an LLM
“How do I move a mail folder with all its messages?”
“Can I move a folder to a different mailbox location?”
Tell an agent
Move folder {child} and its contents in {parent} to destination {destination}.
Move mail folder {child} to {destination}, folder {parent} subfolder {child}.
POST /me/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1}/permanentDelete Permanently delete a subfolder · Invoke action permanentDelete #
Ask an LLM
“How do I erase a subfolder for good, skipping Deleted Items?”
“Can I permanently purge a child folder from inside its parent folder?”
Tell an agent destructive · confirm first
Permanently delete subfolder {child} under {parent}.
Purge child folder {child} of mail folder {parent} for good.
GET /me/mailFolders/{mailFolder-id}/childFolders/$count Count subfolders of an inbox folder · Get the number of the resource #
Ask an LLM
“How many subfolders are in my inbox folder?”
“Can I count hidden subfolders too?”
Tell an agent
Count the subfolders of folder {parent}.
Count subfolders in inbox folder {parent}, including hidden ones: {include}.
GET /me/mailFolders/{mailFolder-id}/childFolders/delta() Get incremental changes to mail folders · Invoke function delta #
Ask an LLM
“How do I sync only the folders added, removed or renamed since my last sync?”
“Can I fetch only renamed mail folders?”
Tell an agent
Get the delta of child folders in folder {parent} since the last sync.
Fetch folders changed in {parent} since the last call.
GET /me/mailFolders/{mailFolder-id}/messageRules List message rules for an inbox folder · List rules #
Ask an LLM
“What message rules have been set up in my inbox?”
“Which folder rules are enabled for a mailbox?”
Tell an agent
List message rules for folder {parent}.
Show the email rules defined in inbox folder {parent}.
POST /me/mailFolders/{mailFolder-id}/messageRules Create a message rule · Create rule #
Ask an LLM
“How do I create an automatic rule that moves incoming emails?”
“Can I create a message rule that flags, forwards or deletes emails matching a condition?”
Tell an agent
Create a message rule {displayName} in folder {parent} with conditions {conditions}.
Create inbox rule {displayName} in folder {parent} to action {actions}.
GET /me/mailFolders/{mailFolder-id}/messageRules/{messageRule-id} Get a message rule · Get rule #
Ask an LLM
“What conditions and actions does a specific message rule use?”
“Can I read one email rule by its ID?”
Tell an agent
Get message rule {rule} in folder {parent}.
Show the settings of email rule {rule} in inbox folder {parent}.
PATCH /me/mailFolders/{mailFolder-id}/messageRules/{messageRule-id} Update a message rule in a folder · Update rule #
Ask an LLM
“Can I change the conditions or actions of an existing Outlook rule?”
“Will an updated message rule start running immediately?”
Tell an agent
Update message rule {rule} in folder {folder}.
Set the conditions of rule {rule} in {folder} to {conditions}.
DELETE /me/mailFolders/{mailFolder-id}/messageRules/{messageRule-id} Delete a message rule · Delete messageRule #
Ask an LLM
“How do I delete a message rule I no longer use?”
“Can I remove an email rule by its ID?”
Tell an agent destructive · confirm first
Delete message rule {rule} in folder {parent}.
Remove the email rule {rule} from inbox folder {parent}.
GET /me/mailFolders/{mailFolder-id}/messageRules/$count Count the message rules in a folder · Get the number of the resource #
Ask an LLM
“How many message rules are in a folder?”
“Can I count only the rules matching a filter?”
Tell an agent
Count the message rules in folder {folder}.
Count rules in {folder} matching {filter}.
GET /me/mailFolders/{mailFolder-id}/messages List messages in a folder · List messages #
Ask an LLM
“What messages are in a particular folder of my mailbox?”
“Can I list only unread messages or filter by sender?”
Tell an agent
List messages in folder {folder}.
Show the first {top} messages in {folder} matching {filter}.
POST /me/mailFolders/{mailFolder-id}/messages Create a message in a mail folder · Create message in a mailfolder #
Ask an LLM
“How do I send an email into a specific folder in my mailbox?”
“Can I set the importance and attachments when creating a message in a folder?”
Tell an agent
Create a message in folder {mailFolder} with subject {subject}.
Send a new email into folder {mailFolder} with importance {importance} and body {body}.
GET /me/mailFolders/{mailFolder-id}/messages/{message-id} Get a message from a mail folder · Get messages from me #
Ask an LLM
“How do I read an email that's sitting in one of my folders?”
“Can I fetch a single message from a mail folder by its ID?”
Tell an agent
Get message {message} from folder {mailFolder}.
Show the email {message} in folder {mailFolder}.
PATCH /me/mailFolders/{mailFolder-id}/messages/{message-id} Update a message in a mail folder · Update the navigation property messages in me #
Ask an LLM
“How do I change the subject or importance of an email in a folder?”
“Can I mark an email in a mail folder as read?”
Tell an agent
Update message {message} in folder {mailFolder} to importance {importance}.
Mark email {message} in folder {mailFolder} as read.
DELETE /me/mailFolders/{mailFolder-id}/messages/{message-id} Delete a message from a mail folder · Delete navigation property messages for me #
Ask an LLM
“How do I delete an email from a folder in my mailbox?”
“Can I remove a single message from a mail folder?”
Tell an agent destructive · confirm first
Delete message {message} from folder {mailFolder}.
Remove the email {message} in folder {mailFolder}.
GET /me/mailFolders/{mailFolder-id}/messages/{message-id}/$value Download a message's content · List messages #
Ask an LLM
“Can I fetch the raw content of one email in my mailbox?”
“Is there a way to download an email attachment by message ID?”
Tell an agent
Download message {message} from folder {folder}.
Get the mail content of {message} in {folder}.
PUT /me/mailFolders/{mailFolder-id}/messages/{message-id}/$value Replace the raw content of a message · Update media content for the navigation property messages in me #
Ask an LLM
“How do I replace the raw MIME content of an email in a mail folder?”
“Can I overwrite a message's whole media content in a top-level folder?”
Tell an agent
Replace the raw content of message {message} in folder {folder} with new MIME content.
Overwrite email {message} in folder {folder} with a new raw message.
DELETE /me/mailFolders/{mailFolder-id}/messages/{message-id}/$value Delete the raw content of a message · Delete media content for the navigation property messages in me #
Ask an LLM
“How do I wipe the raw MIME content of an email in a top-level mail folder?”
“Can I make a delete of a message's content conditional on its ETag?”
Tell an agent destructive · confirm first
Clear the raw content of message {message} in top-level folder {folder}.
Delete the raw content of message {message} in folder {folder} only if ETag {etag} matches.
GET /me/mailFolders/{mailFolder-id}/messages/{message-id}/attachments List attachments on a message · Get attachments from me #
Ask an LLM
“Which attachments are attached to an email in a folder?”
“Can I list the files on a message in a mail folder?”
Tell an agent
List the attachments on message {message} in folder {mailFolder}.
Show every file attached to email {message} in folder {mailFolder}.
POST /me/mailFolders/{mailFolder-id}/messages/{message-id}/attachments Attach a file to a message · Create new navigation property to attachments for me #
Ask an LLM
“How do I attach a file to an email in a folder?”
“Can I add an inline attachment to a message in a mail folder?”
Tell an agent
Attach a file named {name} to message {message} in folder {mailFolder}.
Add an inline attachment to email {message} in folder {mailFolder}.
GET /me/mailFolders/{mailFolder-id}/messages/{message-id}/attachments/{attachment-id} Get an attachment on a message · Get attachments from me #
Ask an LLM
“How do I download one attachment from an email in a folder?”
“Can I fetch a single file attached to a message in a mail folder?”
Tell an agent
Get attachment {attachment} on message {message} in folder {mailFolder}.
Download file {attachment} from email {message} in folder {mailFolder}.
DELETE /me/mailFolders/{mailFolder-id}/messages/{message-id}/attachments/{attachment-id} Remove an attachment from a message · Delete navigation property attachments for me #
Ask an LLM
“How do I remove a file from an email in a folder?”
“Can I detach one attachment from a message in a mail folder?”
Tell an agent destructive · confirm first
Delete attachment {attachment} from message {message} in folder {mailFolder}.
Detach file {attachment} from email {message} in folder {mailFolder}.
GET /me/mailFolders/{mailFolder-id}/messages/{message-id}/attachments/$count Count attachments on a message · Get the number of the resource #
Ask an LLM
“How many attachments does an email in a folder have?”
“Can I count the files attached to a message in a mail folder?”
Tell an agent
Count the attachments on message {message} in folder {mailFolder}.
Tell me how many files are attached to email {message} in folder {mailFolder}.
POST /me/mailFolders/{mailFolder-id}/messages/{message-id}/attachments/createUploadSession Start an upload session for a message attachment · Invoke action createUploadSession #
Ask an LLM
“How do I attach a file that's too large to send in one chunk?”
“Can I upload an attachment in large chunks instead of a single upload?”
Tell an agent
Create an upload session for a file attachment to message {message} in {folder}.
Start a chunked upload for {attachment} on {message} in {folder}.
GET /me/mailFolders/{mailFolder-id}/messages/{message-id}/extensions List extensions on a message · Get extensions from me #
Ask an LLM
“Which open extensions are on an email in a folder?”
“Can I list the custom properties on a message in a mail folder?”
Tell an agent
List the extensions on message {message} in folder {mailFolder}.
Show every custom property on email {message} in folder {mailFolder}.
POST /me/mailFolders/{mailFolder-id}/messages/{message-id}/extensions Add an extension to a message · Create new navigation property to extensions for me #
Ask an LLM
“How do I add a custom property to an email in a folder?”
“Can I create an open extension on a message in a mail folder?”
Tell an agent
Add an extension to message {message} in folder {mailFolder}.
Create a custom property on email {message} in folder {mailFolder}.
GET /me/mailFolders/{mailFolder-id}/messages/{message-id}/extensions/{extension-id} Get extensions on a message · Get extensions from me #
Ask an LLM
“What open extensions are attached to a message?”
“Can I fetch a single extension on an email by ID?”
Tell an agent
Get extension {extension} on message {message} in {folder}.
Show the open extensions on {message} in {folder}.
PATCH /me/mailFolders/{mailFolder-id}/messages/{message-id}/extensions/{extension-id} Update an extension on a message · Update the navigation property extensions in me #
Ask an LLM
“How do I change a custom property on an email in a folder?”
“Can I patch an open extension on a message in a mail folder?”
Tell an agent
Update extension {extension} on message {message} in folder {mailFolder}.
Patch custom property {extension} on email {message} in folder {mailFolder}.
DELETE /me/mailFolders/{mailFolder-id}/messages/{message-id}/extensions/{extension-id} Remove an extension from a message · Delete navigation property extensions for me #
Ask an LLM
“How do I remove a custom property from an email in a folder?”
“Can I delete an open extension on a message in a mail folder?”
Tell an agent destructive · confirm first
Delete extension {extension} from message {message} in folder {mailFolder}.
Remove custom property {extension} from email {message} in folder {mailFolder}.
GET /me/mailFolders/{mailFolder-id}/messages/{message-id}/extensions/$count Count extensions on a message · Get the number of the resource #
Ask an LLM
“How many extensions does an email in a folder have?”
“Can I count the custom properties on a message in a mail folder?”
Tell an agent
Count the extensions on message {message} in folder {mailFolder}.
Tell me how many custom properties email {message} in folder {mailFolder} has.
POST /me/mailFolders/{mailFolder-id}/messages/{message-id}/copy Copy an email to a folder · Invoke action copy #
Ask an LLM
“How do I copy an email from one folder to another?”
“Can I move a message to a different folder in my mailbox?”
Tell an agent
Copy message {message} from folder {mailFolder} to folder {destination}.
Move email {message} in folder {mailFolder} to folder {destination}.
POST /me/mailFolders/{mailFolder-id}/messages/{message-id}/createForward Create a forward draft of a message · Invoke action createForward #
Ask an LLM
“How do I draft a forwarded copy of an email in a folder?”
“Can I add a comment to a forward draft before sending it?”
Tell an agent
Create a forward draft of message {message} in folder {folder}.
Forward message {message} in folder {folder} to {to} with comment {comment}.
POST /me/mailFolders/{mailFolder-id}/messages/{message-id}/createReply Create a reply draft to one sender · Invoke action createReply #
Ask an LLM
“Can I reply to just the sender of an email without CC'ing everyone?”
“How do I draft a reply to one recipient with a comment?”
Tell an agent
Create a draft reply to sender of {message} in {folder}.
Reply to the sender of {message} in {folder} with {comment}.
POST /me/mailFolders/{mailFolder-id}/messages/{message-id}/createReplyAll Create a reply draft to all recipients · Invoke action createReplyAll #
Ask an LLM
“Can I reply to everyone who received an email?”
“What's the way to draft a reply to every CC recipient at once?”
Tell an agent
Create a draft reply-all to all recipients of {message} in {folder}.
Reply to every recipient of {message} in {folder} with {comment}.
POST /me/mailFolders/{mailFolder-id}/messages/{message-id}/forward Forward a message · Invoke action forward #
Ask an LLM
“Can I forward a message to specific recipients?”
“Is there a way to add a comment when forwarding an email?”
Tell an agent
Forward {message} in {folder} to {recipients}.
Forward {message} in {folder} with the comment {comment}.
POST /me/mailFolders/{mailFolder-id}/messages/{message-id}/move Move a message to another folder · Invoke action move #
Ask an LLM
“Can I move a single email to a different folder?”
“What happens to the original when a message is moved?”
Tell an agent
Move {message} in {folder} to folder {destination}.
Copy {message} from {folder} into {destination}.
POST /me/mailFolders/{mailFolder-id}/messages/{message-id}/permanentDelete Permanently delete a message from a folder · Invoke action permanentDelete #
Ask an LLM
“Is there a way to permanently erase one email directly from a top-level folder?”
“Can I purge a message from a mail folder without it going to Deleted Items?”
Tell an agent destructive · confirm first
Permanently delete message {message} in folder {folder}.
Purge email {message} from top-level folder {folder} for good.
POST /me/mailFolders/{mailFolder-id}/messages/{message-id}/reply Reply to the sender of a message · Invoke action reply #
Ask an LLM
“How do I reply to just the sender of an email?”
“Can I reply to a message in MIME format?”
Tell an agent
Reply to message {message} in folder {folder}.
Reply to the sender of message {message} in folder {folder} with {comment}.
POST /me/mailFolders/{mailFolder-id}/messages/{message-id}/replyAll Reply to all on a message · Invoke action replyAll #
Ask an LLM
“Can I reply to everyone who received an email in one go?”
“How do I answer all recipients while also including a new comment?”
Tell an agent
Reply to all recipients of {message} in {folder}.
Reply all to {message} in {folder} with {comment}.
POST /me/mailFolders/{mailFolder-id}/messages/{message-id}/send Send a draft email · Invoke action send #
Ask an LLM
“How do I send a draft message I already wrote?”
“Does sending a draft save it in the Sent Items folder?”
Tell an agent
Send draft message {message} in folder {folder}.
Send the draft email {message} from folder {folder}.
GET /me/mailFolders/{mailFolder-id}/messages/$count Count messages in a folder · Get the number of the resource #
Ask an LLM
“How many messages are in a mailbox folder?”
“Can I get the count of messages filtered by sender?”
Tell an agent
Count messages in folder {folder}.
Count messages in {folder} matching {filter}.
GET /me/mailFolders/{mailFolder-id}/messages/delta() Get changed messages since the last sync · Invoke function delta #
Ask an LLM
“How do I get only the messages that were added, deleted or updated since my last sync?”
“Can I filter the message sync delta to only created or updated messages?”
Tell an agent
Get the message delta for folder {folder}.
Show {changeType} messages in folder {folder} since the last sync.
POST /me/mailFolders/{mailFolder-id}/copy Copy a folder and its messages · Invoke action copy #
Ask an LLM
“How do I copy a folder along with all its messages to another folder?”
“Can I duplicate a mailbox folder for backup?”
Tell an agent
Copy folder {folder} and its messages to {destination}.
Duplicate mailbox folder {folder} into {destination}.
POST /me/mailFolders/{mailFolder-id}/move Move a folder and its contents · Invoke action move #
Ask an LLM
“Can I move a whole folder to another mailbox folder?”
“Does moving a folder include everything it contains?”
Tell an agent
Move {folder} and all its contents to folder {destination}.
Move the mailbox folder {folder}.
POST /me/mailFolders/{mailFolder-id}/permanentDelete Permanently delete a folder · Invoke action permanentDelete #
Ask an LLM
“Can I permanently delete a folder and everything in it?”
“What's the call to truly delete a mailbox folder instead of moving it?”
Tell an agent destructive · confirm first
Permanently delete folder {folder}.
Permanently remove the mailbox folder {folder} and its contents.
GET /me/mailFolders/$count Count all mailbox folders · Get the number of the resource #
Ask an LLM
“How many folders are in my mailbox?”
“Can I include hidden folders when counting mailbox folders?”
Tell an agent
Count all folders in my mailbox.
Count mailbox folders including hidden ones: {includeHiddenFolders}.
GET /me/mailFolders/delta() List mailbox folder changes since a token · Invoke function delta #
Ask an LLM
“What folders have been added, deleted or renamed since my last sync?”
“Can I get only the changes made to my mailbox folders?”
Tell an agent
Get changes to my mailbox folders since the last sync.
Show new and removed folders in my mailbox matching {filter}.

Documentation

📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/mail-api-overview?view=graph-rest-1.0
📖
Authentication
https://learn.microsoft.com/en-us/graph/auth/
📖
GettingStarted
https://learn.microsoft.com/en-us/graph/outlook-mail-concept-overview
📖
APIReference
https://learn.microsoft.com/en-us/graph/api/overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/calendar?view=graph-rest-1.0
📖
GettingStarted
https://learn.microsoft.com/en-us/graph/outlook-calendar-concept-overview
📖
APIReference
https://learn.microsoft.com/en-us/graph/api/resources/calendar-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/contact?view=graph-rest-1.0
📖
GettingStarted
https://learn.microsoft.com/en-us/graph/outlook-contacts-concept-overview
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/todo-overview?view=graph-rest-1.0
📖
GettingStarted
https://learn.microsoft.com/en-us/graph/todo-concept-overview
📖
Documentation
https://learn.microsoft.com/en-us/graph/people-insights-overview
📖
Documentation
https://learn.microsoft.com/en-us/graph/outlook-change-notifications-overview
📖
GettingStarted
https://learn.microsoft.com/en-us/graph/change-notifications-delivery-webhooks
📖
APIReference
https://learn.microsoft.com/en-us/graph/api/resources/change-notifications-api-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/manage-focused-inbox?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/messagerule?view=graph-rest-1.0
📖
GettingStarted
https://learn.microsoft.com/en-us/graph/outlook-organize-messages
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/outlookcategory?view=graph-rest-1.0

Specifications

Code Examples

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/microsoft-outlook:microsoft-outlook-me-mailfolder-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

microsoft-outlook-me-mailfolder-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OData Service for namespace microsoft.graph Me.mail Folder…
  description: This OData service is located at https://graph.microsoft.com/v1.0
  version: v1.0
  x-ms-generated-by:
    toolName: Microsoft.OpenApi.OData
    toolVersion: 0.0.0.0
servers:
- url: https://graph.microsoft.com/v1.0
tags:


# --- truncated at 32 KB (349 KB total) ---
# Full source: https://artifacts.apis.io/microsoft-outlook/openapi/microsoft-outlook-me-mailfolder-api-openapi.yml