Microsoft Exchange · Arazzo Workflow

Microsoft Exchange Discover Mailbox Content

Version 1.0.0

Discover a user's mailbox, drill into its folders, and list folder items.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub CalendarCollaborationContactsEmailEnterpriseArazzoWorkflows

Provider

microsoft-exchange

Workflows

discover-mailbox-content
Resolve a user's mailbox, its folders, and a folder's items.
Lists the mailboxes for a user, lists folders in the first mailbox, and lists items in the first folder.
3 steps inputs: userId outputs: firstItemId, folderId, mailboxId
1
listMailboxes
Discover the mailboxes associated with the user, returning the first mailbox identifier.
2
listFolders
List the folders in the first discovered mailbox, returning the first folder identifier.
3
listItems
List the items in the first folder to prepare for export processing.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Microsoft Exchange Discover Mailbox Content
  summary: Discover a user's mailbox, drill into its folders, and list folder items.
  description: >-
    A discovery pattern on the Microsoft Graph import/export API. The workflow
    finds the mailboxes for a user, drills into the first mailbox to list its
    folders, and then lists the items in the first folder to prepare for export
    or migration. Each step inlines its request so the flow can be executed
    without consulting the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: mailboxDiscoveryApi
  url: ../openapi/microsoft-exchange-mailbox-discovery-api-openapi.yml
  type: openapi
- name: mailboxExportApi
  url: ../openapi/microsoft-exchange-mailbox-export-api-openapi.yml
  type: openapi
workflows:
- workflowId: discover-mailbox-content
  summary: Resolve a user's mailbox, its folders, and a folder's items.
  description: >-
    Lists the mailboxes for a user, lists folders in the first mailbox, and
    lists items in the first folder.
  inputs:
    type: object
    required:
    - userId
    properties:
      userId:
        type: string
        description: The user id or user principal name whose mailbox is discovered.
  steps:
  - stepId: listMailboxes
    description: >-
      Discover the mailboxes associated with the user, returning the first
      mailbox identifier.
    operationId: listMailboxes
    parameters:
    - name: user-id
      in: path
      value: $inputs.userId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      mailboxId: $response.body#/value/0/id
  - stepId: listFolders
    description: >-
      List the folders in the first discovered mailbox, returning the first
      folder identifier.
    operationId: listMailboxFolders
    parameters:
    - name: user-id
      in: path
      value: $inputs.userId
    - name: mailbox-id
      in: path
      value: $steps.listMailboxes.outputs.mailboxId
    - name: $top
      in: query
      value: 50
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      folderId: $response.body#/value/0/id
      folderName: $response.body#/value/0/displayName
  - stepId: listItems
    description: >-
      List the items in the first folder to prepare for export processing.
    operationId: listMailboxFolderItems
    parameters:
    - name: user-id
      in: path
      value: $inputs.userId
    - name: mailbox-id
      in: path
      value: $steps.listMailboxes.outputs.mailboxId
    - name: folder-id
      in: path
      value: $steps.listFolders.outputs.folderId
    - name: $top
      in: query
      value: 25
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      firstItemId: $response.body#/value/0/id
  outputs:
    mailboxId: $steps.listMailboxes.outputs.mailboxId
    folderId: $steps.listFolders.outputs.folderId
    firstItemId: $steps.listItems.outputs.firstItemId

Work with this as data

Every workflow 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 arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • 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 workflow
curl "https://apis.io/api/v1/arazzo/microsoft-exchange-discover-mailbox-content-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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