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`.
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" } ]}Google health
Google health endpoints.
Fitbit / Pixel Watch connection status GET
Whether Google Health is connected, which scopes the person granted (Google lets them untick any), what is missing for ECG, and how far each data type has synced. `needs_reconnect` means the app should offer to connect again.