{
  "opencollection": "1.0.0",
  "info": {
    "name": "Microsoft Exchange Exchange Online Admin Accepted Domains Mailbox Discovery 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": "Mailbox Discovery",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Microsoft Exchange List mailboxes",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://outlook.office365.com/adminapi/v2.0/users/:user-id/mailboxes",
            "params": [
              {
                "name": "user-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier or user principal name"
              }
            ]
          },
          "docs": "Discover the mailboxes associated with a user, including primary mailbox and archive mailbox information. Returns mailbox metadata needed for import and export operations."
        },
        {
          "info": {
            "name": "Microsoft Exchange List mailbox folders",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://outlook.office365.com/adminapi/v2.0/users/:user-id/mailboxes/:mailbox-id/folders",
            "params": [
              {
                "name": "user-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier or user principal name"
              },
              {
                "name": "mailbox-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the mailbox"
              },
              {
                "name": "$top",
                "value": "",
                "type": "query",
                "description": "Number of items to return"
              },
              {
                "name": "$skip",
                "value": "",
                "type": "query",
                "description": "Number of items to skip"
              }
            ]
          },
          "docs": "List all folders in the specified mailbox for content discovery. Returns folder hierarchy with metadata needed for targeted import and export operations."
        }
      ]
    }
  ],
  "bundled": true
}