Onboard a User and Connect a Wearable
A 3-step recipe with Vital. We can help you get access.
Recipe · 3 steps
Onboard a User and Connect a Wearable
with Vital
Create a Vital user and prepare a Link token plus provider list for wearable connection.
- Create a Vital user tied to your client_user_id and capture the Vital user_id used for all subsequent interactions.
- Generate a one-time Vital Link token (valid for 10 minutes) for the new user so a wearable provider connection can be initiated.
- List the providers available for this Link token so your custom Link UI can present the end user with selectable wearable sources.
What you'll need to have ready
- apiKey: Your Vital API key, sent in the x-vital-api-key header.
- clientUserId: A unique ID representing the end user in your application.
- fallbackTimeZone: Optional IANA timezone (e.g. America/Los_Angeles) used for timezone-agnostic data.
- redirectUrl: Optional URL to redirect to after a successful or failed Link connection.
For your developer
Arazzo workflow vital-io:onboard-user-connect-wearable, 3 operations: create_user_v2_user_post → generate_vital_link_token_v2_link_token_post → get_providers_v2_link_providers_get. Specs on APIs.io.