{
  "opencollection": "1.0.0",
  "info": {
    "name": "Microsoft Exchange Exchange Online Admin Accepted Domains Messages API",
    "version": "2.0.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "client_credentials",
      "accessTokenUrl": "https://login.microsoftonline.com/{tenant}/oauth2/v2.0/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Messages",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Microsoft Exchange List messages",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://outlook.office365.com/adminapi/v2.0/me/messages",
            "params": [
              {
                "name": "$top",
                "value": "",
                "type": "query",
                "description": "The number of items to return in a result set"
              },
              {
                "name": "$skip",
                "value": "",
                "type": "query",
                "description": "The number of items to skip in a result set"
              },
              {
                "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": "$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, $orderby, $select, $top, $skip, and $expand."
        },
        {
          "info": {
            "name": "Microsoft Exchange Create draft message",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://outlook.office365.com/adminapi/v2.0/me/messages",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a draft of a new message in the signed-in user's mailbox. The draft can then be updated and sent. The message is saved in the Drafts folder by default."
        },
        {
          "info": {
            "name": "Microsoft Exchange Get message",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://outlook.office365.com/adminapi/v2.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 properties and relationships of a message object. Supports $select query parameter to return specific properties."
        },
        {
          "info": {
            "name": "Microsoft Exchange Update message",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://outlook.office365.com/adminapi/v2.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 body, subject, and other writable properties updated."
        },
        {
          "info": {
            "name": "Microsoft Exchange Delete message",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://outlook.office365.com/adminapi/v2.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, or delete a relationship of the message. The message is moved to the Deleted Items folder."
        },
        {
          "info": {
            "name": "Microsoft Exchange Send draft message",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://outlook.office365.com/adminapi/v2.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. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft."
        },
        {
          "info": {
            "name": "Microsoft Exchange Reply to message",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://outlook.office365.com/adminapi/v2.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, add a comment, and send the reply. The message is then saved in the Sent Items folder."
        },
        {
          "info": {
            "name": "Microsoft Exchange Reply all to message",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://outlook.office365.com/adminapi/v2.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, add a comment, and send the reply. The message is then saved in the Sent Items folder."
        },
        {
          "info": {
            "name": "Microsoft Exchange Forward message",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://outlook.office365.com/adminapi/v2.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, add a comment, and send the forwarded message. The message is then saved in the Sent Items folder."
        },
        {
          "info": {
            "name": "Microsoft Exchange Copy message",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://outlook.office365.com/adminapi/v2.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 specified folder. Returns the new copy of the message in the destination folder."
        },
        {
          "info": {
            "name": "Microsoft Exchange Move message",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://outlook.office365.com/adminapi/v2.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 specified folder. This creates a new copy of the message in the destination folder and removes the original message."
        },
        {
          "info": {
            "name": "Microsoft Exchange Create reply draft",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://outlook.office365.com/adminapi/v2.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 a reply message. You can then update the draft and send it."
        },
        {
          "info": {
            "name": "Microsoft Exchange Create reply-all draft",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://outlook.office365.com/adminapi/v2.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 a reply-all message. You can then update the draft and send it."
        },
        {
          "info": {
            "name": "Microsoft Exchange Create forward draft",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://outlook.office365.com/adminapi/v2.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 a forward message. You can then update the draft to add recipients and content, and then send it."
        },
        {
          "info": {
            "name": "Microsoft Exchange Send mail",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://outlook.office365.com/adminapi/v2.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. You can include a file attachment in the same sendMail action call."
        },
        {
          "info": {
            "name": "Microsoft Exchange List messages in mail folder",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://outlook.office365.com/adminapi/v2.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, or deleteditems"
              },
              {
                "name": "$top",
                "value": "",
                "type": "query",
                "description": "The number of items to return in a result set"
              },
              {
                "name": "$skip",
                "value": "",
                "type": "query",
                "description": "The number of items to skip in a result set"
              },
              {
                "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 of the signed-in user's mailbox."
        },
        {
          "info": {
            "name": "Microsoft Exchange Create message in folder",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://outlook.office365.com/adminapi/v2.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, or deleteditems"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a new message in the specified mail folder."
        }
      ]
    }
  ],
  "bundled": true
}