Microsoft Teams Chats.targeted Chat Message API

The chats.targetedChatMessage API from Microsoft Teams — 20 operation(s) for chats.targetedchatmessage.

GitHub OpenAPI

Operations 36

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}/targetedMessages List targeted messages in a chat · Get targetedMessages from chats #
Ask an LLM
“Which targeted messages are visible to specific users in a chat?”
“Can I filter or count the targeted messages in a chat?”
Tell an agent
List targeted messages in chat {chat_id}.
Show targeted messages in chat {chat_id} matching {filter}.
POST /chats/{chat-id}/targetedMessages Send a targeted message to a user · Create new navigation property to targetedMessages for chats #
Ask an LLM
“How do I send a message to one specific recipient in a chat?”
“Can I target a message to a single user rather than the whole chat?”
Tell an agent
Send a targeted message to {recipient} in chat {chat_id}.
Post a targeted message in chat {chat_id} for {recipient}.
GET /chats/{chat-id}/targetedMessages/{targetedChatMessage-id} Get a targeted message in a chat · Get targetedMessages from chats #
Ask an LLM
“What does a specific targeted message in a chat say?”
“Can I read one targeted message by its ID?”
Tell an agent
Get targeted message {targeted_message_id} in chat {chat_id}.
Show the content of targeted message {targeted_message_id} in chat {chat_id}.
PATCH /chats/{chat-id}/targetedMessages/{targetedChatMessage-id} Change a targeted message's recipient · Update the navigation property targetedMessages in chats #
Ask an LLM
“Can I change who a targeted message is sent to?”
“How do I edit a targeted message after sending it?”
Tell an agent
Change the recipient of targeted message {targeted_message_id} in chat {chat_id} to {recipient}.
Update targeted message {targeted_message_id} in chat {chat_id} to go to {recipient}.
DELETE /chats/{chat-id}/targetedMessages/{targetedChatMessage-id} Delete a targeted message from a chat · Delete navigation property targetedMessages for chats #
Ask an LLM
“How do I remove a targeted message from a chat?”
“Can I delete a message I sent to one recipient?”
Tell an agent destructive · confirm first
Delete targeted message {targeted_message_id} from chat {chat_id}.
Remove the targeted message {targeted_message_id} in chat {chat_id}.
GET /chats/{chat-id}/targetedMessages/{targetedChatMessage-id}/hostedContents List hosted content in a targeted message · Get hostedContents from chats #
Ask an LLM
“What images or code snippets are hosted in a targeted message?”
“Can I see the hosted content inside a targeted message?”
Tell an agent
List hosted content in targeted message {targeted_message_id} of chat {chat_id}.
Show the hosted files in targeted message {targeted_message_id} in chat {chat_id}.
POST /chats/{chat-id}/targetedMessages/{targetedChatMessage-id}/hostedContents Host content in a targeted message · Create new navigation property to hostedContents for chats #
Ask an LLM
“How do I attach an image or code snippet to a targeted message?”
“Can I upload hosted content into a targeted message?”
Tell an agent
Host content in targeted message {targeted_message_id} of chat {chat_id}.
Upload a hosted file into targeted message {targeted_message_id} in chat {chat_id}.
GET /chats/{chat-id}/targetedMessages/{targetedChatMessage-id}/hostedContents/{chatMessageHostedContent-id} Get hosted content in a targeted message · Get hostedContents from chats #
Ask an LLM
“What is the content of one hosted file in a targeted message?”
“Can I fetch a hosted attachment by its ID?”
Tell an agent
Get hosted content {hosted_content_id} in targeted message {targeted_message_id} of chat {chat_id}.
Show hosted file {hosted_content_id} inside targeted message {targeted_message_id} in chat {chat_id}.
PATCH /chats/{chat-id}/targetedMessages/{targetedChatMessage-id}/hostedContents/{chatMessageHostedContent-id} Update hosted content in a targeted message · Update the navigation property hostedContents in chats #
Ask an LLM
“Can I edit the content of a hosted file in a targeted message?”
“How do I change hosted content inside a targeted message?”
Tell an agent
Update hosted content {hosted_content_id} in targeted message {targeted_message_id} of chat {chat_id}.
Edit hosted file {hosted_content_id} inside targeted message {targeted_message_id} in chat {chat_id}.
DELETE /chats/{chat-id}/targetedMessages/{targetedChatMessage-id}/hostedContents/{chatMessageHostedContent-id} Delete hosted content from a targeted message · Delete navigation property hostedContents for chats #
Ask an LLM
“How do I remove an image from a targeted message?”
“Can I delete a hosted attachment in a targeted message?”
Tell an agent destructive · confirm first
Delete hosted content {hosted_content_id} from targeted message {targeted_message_id} in chat {chat_id}.
Remove hosted file {hosted_content_id} in targeted message {targeted_message_id} of chat {chat_id}.
GET /chats/{chat-id}/targetedMessages/{targetedChatMessage-id}/hostedContents/{chatMessageHostedContent-id}/$value Download hosted content from a targeted message · 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 targeted message?”
“Can I fetch the raw media of hosted content in a targeted message?”
Tell an agent
Download hosted content {hosted_content_id} from targeted message {targeted_message_id} in chat {chat_id}.
Get the media of hosted file {hosted_content_id} in targeted message {targeted_message_id} of chat {chat_id}.
PUT /chats/{chat-id}/targetedMessages/{targetedChatMessage-id}/hostedContents/{chatMessageHostedContent-id}/$value Replace hosted content in a targeted message · Update media content for the navigation property hostedContents in chats #
Ask an LLM
“How do I replace an image hosted in a targeted message?”
“Can I upload new media into hosted content of a targeted message?”
Tell an agent
Replace hosted content {hosted_content_id} in targeted message {targeted_message_id} of chat {chat_id}.
Upload new media into hosted file {hosted_content_id} of targeted message {targeted_message_id} in chat {chat_id}.
DELETE /chats/{chat-id}/targetedMessages/{targetedChatMessage-id}/hostedContents/{chatMessageHostedContent-id}/$value Delete media hosted on a targeted message · Delete media content for the navigation property hostedContents in chats #
Ask an LLM
“How do I remove an image or file attached to a targeted message in a chat?”
“Can I delete targeted message media by its hosted content id?”
Tell an agent destructive · confirm first
Delete hosted media {content} from targeted message {message} in chat {chat}.
Remove the hosted attachment {content} on targeted message {message} in chat {chat} if its ETag is {etag}.
GET /chats/{chat-id}/targetedMessages/{targetedChatMessage-id}/hostedContents/$count Count hosted content in a targeted message · Get the number of the resource #
Ask an LLM
“How many hosted files are in a targeted message?”
“Can I get just the count of hosted content in a targeted message?”
Tell an agent
Count hosted content in targeted message {targeted_message_id} of chat {chat_id}.
Tell me how many hosted files targeted message {targeted_message_id} in chat {chat_id} has.
GET /chats/{chat-id}/targetedMessages/{targetedChatMessage-id}/replies List replies to a targeted message · Get replies from chats #
Ask an LLM
“What replies have been posted to a targeted message?”
“Can I see every reply to a targeted message in a chat?”
Tell an agent
List replies to targeted message {targeted_message_id} in chat {chat_id}.
Show all replies on targeted message {targeted_message_id} of chat {chat_id}.
POST /chats/{chat-id}/targetedMessages/{targetedChatMessage-id}/replies Reply to a targeted message · Create new navigation property to replies for chats #
Ask an LLM
“How do I reply to a targeted message in a chat?”
“Can I post a reply to a targeted message with attachments?”
Tell an agent
Reply to targeted message {targeted_message_id} in chat {chat_id} with {body}.
Post a reply to targeted message {targeted_message_id} in chat {chat_id} with attachments {attachments}.
GET /chats/{chat-id}/targetedMessages/{targetedChatMessage-id}/replies/{chatMessage-id} Get a reply to a targeted message · Get replies from chats #
Ask an LLM
“What does one reply to a targeted message say?”
“Can I read a single reply to a targeted message?”
Tell an agent
Get reply {reply_id} to targeted message {targeted_message_id} in chat {chat_id}.
Show the content of reply {reply_id} on targeted message {targeted_message_id} in chat {chat_id}.
PATCH /chats/{chat-id}/targetedMessages/{targetedChatMessage-id}/replies/{chatMessage-id} Edit a reply to a targeted message · Update the navigation property replies in chats #
Ask an LLM
“Can I edit a reply to a targeted message?”
“How do I change the text of a reply on a targeted message?”
Tell an agent
Edit reply {reply_id} to targeted message {targeted_message_id} in chat {chat_id} to {body}.
Update reply {reply_id} on targeted message {targeted_message_id} of chat {chat_id} with attachments {attachments}.
DELETE /chats/{chat-id}/targetedMessages/{targetedChatMessage-id}/replies/{chatMessage-id} Delete a reply to a targeted message · Delete navigation property replies for chats #
Ask an LLM
“How do I remove a reply from a targeted message?”
“Can I delete a reply to a targeted message?”
Tell an agent destructive · confirm first
Delete reply {reply_id} from targeted message {targeted_message_id} in chat {chat_id}.
Remove reply {reply_id} on targeted message {targeted_message_id} of chat {chat_id}.
GET /chats/{chat-id}/targetedMessages/{targetedChatMessage-id}/replies/{chatMessage-id}/hostedContents List hosted content in a reply to a targeted message · Get hostedContents from chats #
Ask an LLM
“What hosted files are in a reply to a targeted message?”
“Can I see the hosted content inside a reply on a targeted message?”
Tell an agent
List hosted content in reply {reply_id} to targeted message {targeted_message_id} of chat {chat_id}.
Show hosted files in reply {reply_id} on targeted message {targeted_message_id} in chat {chat_id}.
POST /chats/{chat-id}/targetedMessages/{targetedChatMessage-id}/replies/{chatMessage-id}/hostedContents Host a file or image in a targeted message reply · Create new navigation property to hostedContents for chats #
Ask an LLM
“How do I attach an image to a targeted message reply?”
“Can I host a file inside a reply to a targeted message?”
Tell an agent
Create hosted content {type} for reply {reply} in targeted message {targeted} of chat {chat}.
Host a file in reply {reply} to targeted message {targeted} in chat {chat}.
GET /chats/{chat-id}/targetedMessages/{targetedChatMessage-id}/replies/{chatMessage-id}/hostedContents/{chatMessageHostedContent-id} Get hosted content in a targeted message reply · Get hostedContents from chats #
Ask an LLM
“What files are hosted inside a reply to a targeted message?”
“Can I fetch the hosted content of a targeted message reply?”
Tell an agent
Get hosted content {content} in reply {reply} to targeted message {targeted} of chat {chat}.
Show the hosted file in reply {reply} of targeted message {targeted} in chat {chat}.
PATCH /chats/{chat-id}/targetedMessages/{targetedChatMessage-id}/replies/{chatMessage-id}/hostedContents/{chatMessageHostedContent-id} Update hosted content in a targeted message reply · Update the navigation property hostedContents in chats #
Ask an LLM
“Can I change the type of hosted content in a targeted message reply?”
“Is it possible to update hosted content on a reply to a targeted message?”
Tell an agent
Update hosted content {content} in reply {reply} to targeted message {targeted} of chat {chat} to {type}.
Change the hosted content type of reply {reply} to targeted message {targeted} in chat {chat}.
DELETE /chats/{chat-id}/targetedMessages/{targetedChatMessage-id}/replies/{chatMessage-id}/hostedContents/{chatMessageHostedContent-id} Delete hosted content from a targeted message reply · Delete navigation property hostedContents for chats #
Ask an LLM
“How do I remove an image hosted in a reply to a targeted message?”
“Can I delete hosted content from a targeted message reply?”
Tell an agent destructive · confirm first
Delete hosted content {content} from reply {reply} to targeted message {targeted} in chat {chat}.
Remove the hosted file in reply {reply} of targeted message {targeted} in chat {chat}.
GET /chats/{chat-id}/targetedMessages/{targetedChatMessage-id}/replies/{chatMessage-id}/hostedContents/{chatMessageHostedContent-id}/$value Download media from a targeted message's reply · Get media content for the navigation property hostedContents from chats #
Ask an LLM
“Can I retrieve the image or file attached to a reply to a targeted message?”
“What's the way to download hosted content on a targeted message reply?”
Tell an agent
Get hosted media {content} from reply {reply} on targeted message {message} in chat {chat}.
Download the attachment {content} on reply {reply} to targeted message {message} in chat {chat}.
PUT /chats/{chat-id}/targetedMessages/{targetedChatMessage-id}/replies/{chatMessage-id}/hostedContents/{chatMessageHostedContent-id}/$value Replace hosted content in a targeted message reply · Update media content for the navigation property hostedContents in chats #
Ask an LLM
“Can I upload a new image to hosted content in a targeted message reply?”
“How do I overwrite the media of hosted content in a reply to a targeted message?”
Tell an agent
Replace hosted content {content} in reply {reply} to targeted message {targeted} of chat {chat} with new media.
Upload a new image to hosted content {content} of reply {reply} to targeted message {targeted} in chat {chat}.
DELETE /chats/{chat-id}/targetedMessages/{targetedChatMessage-id}/replies/{chatMessage-id}/hostedContents/{chatMessageHostedContent-id}/$value Delete media on a reply to a targeted message · Delete media content for the navigation property hostedContents in chats #
Ask an LLM
“How do I delete an attachment from a reply to a targeted message?”
“Can I clean up old images attached to a reply on a targeted message?”
Tell an agent destructive · confirm first
Delete hosted media {content} from reply {reply} on targeted message {message} in chat {chat}.
Remove the attachment {content} on reply {reply} to targeted message {message} in chat {chat} if its ETag is {etag}.
GET /chats/{chat-id}/targetedMessages/{targetedChatMessage-id}/replies/{chatMessage-id}/hostedContents/$count Count hosted content in a targeted message reply · Get the number of the resource #
Ask an LLM
“How many hosted files are in a reply to a targeted message?”
“Can I count hosted content on a targeted message reply?”
Tell an agent
Count hosted content in reply {reply} to targeted message {targeted} of chat {chat}.
Tell me how many hosted files are in reply {reply} of targeted message {targeted} in chat {chat}.
POST /chats/{chat-id}/targetedMessages/{targetedChatMessage-id}/replies/{chatMessage-id}/setReaction React to a targeted message reply · Invoke action setReaction #
Ask an LLM
“How do I react to a reply on a targeted message?”
“Can I add a reaction to a targeted message reply?”
Tell an agent
React {reaction} to reply {reply} on targeted message {targeted} in chat {chat}.
Add a {reaction} reaction to reply {reply} of targeted message {targeted} in chat {chat}.
POST /chats/{chat-id}/targetedMessages/{targetedChatMessage-id}/replies/{chatMessage-id}/softDelete Soft-delete a targeted message reply · Invoke action softDelete #
Ask an LLM
“How do I delete a reply on a targeted message without removing it from the chat?”
“Can I soft-delete a targeted message reply?”
Tell an agent destructive · confirm first
Soft-delete reply {reply} on targeted message {targeted} in chat {chat}.
Remove reply {reply} from targeted message {targeted} in chat {chat} without deleting it.
POST /chats/{chat-id}/targetedMessages/{targetedChatMessage-id}/replies/{chatMessage-id}/undoSoftDelete Undo the soft-delete of a targeted message reply · Invoke action undoSoftDelete #
Ask an LLM
“How do I bring back a reply I soft-deleted on a targeted message?”
“Can I restore a targeted message reply that was deleted?”
Tell an agent
Undo the soft-delete of reply {reply} on targeted message {targeted} in chat {chat}.
Restore reply {reply} on targeted message {targeted} in chat {chat}.
POST /chats/{chat-id}/targetedMessages/{targetedChatMessage-id}/replies/{chatMessage-id}/unsetReaction Remove a reaction from a targeted message reply · Invoke action unsetReaction #
Ask an LLM
“How do I remove my reaction from a reply on a targeted message?”
“Can I clear a reaction on a targeted message reply?”
Tell an agent destructive · confirm first
Unset reaction {reaction} from reply {reply} on targeted message {targeted} in chat {chat}.
Remove my {reaction} reaction from reply {reply} of targeted message {targeted} in chat {chat}.
GET /chats/{chat-id}/targetedMessages/{targetedChatMessage-id}/replies/$count Count replies to a targeted message · Get the number of the resource #
Ask an LLM
“How many replies does a targeted message have?”
“Can I count replies on a targeted message in a chat?”
Tell an agent
Count replies to targeted message {targeted} in chat {chat}.
Tell me how many replies targeted message {targeted} has in chat {chat}.
GET /chats/{chat-id}/targetedMessages/{targetedChatMessage-id}/replies/delta() Track changes to replies on a targeted message · Invoke function delta #
Ask an LLM
“How do I get new replies to a targeted message since my last sync?”
“Can I use change tracking on replies to a targeted message?”
Tell an agent
Track changes to replies on targeted message {targeted} in chat {chat}.
Get new replies to targeted message {targeted} in chat {chat} since the last sync.
POST /chats/{chat-id}/targetedMessages/{targetedChatMessage-id}/replies/replyWithQuote Quote-reply to a targeted message · Invoke action replyWithQuote #
Ask an LLM
“How do I quote a targeted message when replying to it?”
“Can I reply to several messages in a chat with a quote?”
Tell an agent
Quote-reply {reply} to targeted message {message} in chat {chat}.
Reply to messages {messageIds} in chat {chat} by quoting a message: {reply}.
GET /chats/{chat-id}/targetedMessages/$count Count targeted messages in a chat · Get the number of the resource #
Ask an LLM
“How many targeted messages are in a chat?”
“Can I count targeted messages in a chat?”
Tell an agent
Count targeted messages in chat {chat}.
Tell me how many targeted messages chat {chat} has.

Documentation

Specifications

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-teams:microsoft-teams-chats-targetedchatmessage-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-teams-chats-targetedchatmessage-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OData Service for namespace microsoft.graph Chats.targeted…
  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 (225 KB total) ---
# Full source: https://artifacts.apis.io/microsoft-teams/openapi/microsoft-teams-chats-targetedchatmessage-api-openapi.yml