Outlook
Outlook
Section titled “Outlook”Access to Microsoft Outlook email via the Microsoft Graph API.
- Read, send, and manage emails
- Access mail folders (Inbox, Sent, Drafts, etc.)
- Search messages
- Manage attachments
Common Endpoints
Section titled “Common Endpoints”List Messages
Section titled “List Messages”GET /me/messagesQuery params: $top, $skip, $filter, $orderby, $select
Get a Message
Section titled “Get a Message”GET /me/messages/{id}Search Messages
Section titled “Search Messages”GET /me/messages?$search="keyword"List Mail Folders
Section titled “List Mail Folders”GET /me/mailFoldersSend Email
Section titled “Send Email”POST /me/sendMailBody: { "message": { "subject": "...", "body": { "contentType": "Text", "content": "..." }, "toRecipients": [{ "emailAddress": { "address": "..." } }] }}Guidelines
Section titled “Guidelines”- Use the
api_outlooktool withpath,method, and optionalparams - Base URL:
https://graph.microsoft.com/v1.0 - All paths are relative to the base URL
Setup Guide
Section titled “Setup Guide”Configuration
Section titled “Configuration”Required config.json:
{ "name": "Outlook", "slug": "outlook", "enabled": true, "provider": "microsoft", "type": "api", "api": { "baseUrl": "https://graph.microsoft.com/v1.0/", "authType": "bearer", "microsoftService": "outlook", "testEndpoint": { "method": "GET", "path": "me/mailFolders?$top=1" } }, "iconUrl": "https://res.cdn.office.net/files/fabric-cdn-prod_20241209.001/assets/brand-icons/product/svg/outlook_48x1.svg"}Authentication
Section titled “Authentication”Use source_microsoft_oauth_trigger to start the Microsoft OAuth flow.
Rate Limits
Section titled “Rate Limits”Microsoft Graph has throttling limits. If you receive 429 errors, wait before retrying.