Skip to main content
POST
When the supplied client_user_id conflicts with an existing user, the 400 Bad Request error response includes the Junction User ID (user_id) and the creation date (created_on) of the conflicting user.

Authorizations

x-vital-api-key
string
header
required

Junction Team API Key

Body

application/json
client_user_id
string
required

A unique ID representing the end user. Typically this will be a user ID from your application. Personally identifiable information, such as an email address or phone number, should not be used in the client_user_id.

fallback_time_zone
string | null
fallback_birth_date
string<date> | null

Fallback date of birth of the user, in YYYY-mm-dd format. Used for calculating max heartrate for providers that don not provide users' age.

ingestion_start
string<date> | null

Starting bound for user data ingestion bounds.

ingestion_end
string<date> | null

Ending bound for user data ingestion bounds.

preferred_language
enum<string> | null

Language the patient prefers to be contacted in and to see the patient portal in, as a BCP 47 tag. Junction adds it to the patient portal links it generates, except embedded launch links, where the embedding partner sets the language. ℹ️ This enum is non-exhaustive.

Available options:
en-US,
es-US

Response

Successful Response

user_id
string<uuid>
required

User id returned by Junction create user request. This id should be stored in your database against the user and used for all interactions with the Junction API.

team_id
string<uuid>
required

Your team id.

client_user_id
string
required

A unique ID representing the end user. Typically this will be a user ID from your application. Personally identifiable information, such as an email address or phone number, should not be used in the client_user_id.

created_on
string<date-time>
required

When your item is created

connected_sources
ConnectedSourceClientFacing · object[]
required

A list of the users connected sources.

fallback_time_zone
FallbackTimeZone · object | null
required
fallback_birth_date
FallbackBirthDate · object | null

Fallback date of birth of the user, in YYYY-mm-dd format. Used for calculating max heartrate for providers that don not provide users' age.

ingestion_start
string<date> | null

Starting bound for user data ingestion bounds.

ingestion_end
string<date> | null

Ending bound for user data ingestion bounds.

preferred_language
enum<string> | null

Language the patient prefers to be contacted in and to see the patient portal in, as a BCP 47 tag. Junction adds it to the patient portal links it generates, except embedded launch links, where the embedding partner sets the language. ℹ️ This enum is non-exhaustive.

Available options:
en-US,
es-US