API Reference
POST /api/public/apps/track
The Track call is how you record any actions your users perform, along with any properties that describe the action.
POST
/
api
/
public
/
apps
/
track
Header
Body
curl --request POST \
--url http://localhost/api/public/apps/track \
--header 'Content-Type: application/json' \
--header 'authorization: <authorization>' \
--data '{
"context": {},
"event": "<string>",
"messageId": "<string>",
"properties": {},
"timestamp": "<string>",
"userId": "<string>"
}'
"<string>"
The following is an example of a track body.
example body
{
"event": "Signed Up",
"userId": "1043",
"properties": {
"plan": "Enterprise"
},
"messageId": "1ff51c9c-4929-45de-8914-3bb878be8c4a"
}
Headers
authorization
string
requiredBody
application/json
Option 1
Option 2
context
object
event
string
requiredmessageId
string
requiredproperties
object
timestamp
string
userId
string
requiredResponse
204 - application/json
An empty String
curl --request POST \
--url http://localhost/api/public/apps/track \
--header 'Content-Type: application/json' \
--header 'authorization: <authorization>' \
--data '{
"context": {},
"event": "<string>",
"messageId": "<string>",
"properties": {},
"timestamp": "<string>",
"userId": "<string>"
}'
"<string>"