Comment on page

Analytics API - Account

Create/update your (business) Accounts in Vitally using the /account API endpoint
Create/update an account
Expand the POST box above for full specs


An example curl request describing Vitally would look like:
curl -X POST \
-H "Authorization: Basic [your token]" \
-H "Content-Type: application/json" \
-d '{
"accountId": "123456",
"traits": {
"name": "Vitally",
"avatar": "",
"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