HydraCore
API by router

Google oauth

Google Oauth Callback

GET
/v1/oauth/google/callback

Query Parameters

code*Code
state*State
error?Error

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"google"
success*Success
Example Request
curl -X GET 'https://example.com/v1/oauth/google/callback?code=string&state=string'
Example Response
{  "connections_created": [],  "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",  "email": "string",  "error": "string",  "provider": "google",  "success": true}

Initiate Google Oauth

POST
/v1/oauth/google/init

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Query Parameters

customer_id*Customer Id

Customer to connect Google 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/google/init?customer_id=497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
{  "oauth_url": "string",  "state": "string"}