// PART 07
O365
o365 (preview) is the unified Microsoft 365 integration: one app, one connection, three resource views — SharePoint sites and lists, calendar, and OneDrive files — backed by a single server-side crate.
Vendor-neutral terms
The app deliberately uses neutral names: SP instead of SharePoint, Drive instead of OneDrive, and o365 instead of Microsoft 365. The underlying model is the same either way.
What each view offers
| View | Capabilities |
|---|---|
| SP (Sites & Lists) | Browse accessible sites, view lists and item counts, inspect documents and list items |
| Calendar | View upcoming events; create meetings with subject, start, end and attendees; track event status |
| Drive (Files) | Browse, upload and download files; navigate the folder hierarchy with breadcrumbs |
| Settings | Connect the account, manual sync plus per-service frequency, connection and last-sync status |
Connecting
Open Settings inside the app and connect the Microsoft account. The connection and last-sync state are visible there, and each service can be synced manually or on its own frequency. The OAuth flow and its client credentials are shared with the rest of the platform — see “Connected accounts and OAuth”.
The API surface
The app speaks the /api/o365/* namespace, which aliases the canonical /api/m365/* backend — both resolve to the same handlers:
| Endpoint | Method | Purpose |
|---|---|---|
/api/o365/sharepoint |
GET | List SP site items |
/api/o365/calendar |
GET | List calendar events |
/api/o365/calendar |
POST | Create a calendar event |
/api/o365/onedrive |
GET | List Drive files (?folder= optional) |
/api/o365/settings |
GET | Connection settings |
The data lives in dedicated tables for SharePoint items, calendar events and OneDrive files, plus the Microsoft OAuth settings row.
o365 versus the rest of the suite
| Need | Use |
|---|---|
| Files in the suite’s own storage | Explorer (Drive) |
| The suite’s own calendar | Calendar |
| Microsoft 365 resources | o365 |
The two calendars and two file stores are separate: o365 mirrors your Microsoft tenant, while Calendar and Explorer are the platform’s own records. Use o365 when the source of truth is Microsoft 365; use the native apps for everything the bot stores itself.
Enabling
o365 is a preview app: switch on Preview in the sidebar and open it from the app menu, or add it to the product profile’s apps= line on a deployment that should always show it.