Avycenna

Start connecting Fitbit / Pixel Watch

Returns the Google consent URL. Open it in the system browser (not a web view). After consent, Google returns to this API, which redirects to `return_to` (default: the app deep link) with `status=connected`, `missing_scopes` or `error`.

POST
/api/v1/google-health/authorize-url

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Header Parameters

x-api-key?string|null

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/api/v1/google-health/authorize-url" \  -H "Content-Type: application/json" \  -d '{}'
null
{  "detail": [    {      "loc": [        "string"      ],      "msg": "string",      "type": "string"    }  ]}