Microsoft Outlook Mail Folders API

Operations on mail folders in a user mailbox

Operations 11

GET /me/mailFolders Microsoft Outlook List Mail Folders #
POST /me/mailFolders Microsoft Outlook Create Mail Folder #
GET /me/mailFolders/{mailFolder-id} Microsoft Outlook Get Mail Folder #
PATCH /me/mailFolders/{mailFolder-id} Microsoft Outlook Update Mail Folder #
DELETE /me/mailFolders/{mailFolder-id} Microsoft Outlook Delete Mail Folder #
GET /me/mailFolders/{mailFolder-id}/childFolders Microsoft Outlook List Child Folders #
POST /me/mailFolders/{mailFolder-id}/childFolders Microsoft Outlook Create Child Folder #
GET /me/mailFolders/{mailFolder-id}/messages Microsoft Outlook List Messages in Folder #
POST /me/mailFolders/{mailFolder-id}/messages Microsoft Outlook Create Message in Folder #
POST /me/mailFolders/{mailFolder-id}/copy Microsoft Outlook Copy Mail Folder #
POST /me/mailFolders/{mailFolder-id}/move Microsoft Outlook Move Mail Folder #

Documentation

📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/mail-api-overview?view=graph-rest-1.0
📖
Authentication
https://learn.microsoft.com/en-us/graph/auth/
📖
GettingStarted
https://learn.microsoft.com/en-us/graph/outlook-mail-concept-overview
📖
APIReference
https://learn.microsoft.com/en-us/graph/api/overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/calendar?view=graph-rest-1.0
📖
GettingStarted
https://learn.microsoft.com/en-us/graph/outlook-calendar-concept-overview
📖
APIReference
https://learn.microsoft.com/en-us/graph/api/resources/calendar-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/contact?view=graph-rest-1.0
📖
GettingStarted
https://learn.microsoft.com/en-us/graph/outlook-contacts-concept-overview
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/todo-overview?view=graph-rest-1.0
📖
GettingStarted
https://learn.microsoft.com/en-us/graph/todo-concept-overview
📖
Documentation
https://learn.microsoft.com/en-us/graph/people-insights-overview
📖
Documentation
https://learn.microsoft.com/en-us/graph/outlook-change-notifications-overview
📖
GettingStarted
https://learn.microsoft.com/en-us/graph/change-notifications-delivery-webhooks
📖
APIReference
https://learn.microsoft.com/en-us/graph/api/resources/change-notifications-api-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/manage-focused-inbox?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/messagerule?view=graph-rest-1.0
📖
GettingStarted
https://learn.microsoft.com/en-us/graph/outlook-organize-messages
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/outlookcategory?view=graph-rest-1.0

Specifications

Code Examples

Schemas & Data

Other Resources

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/microsoft-outlook-mail-folders-api"
All apis
curl "https://apis.io/api/v1/apis?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.

OpenAPI Specification

microsoft-outlook-mail-folders-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Outlook Microsoft Graph Mail Attachments Mail Folders API
  description: API for accessing Outlook email messages, mail folders, and attachments through Microsoft Graph. Provides full CRUD operations on messages, mail folder management, attachment handling, and message actions such as send, reply, forward, copy, and move.
  version: 1.0.0
  contact:
    name: Microsoft Graph Support
    url: https://developer.microsoft.com/en-us/graph/support
  license:
    name: Microsoft API Terms of Use
    url: https://learn.microsoft.com/en-us/legal/microsoft-apis/terms-of-use
  x-api-id: microsoft-graph-mail
  x-audience: external
servers:
- url: https://graph.microsoft.com/v1.0
  description: Microsoft Graph v1.0 production endpoint
security:
- oauth2: []
tags:
- name: Mail Folders
  description: Operations on mail folders in a user mailbox
paths:
  /me/mailFolders:
    get:
      operationId: listMailFolders
      summary: Microsoft Outlook List Mail Folders
      description: 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.
      tags:
      - Mail Folders
      parameters:
      - $ref: '#/components/parameters/top'
      - $ref: '#/components/parameters/skip'
      - $ref: '#/components/parameters/select'
      - $ref: '#/components/parameters/filter'
      - name: includeHiddenFolders
        in: query
        description: Include hidden mail folders in the response.
        schema:
          type: string
        example: example_value
      responses:
        '200':
          description: Successfully retrieved mail folders.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MailFolderCollectionResponse'
              examples:
                Listmailfolders200Example:
                  summary: Default listMailFolders 200 response
                  x-microcks-default: true
                  value:
                    '@odata.context': example_value
                    '@odata.nextLink': https://www.example.com
                    value:
                    - id: abc123
                      displayName: example_value
                      parentFolderId: '500123'
                      childFolderCount: 10
                      unreadItemCount: 10
                      totalItemCount: 10
                      isHidden: true
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    post:
      operationId: createMailFolder
      summary: Microsoft Outlook Create Mail Folder
      description: Create a new mail folder in the root folder of the user's mailbox.
      tags:
      - Mail Folders
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MailFolder'
            examples:
              CreatemailfolderRequestExample:
                summary: Default createMailFolder request
                x-microcks-default: true
                value:
                  id: abc123
                  displayName: example_value
                  parentFolderId: '500123'
                  childFolderCount: 10
                  unreadItemCount: 10
                  totalItemCount: 10
                  isHidden: true
      responses:
        '201':
          description: Successfully created mail folder.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MailFolder'
              examples:
                Createmailfolder201Example:
                  summary: Default createMailFolder 201 response
                  x-microcks-default: true
                  value:
                    id: abc123
                    displayName: example_value
                    parentFolderId: '500123'
                    childFolderCount: 10
                    unreadItemCount: 10
                    totalItemCount: 10
                    isHidden: true
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /me/mailFolders/{mailFolder-id}:
    get:
      operationId: getMailFolder
      summary: Microsoft Outlook Get Mail Folder
      description: Read the properties and relationships of a mail folder object.
      tags:
      - Mail Folders
      parameters:
      - $ref: '#/components/parameters/mailFolderId'
      - $ref: '#/components/parameters/select'
      responses:
        '200':
          description: Successfully retrieved mail folder.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MailFolder'
              examples:
                Getmailfolder200Example:
                  summary: Default getMailFolder 200 response
                  x-microcks-default: true
                  value:
                    id: abc123
                    displayName: example_value
                    parentFolderId: '500123'
                    childFolderCount: 10
                    unreadItemCount: 10
                    totalItemCount: 10
                    isHidden: true
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    patch:
      operationId: updateMailFolder
      summary: Microsoft Outlook Update Mail Folder
      description: Update the properties of a mail folder object.
      tags:
      - Mail Folders
      parameters:
      - $ref: '#/components/parameters/mailFolderId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MailFolder'
            examples:
              UpdatemailfolderRequestExample:
                summary: Default updateMailFolder request
                x-microcks-default: true
                value:
                  id: abc123
                  displayName: example_value
                  parentFolderId: '500123'
                  childFolderCount: 10
                  unreadItemCount: 10
                  totalItemCount: 10
                  isHidden: true
      responses:
        '200':
          description: Successfully updated mail folder.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MailFolder'
              examples:
                Updatemailfolder200Example:
                  summary: Default updateMailFolder 200 response
                  x-microcks-default: true
                  value:
                    id: abc123
                    displayName: example_value
                    parentFolderId: '500123'
                    childFolderCount: 10
                    unreadItemCount: 10
                    totalItemCount: 10
                    isHidden: true
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    delete:
      operationId: deleteMailFolder
      summary: Microsoft Outlook Delete Mail Folder
      description: Delete the specified mail folder. The folder can be a mailSearchFolder.
      tags:
      - Mail Folders
      parameters:
      - $ref: '#/components/parameters/mailFolderId'
      responses:
        '204':
          description: Successfully deleted mail folder.
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /me/mailFolders/{mailFolder-id}/childFolders:
    get:
      operationId: listChildFolders
      summary: Microsoft Outlook List Child Folders
      description: Get the folder collection under the specified folder.
      tags:
      - Mail Folders
      parameters:
      - $ref: '#/components/parameters/mailFolderId'
      - $ref: '#/components/parameters/top'
      - $ref: '#/components/parameters/skip'
      responses:
        '200':
          description: Successfully retrieved child folders.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MailFolderCollectionResponse'
              examples:
                Listchildfolders200Example:
                  summary: Default listChildFolders 200 response
                  x-microcks-default: true
                  value:
                    '@odata.context': example_value
                    '@odata.nextLink': https://www.example.com
                    value:
                    - id: abc123
                      displayName: example_value
                      parentFolderId: '500123'
                      childFolderCount: 10
                      unreadItemCount: 10
                      totalItemCount: 10
                      isHidden: true
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    post:
      operationId: createChildFolder
      summary: Microsoft Outlook Create Child Folder
      description: Create a new child mail folder under the specified folder.
      tags:
      - Mail Folders
      parameters:
      - $ref: '#/components/parameters/mailFolderId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MailFolder'
            examples:
              CreatechildfolderRequestExample:
                summary: Default createChildFolder request
                x-microcks-default: true
                value:
                  id: abc123
                  displayName: example_value
                  parentFolderId: '500123'
                  childFolderCount: 10
                  unreadItemCount: 10
                  totalItemCount: 10
                  isHidden: true
      responses:
        '201':
          description: Successfully created child folder.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MailFolder'
              examples:
                Createchildfolder201Example:
                  summary: Default createChildFolder 201 response
                  x-microcks-default: true
                  value:
                    id: abc123
                    displayName: example_value
                    parentFolderId: '500123'
                    childFolderCount: 10
                    unreadItemCount: 10
                    totalItemCount: 10
                    isHidden: true
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /me/mailFolders/{mailFolder-id}/messages:
    get:
      operationId: listMessagesInFolder
      summary: Microsoft Outlook List Messages in Folder
      description: Get all the messages in the specified mail folder.
      tags:
      - Mail Folders
      parameters:
      - $ref: '#/components/parameters/mailFolderId'
      - $ref: '#/components/parameters/top'
      - $ref: '#/components/parameters/skip'
      - $ref: '#/components/parameters/select'
      - $ref: '#/components/parameters/filter'
      - $ref: '#/components/parameters/orderby'
      responses:
        '200':
          description: Successfully retrieved messages from folder.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MessageCollectionResponse'
              examples:
                Listmessagesinfolder200Example:
                  summary: Default listMessagesInFolder 200 response
                  x-microcks-default: true
                  value:
                    '@odata.context': example_value
                    '@odata.count': 10
                    '@odata.nextLink': https://www.example.com
                    value:
                    - id: abc123
                      createdDateTime: '2026-01-15T10:30:00Z'
                      lastModifiedDateTime: '2026-01-15T10:30:00Z'
                      changeKey: example_value
                      categories: {}
                      receivedDateTime: '2026-01-15T10:30:00Z'
                      sentDateTime: '2026-01-15T10:30:00Z'
                      hasAttachments: true
                      internetMessageId: '500123'
                      internetMessageHeaders: {}
                      subject: example_value
                      bodyPreview: example_value
                      importance: low
                      parentFolderId: '500123'
                      conversationId: '500123'
                      conversationIndex: example_value
                      isDeliveryReceiptRequested: true
                      isReadReceiptRequested: true
                      isRead: true
                      isDraft: true
                      webLink: https://www.example.com
                      inferenceClassification: focused
                      toRecipients: {}
                      ccRecipients: {}
                      bccRecipients: {}
                      replyTo: {}
                      attachments: {}
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    post:
      operationId: createMessageInFolder
      summary: Microsoft Outlook Create Message in Folder
      description: Create a new message draft in the specified mail folder.
      tags:
      - Mail Folders
      parameters:
      - $ref: '#/components/parameters/mailFolderId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Message'
            examples:
              CreatemessageinfolderRequestExample:
                summary: Default createMessageInFolder request
                x-microcks-default: true
                value:
                  id: abc123
                  createdDateTime: '2026-01-15T10:30:00Z'
                  lastModifiedDateTime: '2026-01-15T10:30:00Z'
                  changeKey: example_value
                  categories:
                  - example_value
                  receivedDateTime: '2026-01-15T10:30:00Z'
                  sentDateTime: '2026-01-15T10:30:00Z'
                  hasAttachments: true
                  internetMessageId: '500123'
                  internetMessageHeaders:
                  - name: Example Title
                    value: example_value
                  subject: example_value
                  body:
                    contentType: text
                    content: example_value
                  bodyPreview: example_value
                  importance: low
                  parentFolderId: '500123'
                  conversationId: '500123'
                  conversationIndex: example_value
                  isDeliveryReceiptRequested: true
                  isReadReceiptRequested: true
                  isRead: true
                  isDraft: true
                  webLink: https://www.example.com
                  inferenceClassification: focused
                  flag:
                    flagStatus: notFlagged
                  from: {}
                  sender: {}
                  toRecipients:
                  - {}
                  ccRecipients:
                  - {}
                  bccRecipients:
                  - {}
                  replyTo:
                  - {}
                  uniqueBody:
                    contentType: text
                    content: example_value
                  attachments:
                  - '@odata.type': '#microsoft.graph.fileAttachment'
                    id: abc123
                    name: Example Title
                    contentType: example_value
                    size: 10
                    isInline: true
                    lastModifiedDateTime: '2026-01-15T10:30:00Z'
                    contentBytes: example_value
                    contentId: '500123'
                    contentLocation: example_value
      responses:
        '201':
          description: Successfully created message in folder.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Message'
              examples:
                Createmessageinfolder201Example:
                  summary: Default createMessageInFolder 201 response
                  x-microcks-default: true
                  value:
                    id: abc123
                    createdDateTime: '2026-01-15T10:30:00Z'
                    lastModifiedDateTime: '2026-01-15T10:30:00Z'
                    changeKey: example_value
                    categories:
                    - example_value
                    receivedDateTime: '2026-01-15T10:30:00Z'
                    sentDateTime: '2026-01-15T10:30:00Z'
                    hasAttachments: true
                    internetMessageId: '500123'
                    internetMessageHeaders:
                    - name: Example Title
                      value: example_value
                    subject: example_value
                    body:
                      contentType: text
                      content: example_value
                    bodyPreview: example_value
                    importance: low
                    parentFolderId: '500123'
                    conversationId: '500123'
                    conversationIndex: example_value
                    isDeliveryReceiptRequested: true
                    isReadReceiptRequested: true
                    isRead: true
                    isDraft: true
                    webLink: https://www.example.com
                    inferenceClassification: focused
                    flag:
                      flagStatus: notFlagged
                    from: {}
                    sender: {}
                    toRecipients:
                    - {}
                    ccRecipients:
                    - {}
                    bccRecipients:
                    - {}
                    replyTo:
                    - {}
                    uniqueBody:
                      contentType: text
                      content: example_value
                    attachments:
                    - '@odata.type': '#microsoft.graph.fileAttachment'
                      id: abc123
                      name: Example Title
                      contentType: example_value
                      size: 10
                      isInline: true
                      lastModifiedDateTime: '2026-01-15T10:30:00Z'
                      contentBytes: example_value
                      contentId: '500123'
                      contentLocation: example_value
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /me/mailFolders/{mailFolder-id}/copy:
    post:
      operationId: copyMailFolder
      summary: Microsoft Outlook Copy Mail Folder
      description: Copy a mail folder and its contents to another mail folder.
      tags:
      - Mail Folders
      parameters:
      - $ref: '#/components/parameters/mailFolderId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                destinationId:
                  type: string
                  description: The destination folder ID or well-known folder name.
              required:
              - destinationId
            examples:
              CopymailfolderRequestExample:
                summary: Default copyMailFolder request
                x-microcks-default: true
                value:
                  destinationId: '500123'
      responses:
        '200':
          description: Successfully copied mail folder.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MailFolder'
              examples:
                Copymailfolder200Example:
                  summary: Default copyMailFolder 200 response
                  x-microcks-default: true
                  value:
                    id: abc123
                    displayName: example_value
                    parentFolderId: '500123'
                    childFolderCount: 10
                    unreadItemCount: 10
                    totalItemCount: 10
                    isHidden: true
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /me/mailFolders/{mailFolder-id}/move:
    post:
      operationId: moveMailFolder
      summary: Microsoft Outlook Move Mail Folder
      description: Move a mail folder and its contents to another mail folder.
      tags:
      - Mail Folders
      parameters:
      - $ref: '#/components/parameters/mailFolderId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                destinationId:
                  type: string
                  description: The destination folder ID or well-known folder name.
              required:
              - destinationId
            examples:
              MovemailfolderRequestExample:
                summary: Default moveMailFolder request
                x-microcks-default: true
                value:
                  destinationId: '500123'
      responses:
        '200':
          description: Successfully moved mail folder.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MailFolder'
              examples:
                Movemailfolder200Example:
                  summary: Default moveMailFolder 200 response
                  x-microcks-default: true
                  value:
                    id: abc123
                    displayName: example_value
                    parentFolderId: '500123'
                    childFolderCount: 10
                    unreadItemCount: 10
                    totalItemCount: 10
                    isHidden: true
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
components:
  schemas:
    Recipient:
      type: object
      description: Represents information about a user or contact in a message.
      properties:
        emailAddress:
          $ref: '#/components/schemas/EmailAddress'
    MessageCollectionResponse:
      type: object
      description: Collection of message resources with optional pagination link.
      properties:
        '@odata.context':
          type: string
          description: The OData context URL.
          example: example_value
        '@odata.count':
          type: integer
          description: The total count of matching resources.
          example: 10
        '@odata.nextLink':
          type: string
          format: uri
          description: The URL for the next page of results.
          example: https://www.example.com
        value:
          type: array
          items:
            $ref: '#/components/schemas/Message'
          example: []
    Message:
      type: object
      description: A message in a mailFolder.
      properties:
        id:
          type: string
          description: Unique identifier for the message. Read-only.
          readOnly: true
          example: abc123
        createdDateTime:
          type: string
          format: date-time
          description: The date and time the message was created in UTC (ISO 8601).
          readOnly: true
          example: '2026-01-15T10:30:00Z'
        lastModifiedDateTime:
          type: string
          format: date-time
          description: The date and time the message was last changed in UTC (ISO 8601).
          readOnly: true
          example: '2026-01-15T10:30:00Z'
        changeKey:
          type: string
          description: The version of the message.
          readOnly: true
          example: example_value
        categories:
          type: array
          items:
            type: string
          description: The categories associated with the message.
          example: []
        receivedDateTime:
          type: string
          format: date-time
          description: The date and time the message was received in UTC (ISO 8601).
          example: '2026-01-15T10:30:00Z'
        sentDateTime:
          type: string
          format: date-time
          description: The date and time the message was sent in UTC (ISO 8601).
          example: '2026-01-15T10:30:00Z'
        hasAttachments:
          type: boolean
          description: Indicates whether the message has attachments. Does not include inline attachments.
          example: true
        internetMessageId:
          type: string
          description: The message ID in the format specified by RFC 2822.
          example: '500123'
        internetMessageHeaders:
          type: array
          items:
            $ref: '#/components/schemas/InternetMessageHeader'
          description: Collection of message headers defined by RFC 5322. Returned only on applying a $select query option.
          example: []
        subject:
          type: string
          description: The subject of the message.
          example: example_value
        body:
          $ref: '#/components/schemas/ItemBody'
        bodyPreview:
          type: string
          description: The first 255 characters of the message body in text format.
          readOnly: true
          example: example_value
        importance:
          type: string
          enum:
          - low
          - normal
          - high
          description: The importance of the message.
          example: low
        parentFolderId:
          type: string
          description: The unique identifier for the message's parent mailFolder.
          example: '500123'
        conversationId:
          type: string
          description: The ID of the conversation the email belongs to.
          example: '500123'
        conversationIndex:
          type: string
          format: binary
          description: Indicates the position of the message within the conversation.
          example: example_value
        isDeliveryReceiptRequested:
          type: boolean
          description: Indicates whether a delivery receipt is requested.
          example: true
        isReadReceiptRequested:
          type: boolean
          description: Indicates whether a read receipt is requested.
          example: true
        isRead:
          type: boolean
          description: Indicates whether the message has been read.
          example: true
        isDraft:
          type: boolean
          description: Indicates whether the message is a draft.
          example: true
        webLink:
          type: string
          format: uri
          description: The URL to open the message in Outlook on the web.
          readOnly: true
          example: https://www.example.com
        inferenceClassification:
          type: string
          enum:
          - focused
          - other
          description: The classification of the message based on inferred relevance or importance, or on an explicit override.
          example: focused
        flag:
          $ref: '#/components/schemas/FollowupFlag'
        from:
          $ref: '#/components/schemas/Recipient'
        sender:
          $ref: '#/components/schemas/Recipient'
        toRecipients:
          type: array
          items:
            $ref: '#/components/schemas/Recipient'
          description: The To recipients for the message.
          example: []
        ccRecipients:
          type: array
          items:
            $ref: '#/components/schemas/Recipient'
          description: The Cc recipients for the message.
          example: []
        bccRecipients:
          type: array
          items:
            $ref: '#/components/schemas/Recipient'
          description: The Bcc recipients for the message.
          example: []
        replyTo:
          type: array
          items:
            $ref: '#/components/schemas/Recipient'
          description: The email addresses to use when replying.
          example: []
        uniqueBody:
          $ref: '#/components/schemas/ItemBody'
        attachments:
          type: array
          items:
            $ref: '#/components/schemas/Attachment'
          description: The fileAttachment and itemAttachment attachments for the message.
          example: []
    InternetMessageHeader:
      type: object
      description: A key-value pair representing an Internet message header as defined by RFC 5322.
      properties:
        name:
          type: string
          description: The name of the message header.
          example: Example Title
        value:
          type: string
          description: The value of the message header.
          example: example_value
    FollowupFlag:
      type: object
      description: Represents the follow-up flag status on a message.
      properties:
        completedDateTime:
          $ref: '#/components/schemas/DateTimeTimeZone'
        dueDateTime:
          $ref: '#/components/schemas/DateTimeTimeZone'
        startDateTime:
          $ref: '#/components/schemas/DateTimeTimeZone'
        flagStatus:
          type: string
          enum:
          - notFlagged
          - complete
          - flagged
          description: The follow-up status.
          example: notFlagged
    ODataError:
      type: object
      description: OData error response from Microsoft Graph.
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: The error code.
            message:
              type: string
              description: The error message.
            innerError:
              type: object
              properties:
                request-id:
                  type: string
                date:
                  type: string
                  format: date-time
          example: example_value
    MailFolder:
      type: object
      description: A mail folder in a user's mailbox, such as Inbox and Drafts. Mail folders can contain messages, other Outlook items, and child mail folders.
      properties:
        id:
          type: string
          description: The unique identifier of the mail folder. Read-only.
          readOnly: true
          example: abc123
        displayName:
          type: string
          description: The mail folder's display name.
          example: example_value
        parentFolderId:
          type: string
          description: The unique identifier f

# --- truncated at 32 KB (39 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/microsoft-outlook/refs/heads/main/openapi/microsoft-outlook-mail-folders-api-openapi.yml