API by router
Microsoft oauth
POST
HTTPBearerheader
AuthorizationBearer <token>customer_id*Customer IdCustomer to connect Microsoft for
Format
uuidX-Api-Key?string|nullSuccessful Response
application/json- response
oauth_url*Oauth Urlstate*Statecurl -X POST 'https://example.com/v1/oauth/microsoft/authorize?customer_id=497f6eca-6276-4993-bfeb-53cbbbba6f08'Example Response
{ "oauth_url": "string", "state": "string"}GET
code*Codestate*Stateerror?Errorerror_description?Error DescriptionSuccessful Response
application/json- response
connections_created?array<string>Default
[]customer_id*Customer IdFormat
uuidemail?string|nullerror?string|nullprovider?ProviderDefault
"microsoft_graph"success*Successcurl -X GET 'https://example.com/v1/oauth/microsoft/callback?code=string&state=string'Example Response
{ "connections_created": [], "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e", "email": "string", "error": "string", "provider": "microsoft_graph", "success": true}