{
  "opencollection": "1.0.0",
  "info": {
    "name": "Microsoft Outlook Microsoft Graph Mail API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/v2.0/authorize",
      "accessTokenUrl": "https://login.microsoftonline.com/common/oauth2/v2.0/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Messages",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Microsoft Outlook List Messages",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.microsoft.com/v1.0/me/messages",
            "params": [
              {
                "name": "$top",
                "value": "",
                "type": "query",
                "description": "Sets the page size of results."
              },
              {
                "name": "$skip",
                "value": "",
                "type": "query",
                "description": "Number of items to skip for pagination."
              },
              {
                "name": "$select",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of properties to include in the response."
              },
              {
                "name": "$filter",
                "value": "",
                "type": "query",
                "description": "OData filter expression to filter results."
              },
              {
                "name": "$orderby",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of properties to sort results by."
              },
              {
                "name": "$count",
                "value": "",
                "type": "query",
                "description": "Include count of the matching resources."
              },
              {
                "name": "$search",
                "value": "",
                "type": "query",
                "description": "Search string to filter results."
              }
            ]
          },
          "docs": "Get all the messages in the signed-in user's mailbox including the Deleted Items and Clutter folders. Supports OData query parameters including $filter, $select, $top, $skip, $orderby, and $count."
        },
        {
          "info": {
            "name": "Microsoft Outlook Create Draft Message",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.microsoft.com/v1.0/me/messages",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a draft of a new message in the signed-in user's mailbox. The message is saved in the Drafts folder. You can then update or send the draft."
        },
        {
          "info": {
            "name": "Microsoft Outlook Get Message",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.microsoft.com/v1.0/me/messages/:message-id",
            "params": [
              {
                "name": "message-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the message."
              },
              {
                "name": "$select",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of properties to include in the response."
              }
            ]
          },
          "docs": "Read the properties and relationships of a message object. Supports $select and $expand query parameters. Use $select=internetMessageHeaders to get custom internet message headers."
        },
        {
          "info": {
            "name": "Microsoft Outlook Update Message",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://graph.microsoft.com/v1.0/me/messages/:message-id",
            "params": [
              {
                "name": "message-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the message."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update the properties of a message object. Only draft messages can have their toRecipients, ccRecipients, bccRecipients, subject, body, and other content properties updated. Sent messages can have isRead and categories updated."
        },
        {
          "info": {
            "name": "Microsoft Outlook Delete Message",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://graph.microsoft.com/v1.0/me/messages/:message-id",
            "params": [
              {
                "name": "message-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the message."
              }
            ]
          },
          "docs": "Delete a message in the specified user's mailbox. The message is moved to the Deleted Items folder."
        },
        {
          "info": {
            "name": "Microsoft Outlook Send Draft Message",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.microsoft.com/v1.0/me/messages/:message-id/send",
            "params": [
              {
                "name": "message-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the message."
              }
            ]
          },
          "docs": "Send a previously created message draft. The message is then saved in the Sent Items folder."
        },
        {
          "info": {
            "name": "Microsoft Outlook Copy Message",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.microsoft.com/v1.0/me/messages/:message-id/copy",
            "params": [
              {
                "name": "message-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the message."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Copy a message to a folder within the user's mailbox."
        },
        {
          "info": {
            "name": "Microsoft Outlook Move Message",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.microsoft.com/v1.0/me/messages/:message-id/move",
            "params": [
              {
                "name": "message-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the message."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Move a message to a different folder within the user's mailbox. This creates a new copy of the message in the destination folder and removes the original message."
        },
        {
          "info": {
            "name": "Microsoft Outlook Reply to Message",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.microsoft.com/v1.0/me/messages/:message-id/reply",
            "params": [
              {
                "name": "message-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the message."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Reply to the sender of a message using either JSON or MIME format. The message is then saved in the Sent Items folder."
        },
        {
          "info": {
            "name": "Microsoft Outlook Reply All to Message",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.microsoft.com/v1.0/me/messages/:message-id/replyAll",
            "params": [
              {
                "name": "message-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the message."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Reply to all recipients of a message. The message is then saved in the Sent Items folder."
        },
        {
          "info": {
            "name": "Microsoft Outlook Forward Message",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.microsoft.com/v1.0/me/messages/:message-id/forward",
            "params": [
              {
                "name": "message-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the message."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Forward a message. The message is then saved in the Sent Items folder."
        },
        {
          "info": {
            "name": "Microsoft Outlook Create Draft to Forward Message",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.microsoft.com/v1.0/me/messages/:message-id/createForward",
            "params": [
              {
                "name": "message-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the message."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a draft of the forward message. You can then update or send the draft."
        },
        {
          "info": {
            "name": "Microsoft Outlook Create Draft to Reply",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.microsoft.com/v1.0/me/messages/:message-id/createReply",
            "params": [
              {
                "name": "message-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the message."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a draft of the reply message. You can then update or send the draft."
        },
        {
          "info": {
            "name": "Microsoft Outlook Create Draft to Reply All",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.microsoft.com/v1.0/me/messages/:message-id/createReplyAll",
            "params": [
              {
                "name": "message-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the message."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a draft of the reply-all message. You can then update or send the draft."
        },
        {
          "info": {
            "name": "Microsoft Outlook Send Mail",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.microsoft.com/v1.0/me/sendMail",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Send the message specified in the request body using either JSON or MIME format. The message is saved in the Sent Items folder by default."
        }
      ]
    },
    {
      "info": {
        "name": "Mail Folders",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Microsoft Outlook List Mail Folders",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.microsoft.com/v1.0/me/mailFolders",
            "params": [
              {
                "name": "$top",
                "value": "",
                "type": "query",
                "description": "Sets the page size of results."
              },
              {
                "name": "$skip",
                "value": "",
                "type": "query",
                "description": "Number of items to skip for pagination."
              },
              {
                "name": "$select",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of properties to include in the response."
              },
              {
                "name": "$filter",
                "value": "",
                "type": "query",
                "description": "OData filter expression to filter results."
              },
              {
                "name": "includeHiddenFolders",
                "value": "example_value",
                "type": "query",
                "description": "Include hidden mail folders in the response."
              }
            ]
          },
          "docs": "Get all the mail folders in the specified user's mailbox, including any mail search folders. Use the includeHiddenFolders query parameter to include hidden folders."
        },
        {
          "info": {
            "name": "Microsoft Outlook Create Mail Folder",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.microsoft.com/v1.0/me/mailFolders",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a new mail folder in the root folder of the user's mailbox."
        },
        {
          "info": {
            "name": "Microsoft Outlook Get Mail Folder",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.microsoft.com/v1.0/me/mailFolders/:mailFolder-id",
            "params": [
              {
                "name": "mailFolder-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the mail folder, or a well-known folder name such as inbox, drafts, sentitems, deleteditems, archive, junkemail, or outbox."
              },
              {
                "name": "$select",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of properties to include in the response."
              }
            ]
          },
          "docs": "Read the properties and relationships of a mail folder object."
        },
        {
          "info": {
            "name": "Microsoft Outlook Update Mail Folder",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://graph.microsoft.com/v1.0/me/mailFolders/:mailFolder-id",
            "params": [
              {
                "name": "mailFolder-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the mail folder, or a well-known folder name such as inbox, drafts, sentitems, deleteditems, archive, junkemail, or outbox."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update the properties of a mail folder object."
        },
        {
          "info": {
            "name": "Microsoft Outlook Delete Mail Folder",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://graph.microsoft.com/v1.0/me/mailFolders/:mailFolder-id",
            "params": [
              {
                "name": "mailFolder-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the mail folder, or a well-known folder name such as inbox, drafts, sentitems, deleteditems, archive, junkemail, or outbox."
              }
            ]
          },
          "docs": "Delete the specified mail folder. The folder can be a mailSearchFolder."
        },
        {
          "info": {
            "name": "Microsoft Outlook List Child Folders",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.microsoft.com/v1.0/me/mailFolders/:mailFolder-id/childFolders",
            "params": [
              {
                "name": "mailFolder-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the mail folder, or a well-known folder name such as inbox, drafts, sentitems, deleteditems, archive, junkemail, or outbox."
              },
              {
                "name": "$top",
                "value": "",
                "type": "query",
                "description": "Sets the page size of results."
              },
              {
                "name": "$skip",
                "value": "",
                "type": "query",
                "description": "Number of items to skip for pagination."
              }
            ]
          },
          "docs": "Get the folder collection under the specified folder."
        },
        {
          "info": {
            "name": "Microsoft Outlook Create Child Folder",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.microsoft.com/v1.0/me/mailFolders/:mailFolder-id/childFolders",
            "params": [
              {
                "name": "mailFolder-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the mail folder, or a well-known folder name such as inbox, drafts, sentitems, deleteditems, archive, junkemail, or outbox."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a new child mail folder under the specified folder."
        },
        {
          "info": {
            "name": "Microsoft Outlook List Messages in Folder",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.microsoft.com/v1.0/me/mailFolders/:mailFolder-id/messages",
            "params": [
              {
                "name": "mailFolder-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the mail folder, or a well-known folder name such as inbox, drafts, sentitems, deleteditems, archive, junkemail, or outbox."
              },
              {
                "name": "$top",
                "value": "",
                "type": "query",
                "description": "Sets the page size of results."
              },
              {
                "name": "$skip",
                "value": "",
                "type": "query",
                "description": "Number of items to skip for pagination."
              },
              {
                "name": "$select",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of properties to include in the response."
              },
              {
                "name": "$filter",
                "value": "",
                "type": "query",
                "description": "OData filter expression to filter results."
              },
              {
                "name": "$orderby",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of properties to sort results by."
              }
            ]
          },
          "docs": "Get all the messages in the specified mail folder."
        },
        {
          "info": {
            "name": "Microsoft Outlook Create Message in Folder",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.microsoft.com/v1.0/me/mailFolders/:mailFolder-id/messages",
            "params": [
              {
                "name": "mailFolder-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the mail folder, or a well-known folder name such as inbox, drafts, sentitems, deleteditems, archive, junkemail, or outbox."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a new message draft in the specified mail folder."
        },
        {
          "info": {
            "name": "Microsoft Outlook Copy Mail Folder",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.microsoft.com/v1.0/me/mailFolders/:mailFolder-id/copy",
            "params": [
              {
                "name": "mailFolder-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the mail folder, or a well-known folder name such as inbox, drafts, sentitems, deleteditems, archive, junkemail, or outbox."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Copy a mail folder and its contents to another mail folder."
        },
        {
          "info": {
            "name": "Microsoft Outlook Move Mail Folder",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.microsoft.com/v1.0/me/mailFolders/:mailFolder-id/move",
            "params": [
              {
                "name": "mailFolder-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the mail folder, or a well-known folder name such as inbox, drafts, sentitems, deleteditems, archive, junkemail, or outbox."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Move a mail folder and its contents to another mail folder."
        }
      ]
    },
    {
      "info": {
        "name": "Attachments",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Microsoft Outlook List Attachments",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.microsoft.com/v1.0/me/messages/:message-id/attachments",
            "params": [
              {
                "name": "message-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the message."
              },
              {
                "name": "$select",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of properties to include in the response."
              },
              {
                "name": "$filter",
                "value": "",
                "type": "query",
                "description": "OData filter expression to filter results."
              }
            ]
          },
          "docs": "Retrieve a list of attachment objects attached to a message."
        },
        {
          "info": {
            "name": "Microsoft Outlook Add Attachment",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.microsoft.com/v1.0/me/messages/:message-id/attachments",
            "params": [
              {
                "name": "message-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the message."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Add a file, item, or link attachment to a message. This operation limits the size of the attachment to under 3 MB. For larger files (3 MB to 150 MB), use the upload session endpoint."
        },
        {
          "info": {
            "name": "Microsoft Outlook Get Attachment",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.microsoft.com/v1.0/me/messages/:message-id/attachments/:attachment-id",
            "params": [
              {
                "name": "message-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the message."
              },
              {
                "name": "attachment-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the attachment."
              },
              {
                "name": "$select",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of properties to include in the response."
              }
            ]
          },
          "docs": "Read the properties, relationships, or raw contents of an attachment attached to a message."
        },
        {
          "info": {
            "name": "Microsoft Outlook Delete Attachment",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://graph.microsoft.com/v1.0/me/messages/:message-id/attachments/:attachment-id",
            "params": [
              {
                "name": "message-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the message."
              },
              {
                "name": "attachment-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the attachment."
              }
            ]
          },
          "docs": "Delete an attachment from a message."
        },
        {
          "info": {
            "name": "Microsoft Outlook Create Upload Session for Large Attachment",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.microsoft.com/v1.0/me/messages/:message-id/attachments/createUploadSession",
            "params": [
              {
                "name": "message-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the message."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create an upload session that allows an app to iteratively upload ranges of a file to attach it to a message. The file size must be between 3 MB and 150 MB."
        }
      ]
    }
  ],
  "bundled": true
}