Microsoft Office 365 · Arazzo Workflow

Microsoft Office 365 Triage Inbox Message

Version 1.0.0

Read the latest inbox message, then mark it as read and categorize it.

1 workflow 1 source API 1 provider
View Spec View on GitHub CloudCollaborationEnterpriseMicrosoftProductivityArazzoWorkflows

Provider

microsoft-office-365

Workflows

triage-inbox-message
Pull the newest inbox message and mark it read with a category.
Lists inbox messages newest-first via GET /me/mailFolders/{mailFolder-id}/messages (200), reads the top message via GET /me/messages/{message-id} (200), then patches it via PATCH /me/messages/{message-id} (200).
3 steps inputs: category outputs: categories, messageId, subject
1
listInbox
List messages in the well-known inbox folder ordered by received date descending, returning the most recent message first.
2
readMessage
Fetch the latest message by id to retrieve its full content.
3
markReadAndCategorize
Patch the message to mark it as read and apply the supplied category. Returns the updated message object.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Microsoft Office 365 Triage Inbox Message
  summary: Read the latest inbox message, then mark it as read and categorize it.
  description: >-
    An inbox triage flow over the signed-in user's mailbox. The workflow lists
    the most recent message in the well-known inbox folder, fetches that message
    by id for its full content, and then patches the message to mark it read and
    apply a category. The update returns 200 with the revised message. Every step
    spells out its request inline so the flow can be read and executed without
    opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: mailApi
  url: ../openapi/microsoft-office-365-mail-api-openapi.yml
  type: openapi
workflows:
- workflowId: triage-inbox-message
  summary: Pull the newest inbox message and mark it read with a category.
  description: >-
    Lists inbox messages newest-first via GET /me/mailFolders/{mailFolder-id}/messages
    (200), reads the top message via GET /me/messages/{message-id} (200), then
    patches it via PATCH /me/messages/{message-id} (200).
  inputs:
    type: object
    required:
    - category
    properties:
      category:
        type: string
        description: The category label to apply to the triaged message.
  steps:
  - stepId: listInbox
    description: >-
      List messages in the well-known inbox folder ordered by received date
      descending, returning the most recent message first.
    operationId: listMailFolderMessages
    parameters:
    - name: mailFolder-id
      in: path
      value: inbox
    - name: $orderby
      in: query
      value: receivedDateTime desc
    - name: $top
      in: query
      value: 1
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      latestMessageId: $response.body#/value/0/id
  - stepId: readMessage
    description: Fetch the latest message by id to retrieve its full content.
    operationId: getMessage
    parameters:
    - name: message-id
      in: path
      value: $steps.listInbox.outputs.latestMessageId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      messageId: $response.body#/id
      subject: $response.body#/subject
  - stepId: markReadAndCategorize
    description: >-
      Patch the message to mark it as read and apply the supplied category.
      Returns the updated message object.
    operationId: updateMessage
    parameters:
    - name: message-id
      in: path
      value: $steps.readMessage.outputs.messageId
    requestBody:
      contentType: application/json
      payload:
        isRead: true
        categories:
        - $inputs.category
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      isRead: $response.body#/isRead
      categories: $response.body#/categories
  outputs:
    messageId: $steps.readMessage.outputs.messageId
    subject: $steps.readMessage.outputs.subject
    categories: $steps.markReadAndCategorize.outputs.categories

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-office-365-triage-inbox-message-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.