Microsoft Outlook Chats.chat Message API

The chats.chatMessage API from Microsoft Outlook — 26 operation(s) for chats.chatmessage.

GitHub OpenAPI

Operations 42

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /chats/{chat-id}/messages List messages in a chat · List messages in a chat #
Ask an LLM
“What messages have been sent in a chat?”
“Can I filter a chat's messages by a property?”
Tell an agent
List messages in chat {chat}.
Show chat {chat} messages matching {filter}.
POST /chats/{chat-id}/messages Send a message in a chat · Send message in a chat #
Ask an LLM
“How do I post a message in a Teams chat?”
“Can I attach files to a chat message?”
Tell an agent
Send a message in chat {chat}.
Post a chat message in {chat} with body {body}.
GET /chats/{chat-id}/messages/{chatMessage-id} Get a chat message · Get chatMessage in a channel or chat #
Ask an LLM
“What does a specific chat message say?”
“Can I read one message from a chat by its ID?”
Tell an agent
Get message {message} in chat {chat}.
Show chat {chat} message {message}.
PATCH /chats/{chat-id}/messages/{chatMessage-id} Edit a chat message · Update the navigation property messages in chats #
Ask an LLM
“Can I edit the text of a message I sent in a chat?”
“How do I change the importance of a chat message?”
Tell an agent
Edit message {message} in chat {chat}.
Change the body of chat {chat} message {message} to {body}.
DELETE /chats/{chat-id}/messages/{chatMessage-id} Delete a chat message · Delete navigation property messages for chats #
Ask an LLM
“How do I delete a message from a chat?”
“Can I remove a single chat message by its ID?”
Tell an agent destructive · confirm first
Delete message {message} from chat {chat}.
Remove chat {chat} message {message}.
GET /chats/{chat-id}/messages/{chatMessage-id}/hostedContents List hosted content in a chat message · List hostedContents #
Ask an LLM
“Which files are hosted inside a chat message?”
“Can I list the hosted content of a chat message?”
Tell an agent
List hosted content in message {message} of chat {chat}.
Show the files hosted in chat {chat} message {message}.
POST /chats/{chat-id}/messages/{chatMessage-id}/hostedContents Host a file in a chat message · Create new navigation property to hostedContents for chats #
Ask an LLM
“How do I attach a file to a chat message?”
“Can I upload a hosted content item into a chat message?”
Tell an agent
Host a file in message {message} of chat {chat}.
Attach a hosted content item to chat {chat} message {message}.
GET /chats/{chat-id}/messages/{chatMessage-id}/hostedContents/{chatMessageHostedContent-id} Get hosted content in a chat message · Get chatMessageHostedContent #
Ask an LLM
“What are the properties of a hosted content item in a chat message?”
“Can I fetch one hosted content object from a chat message?”
Tell an agent
Get hosted content {content} in message {message} of chat {chat}.
Show chat {chat} message {message} hosted content {content}.
PATCH /chats/{chat-id}/messages/{chatMessage-id}/hostedContents/{chatMessageHostedContent-id} Edit hosted content in a chat message · Update the navigation property hostedContents in chats #
Ask an LLM
“Can I change the type of hosted content in a chat message?”
“How do I update a hosted content object on a chat message?”
Tell an agent
Update hosted content {content} in message {message} of chat {chat}.
Change the type of chat {chat} message {message} hosted content {content} to {type}.
DELETE /chats/{chat-id}/messages/{chatMessage-id}/hostedContents/{chatMessageHostedContent-id} Delete hosted content from a chat message · Delete navigation property hostedContents for chats #
Ask an LLM
“How do I remove a hosted file from a chat message?”
“Can I delete a hosted content object from a chat message?”
Tell an agent destructive · confirm first
Delete hosted content {content} from message {message} in chat {chat}.
Remove chat {chat} message {message} hosted content {content}.
GET /chats/{chat-id}/messages/{chatMessage-id}/hostedContents/{chatMessageHostedContent-id}/$value Download hosted content from a chat message · List hostedContents #
Ask an LLM
“How do I download the file hosted inside a chat message?”
“Can I fetch the bytes of hosted content in a chat message?”
Tell an agent
Download hosted content {content} from message {message} in chat {chat}.
Get the file bytes of chat {chat} message {message} hosted content {content}.
PUT /chats/{chat-id}/messages/{chatMessage-id}/hostedContents/{chatMessageHostedContent-id}/$value Replace hosted content in a chat message · Update media content for the navigation property hostedContents in chats #
Ask an LLM
“How do I replace the file hosted inside a chat message?”
“Can I overwrite hosted content on a chat message?”
Tell an agent
Replace hosted content {content} in message {message} of chat {chat}.
Overwrite the file in chat {chat} message {message} hosted content {content}.
DELETE /chats/{chat-id}/messages/{chatMessage-id}/hostedContents/{chatMessageHostedContent-id}/$value Delete media content of a chat message's hosted item · Delete media content for the navigation property hostedContents in chats #
Ask an LLM
“How do I wipe the media stored in a hosted content item on a Teams chat message?”
“Can I clear the raw media value of a hosted item in a chat message, guarded by an ETag?”
Tell an agent destructive · confirm first
Wipe the media value of hosted item {hosted_content} on message {message} in chat {chat}.
Clear the stored media bytes of hosted item {hosted_content} on message {message} in chat {chat} only if ETag {etag} matches.
GET /chats/{chat-id}/messages/{chatMessage-id}/hostedContents/$count Count hosted content in a chat message · Get the number of the resource #
Ask an LLM
“How many hosted files are in a chat message?”
“Can I count hosted content items in a chat message?”
Tell an agent
Count hosted content in message {message} of chat {chat}.
Tell me how many files hosted in chat {chat} message {message}.
POST /chats/{chat-id}/messages/{chatMessage-id}/setReaction React to a chat message · Invoke action setReaction #
Ask an LLM
“How do I react to a message in a chat with a like?”
“Can I add a reaction to a chat message?”
Tell an agent
React to message {message} in chat {chat} with {reaction}.
Like chat {chat} message {message}.
POST /chats/{chat-id}/messages/{chatMessage-id}/softDelete Soft-delete a chat message · Invoke action softDelete #
Ask an LLM
“How do I delete a chat message without permanently removing it?”
“Can I soft-delete a message in a chat?”
Tell an agent destructive · confirm first
Soft-delete message {message} in chat {chat}.
Delete chat {chat} message {message} without removing it permanently.
POST /chats/{chat-id}/messages/{chatMessage-id}/undoSoftDelete Undo soft-deleting a chat message · Invoke action undoSoftDelete #
Ask an LLM
“How do I bring back a chat message I soft-deleted?”
“Can I undo a soft-delete on a chat message?”
Tell an agent
Undo the soft-delete of message {message} in chat {chat}.
Restore chat {chat} message {message}.
POST /chats/{chat-id}/messages/{chatMessage-id}/unsetReaction Remove a reaction from a chat message · Invoke action unsetReaction #
Ask an LLM
“How do I remove my reaction from a chat message?”
“Can I unset a reaction on a chat message?”
Tell an agent
Unset reaction {reaction} on message {message} in chat {chat}.
Remove my like from chat {chat} message {message}.
GET /chats/{chat-id}/messages/{chatMessage-id}/replies List replies to a chat message · Get replies from chats #
Ask an LLM
“What replies have been posted to a chat message?”
“Can I list the replies on a chat message?”
Tell an agent
List replies to message {message} in chat {chat}.
Show the replies on chat {chat} message {message}.
POST /chats/{chat-id}/messages/{chatMessage-id}/replies Reply to a chat message · Create new navigation property to replies for chats #
Ask an LLM
“How do I reply to a message in a chat?”
“Can I post a reply to a chat message?”
Tell an agent
Reply to message {message} in chat {chat}.
Post a reply to chat {chat} message {message} with body {body}.
GET /chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1} Get replies to a chat message · Get replies from chats #
Ask an LLM
“Who replied to a specific message in a Teams chat?”
“Can I expand the replies to a chat message?”
Tell an agent
Get reply {reply} to message {message} in chat {chat}.
Show the replies to chat message {message}.
PATCH /chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1} Edit a reply to a chat message · Update the navigation property replies in chats #
Ask an LLM
“Can I edit a reply someone posted in a Teams chat?”
“How do I change the text of a chat message reply?”
Tell an agent
Update reply {reply} to message {message} in chat {chat}.
Edit the reply {reply} on chat message {message} in chat {chat}.
DELETE /chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1} Delete a reply to a chat message · Delete navigation property replies for chats #
Ask an LLM
“How do I delete a reply someone posted in a Teams chat?”
“Can I remove a reply from a chat message?”
Tell an agent destructive · confirm first
Delete reply {reply} to message {message} in chat {chat}.
Remove the reply {reply} from chat message {message} in chat {chat}.
GET /chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/hostedContents List hosted content in chat message replies · Get hostedContents from chats #
Ask an LLM
“What images or files are attached to replies in a chat message?”
“Can I filter the hosted content inside a message reply?”
Tell an agent
List hosted content replies {reply} to message {message} in chat {chat}.
Show the attached files in replies to chat message {message}.
POST /chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/hostedContents Host content in a chat reply · Create new navigation property to hostedContents for chats #
Ask an LLM
“How do I attach an image or code snippet to a reply in a Teams chat?”
“Can I host new content inside a chat message reply?”
Tell an agent
Host content in reply {reply} to message {message} in chat {chat}.
Add a hosted file to reply {reply} on chat message {message} in chat {chat}.
GET /chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/hostedContents/{chatMessageHostedContent-id} Get hosted content in a chat reply · Get hostedContents from chats #
Ask an LLM
“How do I fetch one hosted file from a reply to a chat message?”
“What does a specific hosted content item in a chat reply contain?”
Tell an agent
Get hosted content {content} in reply {reply} to message {message} in chat {chat}.
Show hosted file {content} attached to reply {reply} on chat message {message} in chat {chat}.
PATCH /chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/hostedContents/{chatMessageHostedContent-id} Update hosted content in a chat reply · Update the navigation property hostedContents in chats #
Ask an LLM
“Can I change the details of hosted content inside a chat reply?”
“How do I edit a hosted file attached to a chat message reply?”
Tell an agent
Update hosted content {content} in reply {reply} to message {message} in chat {chat}.
Edit the hosted file {content} attached to reply {reply} on chat message {message} in chat {chat}.
DELETE /chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/hostedContents/{chatMessageHostedContent-id} Delete hosted content from a chat reply · Delete navigation property hostedContents for chats #
Ask an LLM
“How do I remove an image or code snippet from a reply in a Teams chat?”
“Can I delete a hosted file inside a chat message reply?”
Tell an agent destructive · confirm first
Delete hosted content {content} from reply {reply} to message {message} in chat {chat}.
Remove hosted file {content} from reply {reply} on chat message {message} in chat {chat}.
GET /chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/hostedContents/{chatMessageHostedContent-id}/$value Download hosted content from a chat reply · Get media content for the navigation property hostedContents from chats #
Ask an LLM
“How do I download the image or code snippet hosted in a reply?”
“Can I fetch the raw media of hosted content in a chat reply?”
Tell an agent
Download hosted content {content} from reply {reply} to message {message} in chat {chat}.
Get the media of hosted file {content} in reply {reply} on chat message {message} in chat {chat}.
PUT /chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/hostedContents/{chatMessageHostedContent-id}/$value Replace hosted content in a chat reply · Update media content for the navigation property hostedContents in chats #
Ask an LLM
“How do I replace an image hosted in a reply with a new file?”
“Can I overwrite hosted content inside a chat message reply?”
Tell an agent
Replace hosted content {content} in reply {reply} to message {message} in chat {chat}.
Overwrite hosted file {content} in reply {reply} on chat message {message} in chat {chat}.
DELETE /chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/hostedContents/{chatMessageHostedContent-id}/$value Delete media content of a reply's hosted item · Delete media content for the navigation property hostedContents in chats #
Ask an LLM
“How do I wipe the media stored in a hosted item on a reply in a Teams chat?”
“Can I clear the raw media value of a hosted item inside a chat reply, guarded by an ETag?”
Tell an agent destructive · confirm first
Wipe the media value of hosted item {hosted_content} on reply {reply} under message {message} in chat {chat}.
Clear stored media of hosted item {hosted_content} on reply {reply} to message {message} in chat {chat} if ETag {etag} matches.
GET /chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/hostedContents/$count Count hosted content in a chat reply · Get the number of the resource #
Ask an LLM
“How many hosted files are attached to a reply in a chat?”
“Can I count hosted content in a chat message reply?”
Tell an agent
Count hosted content in reply {reply} to message {message} in chat {chat}.
Tell me how many hosted files are in reply {reply} on chat message {message} in chat {chat}.
POST /chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/setReaction React to a chat reply · Invoke action setReaction #
Ask an LLM
“How do I react to a reply someone posted in a Teams chat?”
“Can I like a reply to a chat message?”
Tell an agent
React {reaction} to reply {reply} on message {message} in chat {chat}.
Like reply {reply} to chat message {message} in chat {chat}.
POST /chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/softDelete Soft delete a reply in a chat · Invoke action softDelete #
Ask an LLM
“How do I soft delete a single reply in a Teams chat thread?”
“What action marks a chat message reply as deleted?”
Tell an agent destructive · confirm first
Run the softDelete action on reply {reply} under message {message} in chat {chat}.
Mark reply {reply} of message {message} in chat {chat} as soft deleted.
POST /chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/undoSoftDelete Undo a soft delete of a chat reply · Invoke action undoSoftDelete #
Ask an LLM
“How do I restore a reply I soft deleted in a Teams chat?”
“Can I undo a soft delete of a chat message reply?”
Tell an agent
Undo the soft delete of reply {reply} to message {message} in chat {chat}.
Restore reply {reply} on chat message {message} in chat {chat}.
POST /chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/unsetReaction Remove a reaction from a chat reply · Invoke action unsetReaction #
Ask an LLM
“How do I remove my reaction from a reply in a Teams chat?”
“Can I undo a like on a chat message reply?”
Tell an agent
Unset reaction {reaction} from reply {reply} on message {message} in chat {chat}.
Remove my like from reply {reply} to chat message {message} in chat {chat}.
GET /chats/{chat-id}/messages/{chatMessage-id}/replies/$count Count replies to a chat message · Get the number of the resource #
Ask an LLM
“How many replies does a chat message have?”
“Can I count the replies to a message in a chat?”
Tell an agent
Count the replies to message {message} in chat {chat}.
Tell me how many replies chat message {message} in chat {chat} has.
GET /chats/{chat-id}/messages/{chatMessage-id}/replies/delta() Track changes to replies in a chat · Invoke function delta #
Ask an LLM
“How do I get new or updated replies to a chat message?”
“Can I use a change-tracking link to sync chat replies?”
Tell an agent
Track changes to replies on message {message} in chat {chat}.
Get the next page of replies for chat message {message} in chat {chat}.
POST /chats/{chat-id}/messages/{chatMessage-id}/replies/replyWithQuote Reply to a chat message with a quote · Invoke action replyWithQuote #
Ask an LLM
“How do I quote a message when replying in a Teams chat?”
“Can I reply to several chat messages with a quote?”
Tell an agent
Reply to messages {messageIds} in chat {chat} with the quote {replyMessage}.
Quote {replyMessage} when replying to chat message {message} in chat {chat}.
GET /chats/{chat-id}/messages/$count Count messages in a chat · Get the number of the resource #
Ask an LLM
“How many messages are in a chat?”
“Can I count the messages of a chat?”
Tell an agent
Count the messages in chat {chat}.
Tell me how many messages chat {chat} has.
GET /chats/{chat-id}/messages/delta() Track new or changed chat messages · Invoke function delta #
Ask an LLM
“How do I get new messages from chats I'm in?”
“Can I track changes to chat messages over time?”
Tell an agent
Get new chat messages for chat {chat}.
Track changes to messages in chat {chat}.
POST /chats/{chat-id}/messages/replyWithQuote Reply to chat messages with a quote · Invoke action replyWithQuote #
Ask an LLM
“What's the way to send a chat reply that quotes earlier messages?”
“Can I quote one or more messages in a single reply within a chat?”
Tell an agent
Send a quoting reply {reply} in chat {chat}.
Quote messages {message_ids} in chat {chat} and reply with {reply}.

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:microsoft-outlook-chats-chatmessage-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

microsoft-outlook-chats-chatmessage-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OData Service for namespace microsoft.graph Chats.chat…
  description: This OData service is located at https://graph.microsoft.com/v1.0
  version: v1.0
  x-ms-generated-by:
    toolName: Microsoft.OpenApi.OData
    toolVersion: 0.0.0.0
servers:
- url: https://graph.microsoft.com/v1.0
tags:


# --- truncated at 32 KB (234 KB total) ---
# Full source: https://artifacts.apis.io/microsoft-outlook/openapi/microsoft-outlook-chats-chatmessage-api-openapi.yml