Microsoft Outlook Users.message API

The users.message API from Microsoft Outlook — 22 operation(s) for users.message.

GitHub OpenAPI

Operations 32

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}/messages List a user's messages · Get messages from users #
Ask an LLM
“What emails are in a user's mailbox?”
“Can I include hidden messages when listing a user's emails?”
Tell an agent
List messages for user {user}.
Show {top} messages for user {user} matching {filter}.
POST /users/{user-id}/messages Send an email · Create new navigation property to messages for users #
Ask an LLM
“How do I send an email from a user's mailbox?”
“Can I set the importance or importance of a new email?”
Tell an agent
Send an email from user {user} with subject {subject}.
Create a {importance} email from user {user} to {to} with body {body}.
GET /users/{user-id}/messages/{message-id} Get a message · Get messages from users #
Ask an LLM
“What are the details of one email in a user's mailbox?”
“Can I fetch a single message by its ID?”
Tell an agent
Get message {message} for user {user}.
Show the subject and body of email {message} in user {user}'s mailbox.
PATCH /users/{user-id}/messages/{message-id} Update a message · Update the navigation property messages in users #
Ask an LLM
“How do I change the subject of an existing email?”
“Can I mark an existing message as read or unread?”
Tell an agent
Change the subject of message {message} in user {user} to {subject}.
Mark email {message} in user {user}'s mailbox as read: {is_read}.
DELETE /users/{user-id}/messages/{message-id} Delete a message · Delete navigation property messages for users #
Ask an LLM
“How do I delete an email from a user's mailbox?”
“Can I delete a message only if its ETag matches?”
Tell an agent destructive · confirm first
Delete message {message} from user {user}.
Remove email {message} in user {user}'s mailbox if ETag is {etag}.
GET /users/{user-id}/messages/{message-id}/$value Download a message's content · Get media content for the navigation property messages from users #
Ask an LLM
“How do I download the raw content of an email?”
“Can I fetch the full message body as a file?”
Tell an agent
Download the content of message {message} for user {user}.
Get the raw body of email {message} in user {user}'s mailbox.
PUT /users/{user-id}/messages/{message-id}/$value Replace a message's content · Update media content for the navigation property messages in users #
Ask an LLM
“How do I overwrite the content of an existing email?”
“Can I replace a message's body with new text?”
Tell an agent
Replace the content of message {message} for user {user}.
Overwrite the body of email {message} in user {user}'s mailbox.
DELETE /users/{user-id}/messages/{message-id}/$value Delete a message's content · Delete media content for the navigation property messages in users #
Ask an LLM
“How do I clear the content of an email?”
“Can I remove the body of an existing message?”
Tell an agent destructive · confirm first
Delete the content of message {message} for user {user}.
Clear the body of email {message} in user {user}'s mailbox.
GET /users/{user-id}/messages/{message-id}/attachments List attachments on a message · Get attachments from users #
Ask an LLM
“What attachments are attached to an email?”
“Can I filter the attachments on a message?”
Tell an agent
List attachments on message {message} for user {user}.
Show the first {top} attachments of email {message} in user {user}'s mailbox.
POST /users/{user-id}/messages/{message-id}/attachments Attach a file to a message · Create new navigation property to attachments for users #
Ask an LLM
“How do I attach a file to an email?”
“Can I attach an inline image to a message?”
Tell an agent
Attach a file named {name} to message {message} for user {user}.
Add an inline attachment to email {message} in user {user}'s mailbox.
GET /users/{user-id}/messages/{message-id}/attachments/{attachment-id} Get an attachment on a message · Get attachments from users #
Ask an LLM
“How do I download one attachment from an email?”
“Can I fetch a single attachment by its ID?”
Tell an agent
Get attachment {attachment} on message {message} for user {user}.
Download the file {attachment} from email {message} in user {user}'s mailbox.
DELETE /users/{user-id}/messages/{message-id}/attachments/{attachment-id} Remove an attachment from a message · Delete navigation property attachments for users #
Ask an LLM
“How do I remove an attachment from an email?”
“Can I delete an attachment only if its ETag matches?”
Tell an agent destructive · confirm first
Delete attachment {attachment} from message {message} for user {user}.
Remove file {attachment} from email {message} in user {user}'s mailbox if ETag is {etag}.
GET /users/{user-id}/messages/{message-id}/attachments/$count Count attachments on a message · Get the number of the resource #
Ask an LLM
“How many attachments does an email have?”
“Can I count only the inline attachments on a message?”
Tell an agent
Count the attachments on message {message} for user {user}.
Tell me how many attachments email {message} has in user {user}'s mailbox.
POST /users/{user-id}/messages/{message-id}/attachments/createUploadSession Start an upload session for a large attachment · Invoke action createUploadSession #
Ask an LLM
“How do I attach a file bigger than 3 MB to an email?”
“Can I upload a large attachment in chunks instead of in one request?”
Tell an agent
Create an upload session for a large file attachment on message {message} in user {user}'s mailbox.
Start a chunked upload session for message {message} for user {user} so I can attach a big document.
GET /users/{user-id}/messages/{message-id}/extensions List extensions on a message · Get extensions from users #
Ask an LLM
“What custom extensions are on an email?”
“Can I filter the extensions on a message?”
Tell an agent
List extensions on message {message} for user {user}.
Show the first {top} extensions of email {message} in user {user}'s mailbox.
POST /users/{user-id}/messages/{message-id}/extensions Add a custom extension to a message · Create new navigation property to extensions for users #
Ask an LLM
“How do I add a custom property to an email?”
“Can I create an open extension on a message?”
Tell an agent
Add a custom extension to message {message} for user {user}.
Create an open extension on email {message} in user {user}'s mailbox.
GET /users/{user-id}/messages/{message-id}/extensions/{extension-id} Get a custom extension on a message · Get extensions from users #
Ask an LLM
“How do I read a custom extension on an email?”
“Can I fetch one extension by its ID?”
Tell an agent
Get extension {extension} on message {message} for user {user}.
Show the custom property {extension} of email {message} in user {user}'s mailbox.
PATCH /users/{user-id}/messages/{message-id}/extensions/{extension-id} Update a custom extension on a message · Update the navigation property extensions in users #
Ask an LLM
“How do I change a custom extension on an email?”
“Can I update an existing open extension on a message?”
Tell an agent
Update extension {extension} on message {message} for user {user}.
Change the custom property {extension} of email {message} in user {user}'s mailbox.
DELETE /users/{user-id}/messages/{message-id}/extensions/{extension-id} Remove a custom extension from a message · Delete navigation property extensions for users #
Ask an LLM
“How do I remove a custom extension from an email?”
“Can I delete an extension only if its ETag matches?”
Tell an agent destructive · confirm first
Delete extension {extension} from message {message} for user {user}.
Remove custom property {extension} from email {message} in user {user}'s mailbox if ETag is {etag}.
GET /users/{user-id}/messages/{message-id}/extensions/$count Count extensions on a message · Get the number of the resource #
Ask an LLM
“How many custom extensions does an email have?”
“Can I count only the extensions matching a filter?”
Tell an agent
Count the extensions on message {message} for user {user}.
Tell me how many extensions email {message} has in user {user}'s mailbox.
POST /users/{user-id}/messages/{message-id}/copy Copy a message to a folder · Invoke action copy #
Ask an LLM
“How do I copy an email into another folder in a user's mailbox?”
“Can I copy a message to a specific destination folder by its ID?”
Tell an agent
Copy message {message} in user {user} to folder {destination}.
Make a copy of email {message} for user {user} into folder {destination}.
POST /users/{user-id}/messages/{message-id}/createForward Create a forward draft of a message · Invoke action createForward #
Ask an LLM
“How do I draft a forward of an email to new recipients?”
“Can I add a comment when creating a forward draft?”
Tell an agent
Create a forward draft of message {message} for user {user} to {recipients}.
Draft a forward of email {message} in user {user} with comment {comment}.
POST /users/{user-id}/messages/{message-id}/createReply Create a reply draft to a message · Invoke action createReply #
Ask an LLM
“How do I reply to the sender of an email without replying to everyone?”
“Can I write a reply draft with a comment on a message?”
Tell an agent
Create a reply draft to message {message} in user {user}.
Draft a reply to email {message} for user {user} saying {comment}.
POST /users/{user-id}/messages/{message-id}/createReplyAll Create a reply-all draft for a message · Invoke action createReplyAll #
Ask an LLM
“How do I draft a reply-all to an email in my mailbox?”
“Can I add a comment when creating a reply-all draft?”
Tell an agent
Create a reply-all draft for message {message} in user {user}.
Draft a reply-all on message {message} with comment {comment} for user {user}.
POST /users/{user-id}/messages/{message-id}/forward Forward a message to recipients · Invoke action forward #
Ask an LLM
“How do I forward an email to a new recipient?”
“Can I include a comment when forwarding a message?”
Tell an agent
Forward message {message} in user {user} to {recipients}.
Forward email {message} for user {user} with comment {comment}.
POST /users/{user-id}/messages/{message-id}/move Move a message to another folder · Invoke action move #
Ask an LLM
“How do I move an email to a different folder in a mailbox?”
“Does moving a message remove it from its original folder?”
Tell an agent
Move message {message} in user {user} to folder {destination}.
Move email {message} for user {user} into folder {destination}.
POST /users/{user-id}/messages/{message-id}/permanentDelete Permanently delete a message · Invoke action permanentDelete #
Ask an LLM
“How do I permanently delete an email from a mailbox?”
“Is there a way to remove a message for good instead of moving it to Deleted Items?”
Tell an agent destructive · confirm first
Permanently delete message {message} in user {user}.
Remove email {message} from user {user}'s mailbox for good.
POST /users/{user-id}/messages/{message-id}/reply Reply to the sender of a message · Invoke action reply #
Ask an LLM
“How do I reply to just the sender of an email?”
“Can I leave a comment when replying to one sender?”
Tell an agent
Reply to the sender of message {message} in user {user}.
Send a reply to message {message} on user {user}'s mailbox with comment {comment}.
POST /users/{user-id}/messages/{message-id}/replyAll Reply to all recipients of a message · Invoke action replyAll #
Ask an LLM
“How do I reply to everyone on a message, including cc recipients?”
“Can I send a reply-all in MIME format?”
Tell an agent
Reply to all recipients of message {message} in user {user}.
Send a reply-all to everyone on message {message} for user {user} with the note {comment}.
POST /users/{user-id}/messages/{message-id}/send Send a draft message · Invoke action send #
Ask an LLM
“How do I send a draft email I already wrote?”
“Does sending a draft save it in the Sent Items folder?”
Tell an agent
Send message {message} in user {user}.
Send the draft email {message} for user {user}.
GET /users/{user-id}/messages/$count Count a user's messages · Get the number of the resource #
Ask an LLM
“How many messages does a user have in their mailbox?”
“Can I count only unread messages for a user?”
Tell an agent
Count the messages in user {user}'s mailbox.
Count messages in user {user} matching {filter}.
GET /users/{user-id}/messages/delta() Get incremental changes to a user's messages · Invoke function delta #
Ask an LLM
“How do I sync my local copy of a user's mailbox with only the messages that changed?”
“Can I get only new, updated or deleted messages since my last sync?”
Tell an agent
Get the message delta for user {user}.
Get message changes of type {change_type} for user {user}.

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-message-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-message-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OData Service for namespace microsoft.graph Users.message…
  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 (222 KB total) ---
# Full source: https://artifacts.apis.io/microsoft-outlook/openapi/microsoft-outlook-users-message-api-openapi.yml