Fitbit / Pixel Watch connection status
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.
Authorization
HTTPBearer AuthorizationBearer <token>
In: header
Header Parameters
x-api-key?string|null
Response Body
application/json
application/json
curl -X GET "https://example.com/api/v1/google-health/status"null{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string" } ]}Start connecting Fitbit / Pixel Watch POST
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`.
Disconnect Fitbit / Pixel Watch DELETE
Revokes Avycenna's access at Google and deletes the stored tokens. Already-synced data is kept.