Disconnect Fitbit / Pixel Watch
Revokes Avycenna's access at Google and deletes the stored tokens. Already-synced data is kept.
Authorization
HTTPBearer AuthorizationBearer <token>
In: header
Header Parameters
x-api-key?string|null
Response Body
application/json
curl -X DELETE "https://example.com/api/v1/google-health/connection"Empty
{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string" } ]}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.
Google OAuth redirect target GET
Called by Google's consent screen in the browser, not by apps. Redirects back to the app.