POST
/
v2
/
user
curl --request POST \
     --url {{BASE_URL}}/v2/user/ \
     --header 'Accept: application/json' \
     --header 'x-vital-api-key: <API_KEY>' \
     --header 'Content-Type: application/json' \
     --data '
{
     "client_user_id": "your_unique_id"
}
'
{
  "client_user_id": "ZTEwZjNjMjctOTI2ZS00M2Vm",
  "user_id": "1449752e-0d8a-40e0-9206-91ab099b2537"
}

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

curl --request POST \
     --url {{BASE_URL}}/v2/user/ \
     --header 'Accept: application/json' \
     --header 'x-vital-api-key: <API_KEY>' \
     --header 'Content-Type: application/json' \
     --data '
{
     "client_user_id": "your_unique_id"
}
'

Authorizations

x-vital-api-key
string
header
required

Vital Team API Key

Body

application/json

Response

200
application/json
Successful Response

The response is of type object.