Microsoft Graph chats.chat.Functions API

The chats.chat.Functions API from Microsoft Graph — 2 operation(s) for chats.chat.functions.

Operations 2

GET /chats/getAllMessages() Microsoft Graph Invoke function getAllMessages #
GET /chats/getAllRetainedMessages() Microsoft Graph Invoke function getAllRetainedMessages #

Documentation

📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/admin?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/agreementacceptance?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/agreement?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/teamsapp?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/application?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/applicationtemplate?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/azure-ad-auditlog-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/authenticationmethodconfiguration?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/authenticationmethodspolicy?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/certificatebasedauthconfiguration?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/chat?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/communications-api-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/complianceapioverview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/externalconnectors-externalconnection?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/contact?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/contract?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/copilot-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/datapolicyoperation?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/intune-apps-conceptual?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/intune-device-conceptual?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/device?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/directory?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/domaindnsrecord?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/domain?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/drive?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/education-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/employee-experience-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/externalconnectors-external?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/filter-query-parameter
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/excel?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/grouplifecyclepolicy?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/groups-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/groupsetting?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/groupsettingtemplate?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/identitycontainer?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/informationprotection?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/invitation?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/users?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/oauth2permissiongrant?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/organization?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/resourcespecificpermissiongrant?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/place?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/planner-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/policy-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/print?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/privacy?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/report?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/rolemanagement?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/schemaextension?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/scopedrolemembership?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/search-api-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/security-api-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/serviceprincipal?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/shares?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/sharepoint?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/solutions-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/filestorage?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/subscribedsku?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/subscription?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/teams-api-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/teamwork?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/tenantrelationship?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/user?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/auth/auth-concepts
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/workplace?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/sitepage?view=graph-rest-1.0

Specifications

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-graph-chats-chat-functions-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-graph-chats-chat-functions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Graph Admin Admin.admin Chats.chat.Functions API
  description: 'Microsoft Graph API for managing administrative resources in Microsoft Entra ID.

    This API enables administrators to manage Microsoft Edge browser settings, Internet Explorer mode configurations,

    site lists, shared browser sites, Microsoft 365 Apps installation options, people insights, service announcements,

    SharePoint settings, Copilot administration, directory administrative units, and admin consent policies.'
  version: 1.0.0
  contact:
    name: Microsoft Graph API Support
    url: https://developer.microsoft.com/graph
servers:
- url: https://graph.microsoft.com/v1.0
  description: Microsoft Graph API v1.0 endpoint
tags:
- name: chats.chat.Functions
paths:
  /chats/getAllMessages():
    description: Provides operations to call the getAllMessages method.
    get:
      tags:
      - chats.chat.Functions
      summary: Microsoft Graph Invoke function getAllMessages
      description: Get all messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. To learn more about how to use the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs.
      externalDocs:
        description: Find more info here
        url: https://learn.microsoft.com/graph/api/chats-getallmessages?view=graph-rest-1.0
      operationId: chats.getAllMessages
      parameters:
      - name: model
        in: query
        description: The payment model for the API
        schema:
          type: string
      - $ref: '#/components/parameters/top'
      - $ref: '#/components/parameters/skip'
      - $ref: '#/components/parameters/search'
      - $ref: '#/components/parameters/filter'
      - $ref: '#/components/parameters/count'
      - name: $select
        in: query
        description: Select properties to be returned
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      - name: $orderby
        in: query
        description: Order items by property values
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      - name: $expand
        in: query
        description: Expand related entities
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      responses:
        2XX:
          description: Success
          content:
            application/json:
              schema:
                title: Collection of chatMessage
                type: object
                allOf:
                - $ref: '#/components/schemas/BaseCollectionPaginationCountResponse'
                - type: object
                  properties:
                    value:
                      type: array
                      items:
                        $ref: '#/components/schemas/microsoft.graph.chatMessage'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: function
      x-ms-pageable:
        nextLinkName: '@odata.nextLink'
        operationName: listMore
  /chats/getAllRetainedMessages():
    description: Provides operations to call the getAllRetainedMessages method.
    get:
      tags:
      - chats.chat.Functions
      summary: Microsoft Graph Invoke function getAllRetainedMessages
      description: Get all retained messages from all chats that a user is a participant in, including one-on-one chats, group chats, and meeting chats. To learn more about how to use the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs.
      externalDocs:
        description: Find more info here
        url: https://learn.microsoft.com/graph/api/chat-getallretainedmessages?view=graph-rest-1.0
      operationId: chats.getAllRetainedMessages
      parameters:
      - $ref: '#/components/parameters/top'
      - $ref: '#/components/parameters/skip'
      - $ref: '#/components/parameters/search'
      - $ref: '#/components/parameters/filter'
      - $ref: '#/components/parameters/count'
      - name: $select
        in: query
        description: Select properties to be returned
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      - name: $orderby
        in: query
        description: Order items by property values
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      - name: $expand
        in: query
        description: Expand related entities
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      responses:
        2XX:
          description: Success
          content:
            application/json:
              schema:
                title: Collection of chatMessage
                type: object
                allOf:
                - $ref: '#/components/schemas/BaseCollectionPaginationCountResponse'
                - type: object
                  properties:
                    value:
                      type: array
                      items:
                        $ref: '#/components/schemas/microsoft.graph.chatMessage'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: function
      x-ms-pageable:
        nextLinkName: '@odata.nextLink'
        operationName: listMore
components:
  schemas:
    microsoft.graph.ODataErrors.ErrorDetails:
      required:
      - code
      - message
      type: object
      properties:
        code:
          type: string
        message:
          type: string
        target:
          type: string
          nullable: true
    microsoft.graph.teamworkHostedContent:
      allOf:
      - $ref: '#/components/schemas/microsoft.graph.entity'
      - title: teamworkHostedContent
        required:
        - '@odata.type'
        type: object
        properties:
          contentBytes:
            type: string
            description: Write only. Bytes for the hosted content (such as images).
            format: base64url
            nullable: true
          contentType:
            type: string
            description: Write only. Content type. such as image/png, image/jpg.
            nullable: true
          '@odata.type':
            type: string
        discriminator:
          propertyName: '@odata.type'
          mapping:
            '#microsoft.graph.chatMessageHostedContent': '#/components/schemas/microsoft.graph.chatMessageHostedContent'
    microsoft.graph.identitySet:
      title: identitySet
      required:
      - '@odata.type'
      type: object
      properties:
        application:
          anyOf:
          - $ref: '#/components/schemas/microsoft.graph.identity'
          - type: object
            nullable: true
          description: Optional. The application associated with this action.
        device:
          anyOf:
          - $ref: '#/components/schemas/microsoft.graph.identity'
          - type: object
            nullable: true
          description: Optional. The device associated with this action.
        user:
          anyOf:
          - $ref: '#/components/schemas/microsoft.graph.identity'
          - type: object
            nullable: true
          description: Optional. The user associated with this action.
        '@odata.type':
          type: string
      discriminator:
        propertyName: '@odata.type'
        mapping:
          '#microsoft.graph.aiInteractionMentionedIdentitySet': '#/components/schemas/microsoft.graph.aiInteractionMentionedIdentitySet'
          '#microsoft.graph.chatMessageFromIdentitySet': '#/components/schemas/microsoft.graph.chatMessageFromIdentitySet'
          '#microsoft.graph.chatMessageMentionedIdentitySet': '#/components/schemas/microsoft.graph.chatMessageMentionedIdentitySet'
          '#microsoft.graph.chatMessageReactionIdentitySet': '#/components/schemas/microsoft.graph.chatMessageReactionIdentitySet'
          '#microsoft.graph.communicationsIdentitySet': '#/components/schemas/microsoft.graph.communicationsIdentitySet'
          '#microsoft.graph.engagementIdentitySet': '#/components/schemas/microsoft.graph.engagementIdentitySet'
          '#microsoft.graph.sharePointIdentitySet': '#/components/schemas/microsoft.graph.sharePointIdentitySet'
    microsoft.graph.identity:
      title: identity
      required:
      - '@odata.type'
      type: object
      properties:
        displayName:
          type: string
          description: The display name of the identity.For drive items, the display name might not always be available or up to date. For example, if a user changes their display name the API might show the new value in a future response, but the items associated with the user don't show up as changed when using delta.
          nullable: true
        id:
          type: string
          description: Unique identifier for the identity or actor. For example, in the access reviews decisions API, this property might record the id of the principal, that is, the group, user, or application that's subject to review.
          nullable: true
        '@odata.type':
          type: string
      discriminator:
        propertyName: '@odata.type'
        mapping:
          '#microsoft.graph.azureCommunicationServicesUserIdentity': '#/components/schemas/microsoft.graph.azureCommunicationServicesUserIdentity'
          '#microsoft.graph.communicationsApplicationIdentity': '#/components/schemas/microsoft.graph.communicationsApplicationIdentity'
          '#microsoft.graph.communicationsApplicationInstanceIdentity': '#/components/schemas/microsoft.graph.communicationsApplicationInstanceIdentity'
          '#microsoft.graph.communicationsEncryptedIdentity': '#/components/schemas/microsoft.graph.communicationsEncryptedIdentity'
          '#microsoft.graph.communicationsGuestIdentity': '#/components/schemas/microsoft.graph.communicationsGuestIdentity'
          '#microsoft.graph.communicationsPhoneIdentity': '#/components/schemas/microsoft.graph.communicationsPhoneIdentity'
          '#microsoft.graph.communicationsUserIdentity': '#/components/schemas/microsoft.graph.communicationsUserIdentity'
          '#microsoft.graph.emailIdentity': '#/components/schemas/microsoft.graph.emailIdentity'
          '#microsoft.graph.initiator': '#/components/schemas/microsoft.graph.initiator'
          '#microsoft.graph.provisionedIdentity': '#/components/schemas/microsoft.graph.provisionedIdentity'
          '#microsoft.graph.provisioningServicePrincipal': '#/components/schemas/microsoft.graph.provisioningServicePrincipal'
          '#microsoft.graph.provisioningSystem': '#/components/schemas/microsoft.graph.provisioningSystem'
          '#microsoft.graph.servicePrincipalIdentity': '#/components/schemas/microsoft.graph.servicePrincipalIdentity'
          '#microsoft.graph.sharePointIdentity': '#/components/schemas/microsoft.graph.sharePointIdentity'
          '#microsoft.graph.teamworkApplicationIdentity': '#/components/schemas/microsoft.graph.teamworkApplicationIdentity'
          '#microsoft.graph.teamworkConversationIdentity': '#/components/schemas/microsoft.graph.teamworkConversationIdentity'
          '#microsoft.graph.teamworkTagIdentity': '#/components/schemas/microsoft.graph.teamworkTagIdentity'
          '#microsoft.graph.teamworkUserIdentity': '#/components/schemas/microsoft.graph.teamworkUserIdentity'
          '#microsoft.graph.userIdentity': '#/components/schemas/microsoft.graph.userIdentity'
          '#microsoft.graph.callRecords.userIdentity': '#/components/schemas/microsoft.graph.callRecords.userIdentity'
    microsoft.graph.chatMessageHostedContent:
      allOf:
      - $ref: '#/components/schemas/microsoft.graph.teamworkHostedContent'
      - title: chatMessageHostedContent
        required:
        - '@odata.type'
        type: object
        properties:
          '@odata.type':
            type: string
      x-ms-discriminator-value: '#microsoft.graph.chatMessageHostedContent'
    microsoft.graph.chatMessagePolicyViolationPolicyTip:
      title: chatMessagePolicyViolationPolicyTip
      required:
      - '@odata.type'
      type: object
      properties:
        complianceUrl:
          type: string
          description: The URL a user can visit to read about the data loss prevention policies for the organization. (ie, policies about what users shouldn't say in chats)
          nullable: true
        generalText:
          type: string
          description: Explanatory text shown to the sender of the message.
          nullable: true
        matchedConditionDescriptions:
          type: array
          items:
            type: string
            nullable: true
          description: The list of improper data in the message that was detected by the data loss prevention app. Each DLP app defines its own conditions, examples include 'Credit Card Number' and 'Social Security Number'.
        '@odata.type':
          type: string
    microsoft.graph.chatMessagePolicyViolationDlpActionTypes:
      title: chatMessagePolicyViolationDlpActionTypes
      enum:
      - none
      - notifySender
      - blockAccess
      - blockAccessExternal
      type: string
      x-ms-enum-flags:
        isFlags: true
    microsoft.graph.itemBody:
      title: itemBody
      required:
      - '@odata.type'
      type: object
      properties:
        content:
          type: string
          description: The content of the item.
          nullable: true
        contentType:
          anyOf:
          - $ref: '#/components/schemas/microsoft.graph.bodyType'
          - type: object
            nullable: true
          description: The type of the content. Possible values are text and html.
        '@odata.type':
          type: string
    microsoft.graph.chatMessageActions:
      title: chatMessageActions
      enum:
      - reactionAdded
      - reactionRemoved
      - actionUndefined
      - unknownFutureValue
      type: string
      x-ms-enum-flags:
        isFlags: true
    microsoft.graph.chatMessagePolicyViolationVerdictDetailsTypes:
      title: chatMessagePolicyViolationVerdictDetailsTypes
      enum:
      - none
      - allowFalsePositiveOverride
      - allowOverrideWithoutJustification
      - allowOverrideWithJustification
      type: string
      x-ms-enum-flags:
        isFlags: true
    microsoft.graph.channelIdentity:
      title: channelIdentity
      required:
      - '@odata.type'
      type: object
      properties:
        channelId:
          type: string
          description: The identity of the channel in which the message was posted.
          nullable: true
        teamId:
          type: string
          description: The identity of the team in which the message was posted.
          nullable: true
        '@odata.type':
          type: string
    microsoft.graph.teamworkConversationIdentity:
      allOf:
      - $ref: '#/components/schemas/microsoft.graph.identity'
      - title: teamworkConversationIdentity
        required:
        - '@odata.type'
        type: object
        properties:
          conversationIdentityType:
            anyOf:
            - $ref: '#/components/schemas/microsoft.graph.teamworkConversationIdentityType'
            - type: object
              nullable: true
            description: 'Type of conversation. The possible values are: team, channel, chat, and unknownFutureValue.'
          '@odata.type':
            type: string
            default: '#microsoft.graph.teamworkConversationIdentity'
      x-ms-discriminator-value: '#microsoft.graph.teamworkConversationIdentity'
    microsoft.graph.ODataErrors.InnerError:
      title: InnerError
      required:
      - '@odata.type'
      type: object
      properties:
        request-id:
          type: string
          description: Request Id as tracked internally by the service
          nullable: true
        client-request-id:
          type: string
          description: Client request Id as sent by the client application.
          nullable: true
        date:
          pattern: ^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$
          type: string
          description: Date when the error occured.
          format: date-time
          nullable: true
        '@odata.type':
          type: string
    microsoft.graph.chatMessagePolicyViolationUserActionTypes:
      title: chatMessagePolicyViolationUserActionTypes
      enum:
      - none
      - override
      - reportFalsePositive
      type: string
      x-ms-enum-flags:
        isFlags: true
    microsoft.graph.eventMessageDetail:
      title: eventMessageDetail
      required:
      - '@odata.type'
      type: object
      properties:
        '@odata.type':
          type: string
      discriminator:
        propertyName: '@odata.type'
        mapping:
          '#microsoft.graph.callEndedEventMessageDetail': '#/components/schemas/microsoft.graph.callEndedEventMessageDetail'
          '#microsoft.graph.callRecordingEventMessageDetail': '#/components/schemas/microsoft.graph.callRecordingEventMessageDetail'
          '#microsoft.graph.callStartedEventMessageDetail': '#/components/schemas/microsoft.graph.callStartedEventMessageDetail'
          '#microsoft.graph.callTranscriptEventMessageDetail': '#/components/schemas/microsoft.graph.callTranscriptEventMessageDetail'
          '#microsoft.graph.channelAddedEventMessageDetail': '#/components/schemas/microsoft.graph.channelAddedEventMessageDetail'
          '#microsoft.graph.channelDeletedEventMessageDetail': '#/components/schemas/microsoft.graph.channelDeletedEventMessageDetail'
          '#microsoft.graph.channelDescriptionUpdatedEventMessageDetail': '#/components/schemas/microsoft.graph.channelDescriptionUpdatedEventMessageDetail'
          '#microsoft.graph.channelRenamedEventMessageDetail': '#/components/schemas/microsoft.graph.channelRenamedEventMessageDetail'
          '#microsoft.graph.channelSetAsFavoriteByDefaultEventMessageDetail': '#/components/schemas/microsoft.graph.channelSetAsFavoriteByDefaultEventMessageDetail'
          '#microsoft.graph.channelUnsetAsFavoriteByDefaultEventMessageDetail': '#/components/schemas/microsoft.graph.channelUnsetAsFavoriteByDefaultEventMessageDetail'
          '#microsoft.graph.chatRenamedEventMessageDetail': '#/components/schemas/microsoft.graph.chatRenamedEventMessageDetail'
          '#microsoft.graph.conversationMemberRoleUpdatedEventMessageDetail': '#/components/schemas/microsoft.graph.conversationMemberRoleUpdatedEventMessageDetail'
          '#microsoft.graph.meetingPolicyUpdatedEventMessageDetail': '#/components/schemas/microsoft.graph.meetingPolicyUpdatedEventMessageDetail'
          '#microsoft.graph.membersAddedEventMessageDetail': '#/components/schemas/microsoft.graph.membersAddedEventMessageDetail'
          '#microsoft.graph.membersDeletedEventMessageDetail': '#/components/schemas/microsoft.graph.membersDeletedEventMessageDetail'
          '#microsoft.graph.membersJoinedEventMessageDetail': '#/components/schemas/microsoft.graph.membersJoinedEventMessageDetail'
          '#microsoft.graph.membersLeftEventMessageDetail': '#/components/schemas/microsoft.graph.membersLeftEventMessageDetail'
          '#microsoft.graph.messagePinnedEventMessageDetail': '#/components/schemas/microsoft.graph.messagePinnedEventMessageDetail'
          '#microsoft.graph.messageUnpinnedEventMessageDetail': '#/components/schemas/microsoft.graph.messageUnpinnedEventMessageDetail'
          '#microsoft.graph.tabUpdatedEventMessageDetail': '#/components/schemas/microsoft.graph.tabUpdatedEventMessageDetail'
          '#microsoft.graph.teamArchivedEventMessageDetail': '#/components/schemas/microsoft.graph.teamArchivedEventMessageDetail'
          '#microsoft.graph.teamCreatedEventMessageDetail': '#/components/schemas/microsoft.graph.teamCreatedEventMessageDetail'
          '#microsoft.graph.teamDescriptionUpdatedEventMessageDetail': '#/components/schemas/microsoft.graph.teamDescriptionUpdatedEventMessageDetail'
          '#microsoft.graph.teamJoiningDisabledEventMessageDetail': '#/components/schemas/microsoft.graph.teamJoiningDisabledEventMessageDetail'
          '#microsoft.graph.teamJoiningEnabledEventMessageDetail': '#/components/schemas/microsoft.graph.teamJoiningEnabledEventMessageDetail'
          '#microsoft.graph.teamRenamedEventMessageDetail': '#/components/schemas/microsoft.graph.teamRenamedEventMessageDetail'
          '#microsoft.graph.teamsAppInstalledEventMessageDetail': '#/components/schemas/microsoft.graph.teamsAppInstalledEventMessageDetail'
          '#microsoft.graph.teamsAppRemovedEventMessageDetail': '#/components/schemas/microsoft.graph.teamsAppRemovedEventMessageDetail'
          '#microsoft.graph.teamsAppUpgradedEventMessageDetail': '#/components/schemas/microsoft.graph.teamsAppUpgradedEventMessageDetail'
          '#microsoft.graph.teamUnarchivedEventMessageDetail': '#/components/schemas/microsoft.graph.teamUnarchivedEventMessageDetail'
    microsoft.graph.chatMessage:
      allOf:
      - $ref: '#/components/schemas/microsoft.graph.entity'
      - title: chatMessage
        required:
        - '@odata.type'
        type: object
        properties:
          attachments:
            type: array
            items:
              $ref: '#/components/schemas/microsoft.graph.chatMessageAttachment'
            description: References to attached objects like files, tabs, meetings etc.
          body:
            $ref: '#/components/schemas/microsoft.graph.itemBody'
          channelIdentity:
            anyOf:
            - $ref: '#/components/schemas/microsoft.graph.channelIdentity'
            - type: object
              nullable: true
            description: If the message was sent in a channel, represents identity of the channel.
          chatId:
            type: string
            description: If the message was sent in a chat, represents the identity of the chat.
            nullable: true
          createdDateTime:
            pattern: ^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$
            type: string
            description: Timestamp of when the chat message was created.
            format: date-time
            nullable: true
          deletedDateTime:
            pattern: ^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$
            type: string
            description: Read only. Timestamp at which the chat message was deleted, or null if not deleted.
            format: date-time
            nullable: true
          etag:
            type: string
            description: Read-only. Version number of the chat message.
            nullable: true
          eventDetail:
            anyOf:
            - $ref: '#/components/schemas/microsoft.graph.eventMessageDetail'
            - type: object
              nullable: true
            description: Read-only. If present, represents details of an event that happened in a chat, a channel, or a team, for example, adding new members. For event messages, the messageType property will be set to systemEventMessage.
          from:
            anyOf:
            - $ref: '#/components/schemas/microsoft.graph.chatMessageFromIdentitySet'
            - type: object
              nullable: true
            description: Details of the sender of the chat message. Can only be set during migration.
          importance:
            $ref: '#/components/schemas/microsoft.graph.chatMessageImportance'
          lastEditedDateTime:
            pattern: ^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$
            type: string
            description: Read only. Timestamp when edits to the chat message were made. Triggers an 'Edited' flag in the Teams UI. If no edits are made the value is null.
            format: date-time
            nullable: true
          lastModifiedDateTime:
            pattern: ^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$
            type: string
            description: Read only. Timestamp when the chat message is created (initial setting) or modified, including when a reaction is added or removed.
            format: date-time
            nullable: true
          locale:
            type: string
            description: Locale of the chat message set by the client. Always set to en-us.
          mentions:
            type: array
            items:
              $ref: '#/components/schemas/microsoft.graph.chatMessageMention'
            description: 'List of entities mentioned in the chat message. Supported entities are: user, bot, team, channel, chat, and tag.'
          messageHistory:
            type: array
            items:
              $ref: '#/components/schemas/microsoft.graph.chatMessageHistoryItem'
            description: List of activity history of a message item, including modification time and actions, such as reactionAdded, reactionRemoved, or reaction changes, on the message.
          messageType:
            $ref: '#/components/schemas/microsoft.graph.chatMessageType'
          policyViolation:
            anyOf:
            - $ref: '#/components/schemas/microsoft.graph.chatMessagePolicyViolation'
            - type: object
              nullable: true
            description: Defines the properties of a policy violation set by a data loss prevention (DLP) application.
          reactions:
            type: array
            items:
              $ref: '#/components/schemas/microsoft.graph.chatMessageReaction'
            description: Reactions for this chat message (for example, Like).
          replyToId:
            type: string
            description: Read-only. ID of the parent chat message or root chat message of the thread. (Only applies to chat messages in channels, not chats.)
            nullable: true
          subject:
            type: string
            description: The subject of the chat message, in plaintext.
            nullable: true
          summary:
            type: string
            description: Summary text of the chat message that could be used for push notifications and summary views or fall back views. Only applies to channel chat messages, not chat messages in a chat.
            nullable: true
          webUrl:
            type: string
            description: Read-only. Link to the message in Microsoft Teams.
            nullable: true
          hostedContents:
            type: array
            items:
              $ref: '#/components/schemas/microsoft.graph.chatMessageHostedContent'
            description: Content in a message hosted by Microsoft Teams - for example, images or code snippets.
            x-ms-navigationProperty: true
          replies:
            type: array
            items:
              $ref: '#/components/schemas/microsoft.graph.chatMessage'
            description: Replies for a specified message. Supports $expand for channel messages.
            x-ms-navigationProperty: true
          '@odata.type':
            type: string
      x-ms-discriminator-value: '#microsoft.graph.chatMessage'
    microsoft.graph.chatMessageReaction:
      title: chatMessageReaction
      required:
      - '@odata.type'
      type: object
      properties:
        createdDateTime:
          pattern: ^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$
          type: string
          description: The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
          format: date-time
        displayName:
          type: string
          description: The name of the reaction.
          nullable: true
        reactionContentUrl:
          type: string
          description: The hosted content URL for the custom reaction type.
          nullable: true
        reactionType:
          type: string
          description: The reaction type. Supported values include Unicode characters, custom, and some backward-compatible reaction types, such as like, angry, sad, laugh, heart, and surprised.
        user:
          $ref: '#/components/schemas/microsoft.graph.chatMessageReactionIdentitySet'
        '@odata.type':
          type: string
    microsoft.graph.chatMessageType:
      title: chatMessageType
      enum:
      - message
      - chatEvent
      - typing
      - unknownFutureValue
      - systemEventMessage
      type: string
    microsoft.graph.bodyType:
      title: bodyType
      enum:
      - text
      - html
      type: string
    microsoft.graph.chatMessageAttachment:
      title: chatMessageAttachment
      required:
      - '@odata.type'
      type: object
      properties:
        content:
          type: string
          description: The content of the attachment. If the attachment is a rich card, set the property to the rich card object. This property and contentUrl are mutually exclusive.
          nullable: true
        contentType:
          type: string
          description: 'The media type of the content attachment. The possible values are: reference: The attachment is a link to another file. Populate the contentURL with the link to the object.forwardedMessageReference: The attachment is a reference to a forwarded message. Populate the content with the original message context.Any contentType that is supported by the Bot Framework''s Attachment object.application/vnd.microsoft.card.codesnippet: A code snippet. application/vnd.microsoft.card.announcement: An announcement header.'
          nullable: true
        contentUrl:
          type: string
          description: The URL for the content of the attachment.
          nullable: true
        id:
          type: string
          description: Read-only. The unique ID of the attachment.
          nullable: true
        name:
          type: string
          description: The name of the attachment.
          nullable: true
        teamsAppId:
          type: string
          description: The ID of the Teams app that is associated with the attachment. The property is used to attribute a Teams message card to the specified app.
          nullable: true
        thumbnailUrl:
          type: string
          description: The URL to a thumbnail image that the channel can use if it supports using an alternative, smaller form of content or contentUrl. For example, if you set contentType to application/word and set contentUrl to the location of the Word document, you might include a thumbnail image that represents the document. The channel could display the thumbnail image instead of the document. When the user selects the image, the channel would open the document.
          nullable: true
        '@odata.type':
          type: string
    microsoft.graph.chatMessageMentionedIdentitySet:
      allOf:
      - $ref: '#/components/schemas/microsoft.graph.identitySet'
      - title: chatMessageMentionedIdentitySet
        required:
        - '@odata.type'
        type: object
        properties:
          conversation:
            anyOf:
            - $ref: '#/components/schemas/microsoft.graph.teamworkConversationIdentity'
            - type: object
              nullable: true
            description: If present, represents a conversation (for example, team, channel, or chat) @mentioned in a message.
          '@odata.type':
            type: string
            default: '#microsoft.graph.chatMessageMentionedIdentitySet'
      x-ms-discriminator-value: '#microsoft.graph.chatMessageMentionedIdentitySet'
    microsoft.graph.teamworkConversationIdentityType:
      title: teamworkConversationIdentityType
      enum:
      - team
      - channel
      - chat
      - unknownFutureValue
      type: string
    microsoft.graph.ODataErrors.MainError:
      required:
      - code
      - message
    

# --- truncated at 32 KB (160 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/microsoft-graph/refs/heads/main/openapi/microsoft-graph-chats-chat-functions-api-openapi.yml