menu_open Events API
Events in SendStreak are signals that indicate specific actions taken by a contact, such as signing up or upgrading to a paid plan. These events can be used to segment your audience when creating automations or campaign emails.
Example event
{
"email": "someone@example.com",
"slug": "signup"
}
Send an event
To send an event, use a POST request to the events API.
Endpoint
POST https://api.sendstreak.com/v1/events
Body
Field | Description | Required |
---|---|---|
email |
A valid email address. | yes |
slug |
A short string identifier for the event/action. |
yes |
If the contact does not exist when sending an event, SendStreak will automatically create it for you.
Curl example
curl --location 'https://api.sendstreak.com/v1/events' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data-raw '{
"email": "someone@example.com",
"slug": "signup"
}'