Links

Analytics API - User

Create/update your Users in Vitally using the /user API endpoint
post
https://api.vitally.io
/analytics/v1/user
Create/update a user
Expand the POST box above for full specs

Example

An example curl request describing a Vitally user would look like:
curl -X POST https://api.vitally.io/analytics/v1/user \
-H "Authorization: Basic [your token]" \
-H "Content-Type: application/json" \
-d '{
"userId": "32",
"accountId": "123456",
"traits": {
"name": "Lionel Messi",
"position": "Forward",
"email": "[email protected]"
},
"messageId": "7ac1c682-a54b-4d0d-9f56-d6d3618f4915",
"timestamp": "2018-05-15T12:31:12.123Z"
}'

Special traits

Vitally has special logic to handle the following User traits:
  • name: defines the user's name in Vitally
  • avatar: defines the user's avatar in Vitally
  • email: defines the user's email in Vitally
  • createdAt: defines the user's 'join date' in Vitally