POST
/
v1
curl --request POST \
  --url https://api.mailsparky.com/v1 \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "event": "<string>",
  "email": "<string>",
  "subscribed": true
}'
{"success": true, "contact": "aae1aa1a-49b9-4d47-a817-74dcfcc7bb37", "event": "30a77888-d26d-4419-92f7-ad720bd5b3c0", "timestamp": "2025-01-12T16:45:35.835Z"}

Body

event
string
required

The subject of the event

email
string
required

Your email address

subscribed
bool

true or false

Reponse

{"success": true, "contact": "aae1aa1a-49b9-4d47-a817-74dcfcc7bb37", "event": "30a77888-d26d-4419-92f7-ad720bd5b3c0", "timestamp": "2025-01-12T16:45:35.835Z"}