HydraCore
API by router

Google oauth

Google Oauth Callback

Handle Google OAuth callback. Exchanges code for tokens, stores connections.

GET
/v1/oauth/google/callback

Query Parameters

codeCode
stateState
error?Error

Response Body

curl -X GET "https://loading/v1/oauth/google/callback?code=string&state=string&error=string"
{
  "connections_created": [],
  "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
  "email": "string",
  "error": "string",
  "provider": "google",
  "success": true
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

Initiate Google Oauth

Generate Google OAuth URL. Auth: JWT or API-key (tenant admin).

POST
/v1/oauth/google/init
AuthorizationBearer <token>

In: header

Query Parameters

customer_idCustomer Id

Customer to connect Google for

Formatuuid

Header Parameters

X-Api-Key?X-Api-Key

Response Body

curl -X POST "https://loading/v1/oauth/google/init?customer_id=497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "X-Api-Key: string"
{
  "oauth_url": "string",
  "state": "string"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}