Link
Create Code
Generate a token to invite a user of Vital mobile app to your team
POST
/
v2
/
link
/
code
/
create
Authorization
Query
curl --request POST \
--url {{BASE_URL}}/v2/link/code/create\?user_id\=1875c190-0cd6-46c1-8670-5b56a7794b78 \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'x-vital-api-key: <API_KEY>'
{
"code": "skus17922ffe",
"exchange_url": "tryvital://tryvital?code=skus17922ffe"
}
Used for Vital iOS Apps to share Apple HealthKit with you. Please refer here for more information.
Authorizations
x-vital-api-key
string
headerrequiredAPI key based authentication
Query Parameters
user_id
string
requiredexpires_at
string
default: 2023-11-30T12:42:23.130370+00:00Response
200 - application/json
code
string
requiredexchange_url
string
requiredcurl --request POST \
--url {{BASE_URL}}/v2/link/code/create\?user_id\=1875c190-0cd6-46c1-8670-5b56a7794b78 \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'x-vital-api-key: <API_KEY>'
{
"code": "skus17922ffe",
"exchange_url": "tryvital://tryvital?code=skus17922ffe"
}