POST
/
v2
/
link
/
code
/
create
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
headerrequired

API key based authentication

Query Parameters

user_id
string
required
expires_at
string
default: 2024-02-29T09:56:34.592810+00:00

Response

200 - application/json
code
string
required
exchange_url
string
required