Microsoft Outlook Me.chat API

The me.chat API from Microsoft Outlook — 26 operation(s) for me.chat.

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 /me/chats/{chat-id}/messages List messages in a chat · Get messages from me #
Ask an LLM
“What messages have been sent in a Teams chat?”
“Can I filter the messages in a chat?”
Tell an agent
List messages in chat {chat_id}.
Show the first {top} messages in chat {chat_id}.
POST /me/chats/{chat-id}/messages Send a message to a chat · Create new navigation property to messages for me #
Ask an LLM
“How do I post a message in a Teams chat?”
“Can I attach files or code snippets to a chat message?”
Tell an agent
Send a message in chat {chat_id}.
Post a message with body {body} in chat {chat_id}.
GET /me/chats/{chat-id}/messages/{chatMessage-id} Get one message from a chat · Get messages from me #
Ask an LLM
“What does a specific chat message say?”
“Can I fetch a single message by its ID?”
Tell an agent
Get message {message_id} in chat {chat_id}.
Show the text of chat message {message_id} from chat {chat_id}.
PATCH /me/chats/{chat-id}/messages/{chatMessage-id} Edit a chat message · Update the navigation property messages in me #
Ask an LLM
“Can I edit a message I already sent in a chat?”
“What fields of a chat message can be changed?”
Tell an agent
Edit message {message_id} in chat {chat_id}.
Change the body of chat message {message_id} in chat {chat_id} to {body}.
DELETE /me/chats/{chat-id}/messages/{chatMessage-id} Delete a chat message · Delete navigation property messages for me #
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_id} from chat {chat_id}.
Remove chat message {message_id} in chat {chat_id}.
GET /me/chats/{chat-id}/messages/{chatMessage-id}/hostedContents List hosted content in a chat message · Get hostedContents from me #
Ask an LLM
“What images or code snippets are hosted inside a chat message?”
“Can I see the hosted content attached to a message?”
Tell an agent
List hosted content in message {message_id} of chat {chat_id}.
Show the hosted files attached to chat message {message_id} in chat {chat_id}.
POST /me/chats/{chat-id}/messages/{chatMessage-id}/hostedContents Add hosted content to a chat message · Create new navigation property to hostedContents for me #
Ask an LLM
“How do I upload an image into a chat message?”
“Can I attach a hosted file to a message?”
Tell an agent
Add hosted content to message {message_id} in chat {chat_id}.
Upload a hosted file into chat message {message_id} of chat {chat_id}.
GET /me/chats/{chat-id}/messages/{chatMessage-id}/hostedContents/{chatMessageHostedContent-id} Get hosted content in a chat message · Get hostedContents from me #
Ask an LLM
“What is the hosted content at a specific hostedContent ID?”
“Can I fetch one hosted attachment inside a chat message?”
Tell an agent
Get hosted content {content_id} in message {message_id} of chat {chat_id}.
Show the hosted file {content_id} attached to chat message {message_id} in chat {chat_id}.
PATCH /me/chats/{chat-id}/messages/{chatMessage-id}/hostedContents/{chatMessageHostedContent-id} Edit hosted content in a chat message · Update the navigation property hostedContents in me #
Ask an LLM
“Can I change the hosted content inside a chat message?”
“What properties of hosted content can be updated?”
Tell an agent
Update hosted content {content_id} in message {message_id} of chat {chat_id}.
Change the hosted file {content_id} attached to chat message {message_id} in chat {chat_id}.
DELETE /me/chats/{chat-id}/messages/{chatMessage-id}/hostedContents/{chatMessageHostedContent-id} Delete hosted content from a chat message · Delete navigation property hostedContents for me #
Ask an LLM
“How do I remove an image from a chat message?”
“Can I delete a hosted attachment inside a message?”
Tell an agent destructive · confirm first
Delete hosted content {content_id} from message {message_id} in chat {chat_id}.
Remove the hosted file {content_id} attached to chat message {message_id} in chat {chat_id}.
GET /me/chats/{chat-id}/messages/{chatMessage-id}/hostedContents/{chatMessageHostedContent-id}/$value Download hosted content from a chat message · Get media content for the navigation property hostedContents from me #
Ask an LLM
“How do I download the image hosted inside a chat message?”
“Can I fetch the raw media of hosted content?”
Tell an agent
Download hosted content {content_id} from message {message_id} in chat {chat_id}.
Get the media file {content_id} hosted in chat message {message_id} of chat {chat_id}.
PUT /me/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 me #
Ask an LLM
“How do I upload a new image into a chat message?”
“Can I overwrite hosted content with fresh media?”
Tell an agent
Replace hosted content {content_id} in message {message_id} of chat {chat_id}.
Upload new media into hosted file {content_id} of chat message {message_id} in chat {chat_id}.
DELETE /me/chats/{chat-id}/messages/{chatMessage-id}/hostedContents/{chatMessageHostedContent-id}/$value Delete hosted content media from a chat message · Delete media content for the navigation property hostedContents in me #
Ask an LLM
“How do I remove the media of hosted content from a chat message?”
“Can I delete hosted content by its media value?”
Tell an agent destructive · confirm first
Delete the media of hosted content {content_id} in message {message_id} of chat {chat_id}.
Remove hosted file {content_id} from chat message {message_id} in chat {chat_id}.
GET /me/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 attached to a chat message?”
“Can I get just the number of hosted attachments?”
Tell an agent
Count hosted content in message {message_id} of chat {chat_id}.
Tell me how many hosted files chat message {message_id} in chat {chat_id} has.
POST /me/chats/{chat-id}/messages/{chatMessage-id}/setReaction React to a chat message · Invoke action setReaction #
Ask an LLM
“How do I react with a like to a message in a chat?”
“Can I add a reaction to a chat message?”
Tell an agent
React with {reaction_type} to message {message_id} in chat {chat_id}.
Like message {message_id} in chat {chat_id}.
POST /me/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 removing it permanently?”
“Can I soft delete a single message in a chat?”
Tell an agent destructive · confirm first
Soft delete message {message_id} in chat {chat_id}.
Delete chat message {message_id} from chat {chat_id} without removing it.
POST /me/chats/{chat-id}/messages/{chatMessage-id}/undoSoftDelete Undo a soft delete of 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 of a single message?”
Tell an agent
Undo the soft delete of message {message_id} in chat {chat_id}.
Restore chat message {message_id} in chat {chat_id}.
POST /me/chats/{chat-id}/messages/{chatMessage-id}/unsetReaction Remove a reaction from a chat message · Invoke action unsetReaction #
Ask an LLM
“How do I take back a reaction I added to a message?”
“Can I remove a specific reaction from a chat message?”
Tell an agent
Remove the {reaction_type} reaction from message {message_id} in chat {chat_id}.
Undo my like on chat message {message_id} in chat {chat_id}.
GET /me/chats/{chat-id}/messages/{chatMessage-id}/replies List replies to a chat message · Get replies from me #
Ask an LLM
“What replies have been posted to a chat message?”
“Can I see all replies to a message in a chat?”
Tell an agent
List replies to message {message_id} in chat {chat_id}.
Show every reply on chat message {message_id} of chat {chat_id}.
POST /me/chats/{chat-id}/messages/{chatMessage-id}/replies Reply to a chat message · Create new navigation property to replies for me #
Ask an LLM
“How do I reply to a message in a Teams chat?”
“Can I post a reply to a chat message with attachments?”
Tell an agent
Reply to message {message_id} in chat {chat_id}.
Post a reply with body {body} to chat message {message_id} in chat {chat_id}.
GET /me/chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1} Get one specific reply to a chat message · Get replies from me #
Ask an LLM
“How do I fetch a single reply to a message in my chat by its reply ID?”
“Can I expand a specific reply on a chat message to see more details?”
Tell an agent
Get reply {reply} to message {message} in chat {chat}.
Look up the single reply {reply} under message {message} of chat {chat} and return only the {select} properties.
PATCH /me/chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1} Edit a reply to a chat message · Update the navigation property replies in me #
Ask an LLM
“How do I edit a reply I already posted to a chat message?”
“Can I change the text of a reply to a chat message?”
Tell an agent
Update reply {reply} to message {message} in chat {chat}.
Edit the reply {reply} on chat message {message} in chat {chat}.
DELETE /me/chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1} Delete a reply to a chat message · Delete navigation property replies for me #
Ask an LLM
“How do I delete a reply to a message in a chat?”
“Can I remove a single 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 /me/chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/hostedContents List hosted content in a reply · Get hostedContents from me #
Ask an LLM
“What hosted content is attached to a reply to a chat message?”
“Can I list the images or code snippets in a reply?”
Tell an agent
List hosted content in reply {reply} to message {message} in chat {chat}.
Show the hosted files attached to reply {reply} on chat message {message} in chat {chat}.
POST /me/chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/hostedContents Add hosted content to a reply · Create new navigation property to hostedContents for me #
Ask an LLM
“How do I attach an image or code snippet to a reply?”
“Can I add hosted content to a reply to a chat message?”
Tell an agent
Create hosted 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 /me/chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/hostedContents/{chatMessageHostedContent-id} Get hosted content in a reply · Get hostedContents from me #
Ask an LLM
“How do I fetch one hosted file attached to a reply?”
“Can I read the content of a single hosted attachment on a reply?”
Tell an agent
Get hosted content {content} in reply {reply} to message {message} in chat {chat}.
Show the hosted file {content} attached to reply {reply} on chat message {message} in chat {chat}.
PATCH /me/chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/hostedContents/{chatMessageHostedContent-id} Edit hosted content in a reply · Update the navigation property hostedContents in me #
Ask an LLM
“How do I edit the details of hosted content on a reply?”
“Can I change the hosted file on a reply to a chat message?”
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 /me/chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/hostedContents/{chatMessageHostedContent-id} Delete hosted content from a reply · Delete navigation property hostedContents for me #
Ask an LLM
“How do I remove an image attached to a reply?”
“Can I delete one hosted attachment from a reply to a chat message?”
Tell an agent destructive · confirm first
Delete hosted content {content} from reply {reply} to message {message} in chat {chat}.
Remove the hosted file {content} from reply {reply} on chat message {message} in chat {chat}.
GET /me/chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/hostedContents/{chatMessageHostedContent-id}/$value Download hosted content from a reply · Get media content for the navigation property hostedContents from me #
Ask an LLM
“How do I download the image or code snippet attached to a reply?”
“Can I fetch the media of a hosted attachment on a 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 /me/chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/hostedContents/{chatMessageHostedContent-id}/$value Replace hosted content in a reply · Update media content for the navigation property hostedContents in me #
Ask an LLM
“How do I replace an image attached to a reply?”
“Can I overwrite the media of a hosted attachment on a reply?”
Tell an agent
Replace hosted content {content} in reply {reply} to message {message} in chat {chat}.
Overwrite the hosted file {content} on reply {reply} on chat message {message} in chat {chat}.
DELETE /me/chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/hostedContents/{chatMessageHostedContent-id}/$value Delete hosted content from a reply · Delete media content for the navigation property hostedContents in me #
Ask an LLM
“How do I remove an image hosted in a message reply?”
“Can I delete hosted content from a chat reply?”
Tell an agent destructive · confirm first
Delete hosted content {content} from reply {reply} on message {message}, chat {chat}.
Remove the media file {content} embedded in reply {reply} of chat message {message} in {chat}.
GET /me/chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/hostedContents/$count Count hosted content in a reply · Get the number of the resource #
Ask an LLM
“How many hosted files are attached to a reply?”
“Can I count the attachments on a reply to a chat message?”
Tell an agent
Count hosted content in reply {reply} to message {message} in chat {chat}.
Tell me how many hosted files are attached to reply {reply} on chat message {message} in chat {chat}.
POST /me/chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/setReaction React to a reply · Invoke action setReaction #
Ask an LLM
“How do I react to a reply with a like or other emoji?”
“Can I add a reaction to a reply on a chat message?”
Tell an agent
React {reaction} to reply {reply} on message {message} in chat {chat}.
Add a {reaction} reaction to reply {reply} on chat message {message} in chat {chat}.
POST /me/chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/softDelete Soft-delete a reply in a chat message thread · Invoke action softDelete #
Ask an LLM
“Can I soft-delete one reply in a message thread so it is hidden but not permanently erased?”
“How do I soft-delete a reply I posted under a chat message?”
Tell an agent destructive · confirm first
Invoke softDelete on reply {reply} under message {message} in chat {chat}.
Soft-delete the threaded reply {reply} of message {message} in chat {chat}.
POST /me/chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/undoSoftDelete Restore a deleted reply · Invoke action undoSoftDelete #
Ask an LLM
“How do I undo the deletion of a reply?”
“Can I restore a reply I deleted from a chat message?”
Tell an agent
Undo the soft delete of reply {reply} to message {message} in chat {chat}.
Restore the deleted reply {reply} on chat message {message} in chat {chat}.
POST /me/chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/unsetReaction Remove a reaction from a reply · Invoke action unsetReaction #
Ask an LLM
“How do I remove my reaction from a reply?”
“Can I clear a reaction on a reply to a chat message?”
Tell an agent
Unset reaction {reaction} from reply {reply} on message {message} in chat {chat}.
Remove the {reaction} reaction from reply {reply} on chat message {message} in chat {chat}.
GET /me/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} has in chat {chat}.
GET /me/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 replies to a chat message since my last sync?”
“Can I use a change-tracking link to fetch replies that changed?”
Tell an agent
Track changes to replies on message {message} in chat {chat}.
Get new replies to chat message {message} in chat {chat} since my last sync.
POST /me/chats/{chat-id}/messages/{chatMessage-id}/replies/replyWithQuote Reply to a message by quoting it · Invoke action replyWithQuote #
Ask an LLM
“How do I quote a message when replying to it?”
“Can I reply to several messages in a chat by quoting each one?”
Tell an agent
Reply with quote to message {message} in chat {chat}: {reply}.
Quote messages {message_ids} in chat {chat} and reply {reply}.
GET /me/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 in a chat?”
Tell an agent
Count the messages in chat {chat}.
Tell me how many messages chat {chat} has.
GET /me/chats/{chat-id}/messages/delta() Track new or updated messages in a chat · Invoke function delta #
Ask an LLM
“How do I get new messages from a chat since my last sync?”
“Can I track changes to chat messages with a delta token?”
Tell an agent
Get new messages in chat {chat}.
Track changes to chat {chat} messages with a delta token.
POST /me/chats/{chat-id}/messages/replyWithQuote Reply to chat messages with a quote · Invoke action replyWithQuote #
Ask an LLM
“How do I quote a message when replying in a chat?”
“Can I reply to several messages in a chat at once?”
Tell an agent
Reply to messages {messageIds} in chat {chat} with {replyMessage}.
Quote {replyMessage} when replying to chat {chat}.

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-me-chat-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-me-chat-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OData Service for namespace microsoft.graph Me.chat API
  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 (242 KB total) ---
# Full source: https://artifacts.apis.io/microsoft-outlook/openapi/microsoft-outlook-me-chat-api-openapi.yml