Microsoft Outlook
Outlook mail and calendar: sending messages from your own address, reading the mailbox, and reading and creating events, for example a booking written to the calendar.
Connection type: For the app and the agent. Sign-in: Sign in with a Microsoft account in the provider's window and approve the permissions listed below. No passwords or keys are entered in Bloklo.
How it works
The app and the agent never see the credentials. They call the Microsoft Outlook API through the Bloklo gateway, for example fetch("/gw/<connection id>/me/messages"). The gateway appends the path to the address https://graph.microsoft.com/v1.0, adds an access token from the Microsoft sign-in, renewed automatically, and passes the service's response back to the app.
- Reads (GET) go through at once. Writes (POST, PUT, PATCH, DELETE) go through at once only when the connection is set to Always allow; otherwise the gateway returns status 202 with an
approval_idand the write waits for approval in the panel (see Agent permissions). - The Test button sends
GET /meand checks that the service accepted the credentials.
JSON over Microsoft Graph v1.0; results are paged, and the next page is at the @odata.nextLink URL (use it unchanged). Messages default to 10 per page, $top up to 1000. sendMail returns 202 with no body, which does not mean delivery; read the calendar through calendarView, which expands recurring events.
Before you start
- A Microsoft account with access to the data the app should use.
Connecting in Bloklo
- Open Connectors in the sidebar and find Microsoft Outlook.
- Click Connect and enter a connection name in Details.
- Click Connect. The Microsoft sign-in window opens.
- Choose the Microsoft account and approve the permissions. After approval you return to Bloklo and the connection is active.
- Attach the connection to a project: Attach to a project… on the connection page, or describe the task in the project chat.
In organisations where the administrator has turned off user consent to apps, Microsoft shows a request for admin approval. The company's Microsoft 365 administrator then approves the Bloklo app in the Entra admin center.
Provider permissions
Bloklo asks Microsoft for exactly these scopes: Mail.ReadWrite, Mail.Send, Calendars.ReadWrite, User.Read, offline_access. Access can be revoked at any time by removing the connection in Bloklo or in the Microsoft account settings.
Works with Microsoft 365 work accounts and personal accounts (outlook.com). In a company directory the administrator may require their own consent for the app. Checking other people's availability works only for work accounts.
Microsoft Outlook documentation
Example prompts
Prompts to type in the chat of a project with the connection attached:
- “Build an inbox with a message preview and a reply button.”
- “Send an email confirmation after every form submission.”
- “Show my calendar for the next week and let me add a meeting.”
API methods
The most commonly used Microsoft Outlook API methods. The path goes after /gw/<connection id>; parts in braces, such as {id}, are replaced with values. The gateway treats every request other than GET as a write, including queries sent with POST (such as search or GraphQL), so they need approval unless the connection is set to Always allow. The full list of methods is in the provider's documentation.
| Method | Path | What it does | In the gateway |
|---|---|---|---|
GET | /me/messages | List mailbox messages | read |
GET | /me/mailFolders/{id}/messages | Messages in a specific folder | read |
GET | /me/messages/{id} | Get one message | read |
POST | /me/sendMail | Send an email | write (approval) |
POST | /me/messages | Create a draft message | write (approval) |
POST | /me/messages/{id}/reply | Reply to a message | write (approval) |
PATCH | /me/messages/{id} | Update a message, e.g. mark as read | write (approval) |
GET | /me/calendarView | Calendar events in a date range | read |
GET | /me/events | List events and recurring series | read |
POST | /me/events | Create a calendar event | write (approval) |
PATCH | /me/events/{id} | Update a calendar event | write (approval) |
Service limits
Per app and mailbox pair: 10,000 requests per 10 minutes, 4 concurrent requests and 150 MB uploaded (PATCH, POST, PUT) per 5 minutes; exceeding returns 429 with Retry-After. Exchange Online: up to 10,000 recipients per day, 30 messages per minute, recipients per message customizable up to 1,000. Paging: $top 1–1000, default 10.
Microsoft Outlook API reference
Agent actions and permissions
| Action | Type | What the agent uses it for |
|---|---|---|
| Lista wiadomości | read | Wyszukuje i czyta wiadomości. |
| Wyślij e-mail | write | Wysyła wiadomość. |
| Odczyt kalendarza | read | Czyta wydarzenia. |
| Wydarzenia | write | Tworzy i zmienia wydarzenia. |
By default, reads run without asking and writes need approval in the chat. Change this on the connector page or in Settings → Agent permissions (see Agent permissions).
Troubleshooting
The connection says it needs reconnecting
Access was revoked in the Microsoft account, expired, or the password changed. Open the connection and click Authorize.
The test returns HTTP 403
The account has no access to this data, or some permissions were unticked during sign-in. Reconnect and approve all permissions.
Limits and security
- One connection can make up to 1,000 requests per minute; the service's own limits also apply.
- Credentials are encrypted and not shown in the browser after saving; only the names of stored fields are visible.
- A published app works for every visitor: protect the data the connection gives access to with sign-in in the app.
Something unclear or out of date? Contact us