Links

Analytics API - Account

Create/update your (business) Accounts in Vitally using the /account API endpoint
post
https://api.vitally.io
/analytics/v1/account
Create/update an account
Expand the POST box above for full specs

Example

An example curl request describing Vitally would look like:
curl -X POST https://api.vitally.io/analytics/v1/account \
-H "Authorization: Basic [your token]" \
-H "Content-Type: application/json" \
-d '{
"accountId": "123456",
"traits": {
"name": "Vitally",
"avatar": "http://logo.clearbit.com/vitally.io",
"status": "trialing",
"trialEndDate": "2018-06-01T00:00:00.000Z"
},
"messageId": "7ac1c682-a54b-4d0d-9f56-d6d3618f4915",
"timestamp": "2018-05-15T12:31:12.123Z"
}'

Special traits

Vitally has special logic to handle the following Account traits:
  • name: defines the account's name in Vitally
  • avatar: defines the account's avatar in Vitally