curl --request POST \
--url https://app.loops.so/api/v1/events/send \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"userId": "<string>",
"eventName": "<string>",
"eventProperties": {},
"mailingLists": {}
}
'{
"success": true
}
Send events to trigger emails in Loops.
curl --request POST \
--url https://app.loops.so/api/v1/events/send \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"userId": "<string>",
"eventName": "<string>",
"eventProperties": {},
"mailingLists": {}
}
'{
"success": true
}
email or userId value or both to identify the contact.email or userId value. If a contact is found for one of the
values (e.g. email), the other value (e.g. userId) will be updated. If a
contact is not found, a new contact will be created using both email and
userId values.userId is not provided.email is not provided.string, number, boolean or date. Read moreboolean denoting if the contact
should be added (true) or removed (false) from the list. Read
more{
"mailingLists": {
"cm06f5v0e45nf0ml5754o9cix": true,
"cm16k73gq014h0mmj5b6jdi9r": false
}
}
string, number, boolean or date (see allowed date formats).
{
"email": "hello@gmail.com",
"eventName": "signup",
"firstName": "Bob", /* Contact property */
"plan": "pro" /* Custom contact property */
}
null value.409 Conflict response if the idempotency key has been used in the previous 24 hours.409 Conflict response will be returned.
All other errors will be 400 Bad Request.
{
"success": true
}
Was this page helpful?