POST
/
v1
/
track
curl --request POST \
  --url https://api.useplunk.com/v1/track \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: <content-type>' \
  --data '{
  "event": "<string>",
  "email": "<string>",
  "subscribed": true,
  "data": {}
}'
{
    "success": true,
    "contact": "80d74d13-16eb-48c5-bc2b-aae6fd5865cc",
    "event":  "541fb6c3-3299-429b-980d-82ca5907abeb",
    "timestamp": "1970-01-01T00:00:00.000Z"
}

Body

event
string
required

The event you want to track

email
string
required

The email address

subscribed
boolean
default: "true"

Should the contact be subscribed

data
object

Metadata you want to attach to the contact.

Headers

Content-Type
string
required

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.