Microsoft 365
Outlook mail, SharePoint, OneDrive and Teams
Managed auth
Authentication
Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.
OAuth 2.0
PKCEYour OAuth appBring your own OAuth app: register one with Microsoft 365, then create a custom auth config with its client ID and secret and our redirect URI. Setup guide
Registering the OAuth app
- In the Microsoft Entra admin center open “App registrations” → “New registration” and register a “Web” application.
- Under “Authentication” add the redirect URI shown below.
- Under “Certificates & secrets” create a client secret and copy its value, together with the application (client) ID.
- Under “API permissions” add the delegated permissions listed in the scopes.
- Depending on your tenant's policy, some permissions may need an administrator to grant consent. Set the tenant to your directory (tenant) ID for a single-tenant app, or keep “organizations” for work and school accounts of any tenant. These steps are only needed for your own OAuth app: when this deployment has a managed Microsoft app, Continue connects without them.
Default scopes
offline_accessUser.ReadMail.ReadWriteMail.SendMailboxSettings.ReadWriteFiles.ReadWrite.AllSites.ReadWrite.AllChat.ReadWriteChatMessage.SendChannelMessage.SendTeam.ReadBasic.AllChannel.ReadBasic.All
Tools (7)
Microsoft 365 API request
MICROSOFT365_SEND_REQUESTAuthenticated call to the Microsoft 365 API (https://graph.microsoft.com/v1.0). Any endpoint of the API is allowed. Examples: GET /me/messages, GET /me/mailFolders, POST /me/sendMail, GET /sites/{id}/drive/root/children, POST /chats/{id}/messages.
Required scopes
No scopes required
Input
Microsoft 365 API request input Name Type Description methodstringHTTP methodOne of: GET,POST,PUT,PATCH,DELETEDefault:"GET"pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link) queryobjectQuery string parameters bodyunknownJSON body formobjectBody as application/x-www-form-urlencoded instead of JSON body_base64stringBinary body, base64 (at most 960000 characters) content_typestringContent-Type of body_base64 headersobjectExtra headers such as Accept. Authentication is added automatically. Search mail
MICROSOFT365_SEARCH_MAILSearches the mailbox (all folders or one). Returns id, subject, sender, date, whether it has attachments and a preview.
Required scopes
No scopes required
Input
Search mail input Name Type Description searchstringText to search (KQL syntax, e.g. 'invoice from:aws') filterstringOData filter, e.g. "receivedDateTime ge 2026-10-01T00:00:00Z and hasAttachments eq true" folderstringFolder: inbox, sentitems, deleteditems, archive or a folder id maxintegerMessages to return (1 to 100)Default: 25Read a message
MICROSOFT365_GET_MAILReturns the full message (body as text) and the list of its attachments.
Required scopes
No scopes required
Input
Read a message input Name Type Description idrequiredstringMessage id Send a message
MICROSOFT365_SEND_MAILSends an e-mail from the connected account and saves it in Sent Items.
Required scopes
No scopes required
Input
Send a message input Name Type Description torequiredstring[]Recipient addresses subjectrequiredstringSubject bodyrequiredstringBody as HTML or text ccstring[]Cc addresses htmlbooleantrue: the body is HTML; false: plain textDefault: trueList a folder
MICROSOFT365_LIST_SHAREPOINT_FOLDERLists the files and folders of a site's document library.
Required scopes
No scopes required
Input
List a folder input Name Type Description siterequiredstringSharePoint site: its name (e.g. marketing) or its URL (https://contoso.sharepoint.com/sites/marketing) folderstringPath inside the library, e.g. Finance/Invoices/2026 (empty: the root)Default: ""List chats
MICROSOFT365_LIST_TEAMS_CHATSLists your Teams chats (id, topic, type, last update).
Required scopes
No scopes required
Input
List chats input Name Type Description maxintegerChats to return (1 to 50)Default: 50Send a chat message
MICROSOFT365_SEND_TEAMS_MESSAGEPosts a message (HTML or text) to a Teams chat.
Required scopes
No scopes required
Input
Send a chat message input Name Type Description chat_idrequiredstringChat id (from MICROSOFT365_LIST_TEAMS_CHATS) messagerequiredstringMessage content htmlbooleantrue: the message is HTML; false: plain textDefault: true

