Microsoft Outlook Users.chat API

The users.chat API from Microsoft Outlook — 26 operation(s) for users.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 /users/{user-id}/chats/{chat-id}/messages List messages in a chat · Get messages from users #
Ask an LLM
“What messages have been sent in a Teams chat?”
“Can I filter the messages in a chat by sender or date?”
Tell an agent
List messages in chat {chat} for user {user}.
Show the first {top} messages in chat {chat} of user {user}.
POST /users/{user-id}/chats/{chat-id}/messages Send a message in a chat · Create new navigation property to messages for users #
Ask an LLM
“How do I post a new message in a Teams chat?”
“Can I attach a file to a chat message?”
Tell an agent
Send a message in chat {chat} for user {user}.
Post a new message in chat {chat} of user {user} with body {body}.
GET /users/{user-id}/chats/{chat-id}/messages/{chatMessage-id} Get one chat message · Get messages from users #
Ask an LLM
“What does a specific message in a chat say?”
“Can I fetch a single chat message by its ID?”
Tell an agent
Get message {message} in chat {chat} for user {user}.
Show the text of chat message {message} in chat {chat} of user {user}.
PATCH /users/{user-id}/chats/{chat-id}/messages/{chatMessage-id} Edit a chat message · Update the navigation property messages in users #
Ask an LLM
“Can I edit a message I already sent in a chat?”
“Is it possible to change the text of an existing chat message?”
Tell an agent
Edit message {message} in chat {chat} for user {user}.
Change the text of chat message {message} in chat {chat} of user {user} to {body}.
DELETE /users/{user-id}/chats/{chat-id}/messages/{chatMessage-id} Delete a chat message · Delete navigation property messages for users #
Ask an LLM
“How do I delete a message from a Teams chat?”
“Can I remove a message I sent by mistake?”
Tell an agent destructive · confirm first
Delete message {message} from chat {chat} for user {user}.
Remove chat message {message} in chat {chat} of user {user}.
GET /users/{user-id}/chats/{chat-id}/messages/{chatMessage-id}/hostedContents List hosted content in a message · Get hostedContents from users #
Ask an LLM
“What images or code snippets are hosted inside a chat message?”
“Can I list the hosted content of one message?”
Tell an agent
List hosted content in message {message} of chat {chat} for user {user}.
Show the hosted files attached to message {message} in chat {chat} of user {user}.
POST /users/{user-id}/chats/{chat-id}/messages/{chatMessage-id}/hostedContents Host a file in a chat message · Create new navigation property to hostedContents for users #
Ask an LLM
“How do I upload an image into a Teams chat message?”
“Can I host a code snippet inside a chat message?”
Tell an agent
Host a new file in message {message} of chat {chat} for user {user}.
Add hosted content to chat message {message} in chat {chat} of user {user}.
GET /users/{user-id}/chats/{chat-id}/messages/{chatMessage-id}/hostedContents/{chatMessageHostedContent-id} Get hosted content in a message · Get hostedContents from users #
Ask an LLM
“What is the content of one hosted file inside a chat message?”
“Can I fetch a single hosted attachment by its ID?”
Tell an agent
Get hosted content {content} in message {message} of chat {chat} for user {user}.
Show the hosted file {content} attached to message {message} in chat {chat} of user {user}.
PATCH /users/{user-id}/chats/{chat-id}/messages/{chatMessage-id}/hostedContents/{chatMessageHostedContent-id} Edit hosted content in a message · Update the navigation property hostedContents in users #
Ask an LLM
“Can I edit the details of hosted content inside a chat message?”
“Is it possible to update a hosted attachment's properties?”
Tell an agent
Update hosted content {content} in message {message} of chat {chat} for user {user}.
Change hosted file {content} attached to message {message} in chat {chat} of user {user}.
DELETE /users/{user-id}/chats/{chat-id}/messages/{chatMessage-id}/hostedContents/{chatMessageHostedContent-id} Delete hosted content from a message · Delete navigation property hostedContents for users #
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} from message {message} of chat {chat} for user {user}.
Remove hosted file {content} attached to message {message} in chat {chat} of user {user}.
GET /users/{user-id}/chats/{chat-id}/messages/{chatMessage-id}/hostedContents/{chatMessageHostedContent-id}/$value Download hosted content from a message · Get media content for the navigation property hostedContents from users #
Ask an LLM
“How do I download the image hosted inside a chat message?”
“Can I fetch the raw media of a hosted attachment?”
Tell an agent
Download hosted content {content} from message {message} of chat {chat} for user {user}.
Get the media file {content} hosted in message {message} in chat {chat} of user {user}.
PUT /users/{user-id}/chats/{chat-id}/messages/{chatMessage-id}/hostedContents/{chatMessageHostedContent-id}/$value Replace hosted content in a message · Update media content for the navigation property hostedContents in users #
Ask an LLM
“How do I replace an image hosted in a chat message?”
“Can I upload a new version of a hosted file?”
Tell an agent
Replace hosted content {content} in message {message} of chat {chat} for user {user}.
Upload a new media file {content} into message {message} in chat {chat} of user {user}.
DELETE /users/{user-id}/chats/{chat-id}/messages/{chatMessage-id}/hostedContents/{chatMessageHostedContent-id}/$value Delete media from a message · Delete media content for the navigation property hostedContents in users #
Ask an LLM
“How do I remove a picture or file a user posted in a chat message?”
“Can I delete hosted media from a single message by its ID?”
Tell an agent destructive · confirm first
Delete hosted content {content} from message {message} in chat {chat} for user {user}.
Remove the embedded media {content} from chat message {message} in {chat} of user {user}.
GET /users/{user-id}/chats/{chat-id}/messages/{chatMessage-id}/hostedContents/$count Count hosted content in a message · Get the number of the resource #
Ask an LLM
“How many hosted files are in a chat message?”
“Can I count the attachments inside one message?”
Tell an agent
Count hosted content in message {message} of chat {chat} for user {user}.
Tell me how many hosted files message {message} in chat {chat} of user {user} has.
POST /users/{user-id}/chats/{chat-id}/messages/{chatMessage-id}/setReaction React to a chat message · Invoke action setReaction #
Ask an LLM
“How do I like a message in a Teams chat?”
“Can I react to a chat message with a heart or thumbs-up?”
Tell an agent
React {reaction} to message {message} in chat {chat} for user {user}.
Like chat message {message} in chat {chat} of user {user}.
POST /users/{user-id}/chats/{chat-id}/messages/{chatMessage-id}/softDelete Soft delete a chat message · Invoke action softDelete #
Ask an LLM
“How do I delete a message from a Teams chat without removing it permanently?”
“Can I hide a chat message temporarily?”
Tell an agent destructive · confirm first
Soft delete message {message} in chat {chat} for user {user}.
Hide chat message {message} in chat {chat} of user {user}.
POST /users/{user-id}/chats/{chat-id}/messages/{chatMessage-id}/undoSoftDelete Restore a soft-deleted chat message · Invoke action undoSoftDelete #
Ask an LLM
“How do I bring back a message I soft-deleted from a chat?”
“Can I undo a soft delete of a chat message?”
Tell an agent
Undo the soft delete of message {message} in chat {chat} for user {user}.
Restore hidden chat message {message} in chat {chat} of user {user}.
POST /users/{user-id}/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 like I put on a chat message?”
“Can I remove my reaction from a message?”
Tell an agent
Remove reaction {reaction} from message {message} in chat {chat} for user {user}.
Unreact to chat message {message} in chat {chat} of user {user}.
GET /users/{user-id}/chats/{chat-id}/messages/{chatMessage-id}/replies List replies to a chat message · Get replies from users #
Ask an LLM
“What replies have been posted to a message in a chat?”
“Can I see every reply to one chat message?”
Tell an agent
List replies to message {message} in chat {chat} for user {user}.
Show the reply thread on chat message {message} in chat {chat} of user {user}.
POST /users/{user-id}/chats/{chat-id}/messages/{chatMessage-id}/replies Reply to a chat message · Create new navigation property to replies for users #
Ask an LLM
“How do I reply to a message in a Teams chat?”
“Can I post a follow-up reply to a chat message?”
Tell an agent
Reply to message {message} in chat {chat} for user {user}.
Post a reply to chat message {message} in chat {chat} of user {user} saying {body}.
GET /users/{user-id}/chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1} Get a reply to a chat message · Get replies from users #
Ask an LLM
“How do I read the reply someone left on a chat message?”
“Can I expand attachments when fetching one message reply?”
Tell an agent
Get reply {reply} on message {message} in chat {chat} for user {user}.
Show the reply {reply} to {message} in chat {chat} of user {user}, expanding {expand}.
PATCH /users/{user-id}/chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1} Edit a reply to a chat message · Update the navigation property replies in users #
Ask an LLM
“How do I edit the text of a reply I posted on a chat message?”
“Can I update the attachments on an existing reply?”
Tell an agent
Update reply {reply} on message {message} in chat {chat} for user {user} to say {body}.
Change the attachments on reply {reply} of message {message} in chat {chat} of user {user} to {attachments}.
DELETE /users/{user-id}/chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1} Delete a reply to a chat message · Delete navigation property replies for users #
Ask an LLM
“How do I delete a reply someone posted on a chat message?”
“Can I remove a single reply from a chat message?”
Tell an agent destructive · confirm first
Delete reply {reply} on message {message} in chat {chat} for user {user}.
Remove the chat message reply {reply} from {message} in {chat} of user {user}.
GET /users/{user-id}/chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/hostedContents List hosted content in a reply · Get hostedContents from users #
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} for user {user}.
Show the hosted content attached to reply {reply} on message {message} in chat {chat} for user {user}.
POST /users/{user-id}/chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/hostedContents Add hosted content to a reply · Create new navigation property to hostedContents for users #
Ask an LLM
“How do I attach an image or code snippet to a reply?”
“Can I add hosted content to a reply on a channel message?”
Tell an agent
Add hosted content to reply {reply} on message {message} in chat {chat} for user {user}.
Attach a new hosted content item to reply {reply} of message {message} in chat {chat} for user {user}.
GET /users/{user-id}/chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/hostedContents/{chatMessageHostedContent-id} Get media from a message reply · Get hostedContents from users #
Ask an LLM
“How do I download the picture a user posted inside a reply to a message?”
“Can I fetch hosted media from a reply to a chat message?”
Tell an agent
Get hosted content {content} from reply {reply} on message {message} in chat {chat} for user {user}.
Download the embedded media {content} posted in reply {reply} of {message} in {chat} of user {user}.
PATCH /users/{user-id}/chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/hostedContents/{chatMessageHostedContent-id} Edit hosted content in a reply · Update the navigation property hostedContents in users #
Ask an LLM
“How do I edit the details of hosted content in a reply?”
“Can I change the type of hosted content attached to a reply?”
Tell an agent
Update hosted content {content} in reply {reply} to message {message} in chat {chat} for user {user}.
Edit the type of hosted content {content} attached to reply {reply} on message {message} in chat {chat} for user {user}.
DELETE /users/{user-id}/chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/hostedContents/{chatMessageHostedContent-id} Delete hosted content from a reply · Delete navigation property hostedContents for users #
Ask an LLM
“How do I remove an image or code snippet from a reply?”
“Can I delete a hosted content item in a reply?”
Tell an agent destructive · confirm first
Delete hosted content {content} from reply {reply} to message {message} in chat {chat} for user {user}.
Remove hosted content {content} attached to reply {reply} on message {message} in chat {chat} for user {user}.
GET /users/{user-id}/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 users #
Ask an LLM
“How do I download the image or code snippet hosted in a reply?”
“Can I fetch the media of hosted content in a reply?”
Tell an agent
Download hosted content {content} from reply {reply} to message {message} in chat {chat} for user {user}.
Fetch the media of hosted content {content} attached to reply {reply} on message {message} in chat {chat} for user {user}.
PUT /users/{user-id}/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 users #
Ask an LLM
“How do I replace an image hosted in a reply?”
“Can I upload new media to hosted content in a reply?”
Tell an agent
Replace hosted content {content} in reply {reply} to message {message} in chat {chat} for user {user}.
Upload new media to hosted content {content} attached to reply {reply} on message {message} in chat {chat} for user {user}.
DELETE /users/{user-id}/chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/hostedContents/{chatMessageHostedContent-id}/$value Delete hosted content media from a reply · Delete media content for the navigation property hostedContents in users #
Ask an LLM
“How do I remove the image hosted in a reply?”
“Can I delete the media of hosted content in a reply?”
Tell an agent destructive · confirm first
Delete the media of hosted content {content} in reply {reply} to message {message} in chat {chat} for user {user}.
Remove the hosted image from reply {reply} on message {message} in chat {chat} for user {user}.
GET /users/{user-id}/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 content items are attached to a reply?”
“Can I count the attachments in a reply to a chat message?”
Tell an agent
Count hosted content in reply {reply} to message {message} in chat {chat} for user {user}.
Tell me how many attachments reply {reply} on message {message} in chat {chat} for user {user} has.
POST /users/{user-id}/chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/setReaction React to a reply in a chat · Invoke action setReaction #
Ask an LLM
“How do I react with a like to someone's reply in a Teams chat?”
“Can I like a message reply I read?”
Tell an agent
React {reaction} to reply {reply} on message {message} in chat {chat} for user {user}.
Like the reply {reply} of message {message} in chat {chat} for user {user}.
POST /users/{user-id}/chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/softDelete Soft delete a reply in a chat thread · Invoke action softDelete #
Ask an LLM
“How do I soft delete a single reply under a chat message?”
“Can I soft delete just one threaded reply while keeping the parent chat message?”
Tell an agent destructive · confirm first
Soft delete threaded reply {reply} under message {message} in chat {chat} for user {user}.
Use softDelete on reply {reply} beneath parent message {message}, chat {chat}, user {user}.
POST /users/{user-id}/chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/undoSoftDelete Restore a deleted reply · Invoke action undoSoftDelete #
Ask an LLM
“How do I bring back a message reply I deleted by mistake?”
“Can I undo the soft deletion of a chat reply?”
Tell an agent
Undo the soft delete of reply {reply} on message {message} in chat {chat} for user {user}.
Restore chat reply {reply} on {message} in {chat} of user {user}.
POST /users/{user-id}/chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/unsetReaction Unreact to a reply · Invoke action unsetReaction #
Ask an LLM
“How do I remove my reaction from a reply?”
“Can I undo a like on a reply?”
Tell an agent
Unreact {type} from reply {reply} on message {message} in chat {chat} for user {user}.
Undo my like on reply {reply} to message {message} in chat {chat} for user {user}.
GET /users/{user-id}/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} for user {user}.
Tell me how many replies message {message} in chat {chat} for user {user} has.
GET /users/{user-id}/chats/{chat-id}/messages/{chatMessage-id}/replies/delta() Track replies to a chat message · Invoke function delta #
Ask an LLM
“How do I get only the new replies to one message since my last sync?”
“Can I poll for updated replies to a chat message?”
Tell an agent
Track replies to message {message} in chat {chat} for user {user} with filter {filter}.
Fetch the delta of replies on {message} in {chat} for user {user}, top {top}.
POST /users/{user-id}/chats/{chat-id}/messages/{chatMessage-id}/replies/replyWithQuote Quote-reply within a message's reply thread · Invoke action replyWithQuote #
Ask an LLM
“How do I quote messages when replying inside a chat message's reply thread?”
“Can I post a quoted reply under a specific message's thread in a chat?”
Tell an agent
Post a quoted reply {replyMessage} in the thread of message {message} in chat {chat} for user {user}.
Quote messages {messageIds} in the reply thread of message {message}, chat {chat}, user {user}.
GET /users/{user-id}/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 for a user?”
Tell an agent
Count the messages in chat {chat} for user {user}.
Tell me how many messages chat {chat} has for user {user}.
GET /users/{user-id}/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 a user is in?”
“Can I track changes to chat messages over time with a state token?”
Tell an agent
Get new chat messages for user {user} in chat {chat}.
Track changes to messages in chat {chat} for user {user}.
POST /users/{user-id}/chats/{chat-id}/messages/replyWithQuote Quote-reply to messages in a chat · Invoke action replyWithQuote #
Ask an LLM
“How do I reply in a chat while quoting one or more earlier messages?”
“Can I quote several chat messages at once in a single reply?”
Tell an agent
Reply with quote {replyMessage} to messages {messageIds} in chat {chat} for user {user}.
Quote messages {messageIds} in chat {chat} of user {user} in a new 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-users-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-users-chat-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OData Service for namespace microsoft.graph Users.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 (250 KB total) ---
# Full source: https://artifacts.apis.io/microsoft-outlook/openapi/microsoft-outlook-users-chat-api-openapi.yml