Complete a cloud vendor's OAuth handshake
Exchanges the authorization code returned by the vendor's consent screen for an access token and stores it. Actual scheduled data-pulling from the vendor's API is a follow-up once real credentials are configured — this endpoint only completes the handshake.
Authorization
HTTPBearer In: header
Path Parameters
Header Parameters
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/wearables/oauth/string/callback" \ -H "Content-Type: application/json" \ -d '{ "code": "string", "redirect_uri": "string" }'null{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string" } ]}Get a cloud vendor's OAuth consent URL POST
Builds the OAuth authorize URL for a cloud-synced vendor (garmin, whoop, oura; Fitbit / Pixel Watch and Withings use `/ecg-sources/{source}/authorize-url`) so the mobile app can open it in an in-app browser. Returns 501 if that vendor's developer credentials haven't been configured yet.
Get sync status per source GET
Last sync time and status (success/error) for each connected wearable source.