HydraCore
API by router

Microsoft oauth

Initiate Microsoft Oauth

POST
/v1/oauth/microsoft/authorize

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Query Parameters

customer_id*Customer Id

Customer to connect Microsoft for

Formatuuid

Header Parameters

X-Api-Key?string|null

Response Body

Successful Response

application/json
  1. response
oauth_url*Oauth Url
state*State
Example Request
curl -X POST 'https://example.com/v1/oauth/microsoft/authorize?customer_id=497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
{  "oauth_url": "string",  "state": "string"}

Microsoft Oauth Callback

GET
/v1/oauth/microsoft/callback

Query Parameters

code*Code
state*State
error?Error
error_description?Error Description

Response Body

Successful Response

application/json
  1. response
connections_created?array<string>
Default[]
customer_id*Customer Id
Formatuuid
email?string|null
error?string|null
provider?Provider
Default"microsoft_graph"
success*Success
Example Request
curl -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}