Docs

Create Microsoft365 Integration

POST /integrations/microsoft-365

POST/integrations/microsoft-365

Completes the Microsoft 365 connection from the consent redirect, using the code and state Microsoft returned to the callback page. Fails when the state is invalid or expired, when Microsoft refuses the code (its message is returned), or when Microsoft 365 is already connected. Requires organization admin (* at the organization).

Request Body

FieldTypeRequiredDescription
codestringOptional
statestringOptional

Response

FieldTypeDescription
iduuid
tenantIdstring| null
connectedAtdate-time