Docs

Create Connector

POST /users/{userId}/connectors

POST/users/{userId}/connectors

Completes a Microsoft 365 sign-in started by Connectors_GetAuthorizeUrl and creates or reconnects the connector. Reconnecting the same account keeps its id and switches. mailSyncEnabled true turns mail sync on.

Path Parameters

FieldTypeRequiredDescription
userIduuidRequired

Request Body

FieldTypeRequiredDescription
codestringOptional
statestringOptional
mailSyncEnabledbooleanOptional

Response

FieldTypeDescription
iduuid
emailAddressstring| null
statusstring| null
mailSyncEnabledboolean
calendarOverlayEnabledboolean
returnPathstring| null