API by router
Microsoft oauth
Initiate Microsoft Oauth
Generate Microsoft OAuth URL. Auth: JWT or API-key (tenant admin).
AuthorizationBearer <token>
In: header
Query Parameters
customer_idCustomer Id
Customer to connect Microsoft for
Format
uuidHeader Parameters
X-Api-Key?X-Api-Key
Response Body
curl -X POST "https://loading/v1/oauth/microsoft/authorize?customer_id=497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "X-Api-Key: string"{
"oauth_url": "string",
"state": "string"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}Microsoft Oauth Callback
Handle Microsoft OAuth callback. Exchanges code for tokens, stores connections.
Query Parameters
codeCode
stateState
error?Error
error_description?Error Description
Response Body
curl -X GET "https://loading/v1/oauth/microsoft/callback?code=string&state=string&error=string&error_description=string"{
"connections_created": [],
"customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
"email": "string",
"error": "string",
"provider": "microsoft_graph",
"success": true
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}