POST

/v1/track

Bearer*
curl --request POST \
  --url https://api.useplunk.com/v1/track \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: "application/json"' \
  --data '{
  "event": "<event>",
  "email": "<email>"
}'

Body

eventrequired
string

The event you want to track

emailrequired
string

The email address

data
object

Metadata you want to attach to the contact.

Headers

Content-Typerequired
string

application/json

Response

success
boolean

Indicates whether the call was successful.

contact
string

The ID of the contact. If the contact already exists, the ID will be returned. If the contact is new, a new ID will be generated.

event
string

The ID of the event. If the event already exists, the ID will be returned. If the event is new, a new ID will be generated.

timestamp
datetime

The timestamp of the event.

{
    "success": true,
    "contact": "80d74d13-16eb-48c5-bc2b-aae6fd5865cc",
    "event":  "541fb6c3-3299-429b-980d-82ca5907abeb",
    "timestamp": "1970-01-01T00:00:00.000Z"
}