Send an event
Changed onSend events to trigger workflows.
Request
- Base URLhttps://app.loops.so/api
- AuthHTTP bearer
Headers
Include a unique ID for this request (maximum 100 characters) to avoid duplicate emails.
The value should be a string of up to 100 characters and should be unique for each request. We recommend using V4 UUIDs or some other method with enough guaranteed entropy to avoid collisions during a 24 hour window.
This endpoint will return a 409 Conflict response if the idempotency key has been used in the previous 24 hours.
Request body
Example request
{
"email": "alex@company.com",
"userId": "usr_7f8e9d0c1b2a",
"eventName": "signup",
"eventProperties": {
"planName": "Pro",
"importDate": "2021-01-01"
},
"mailingLists": {
"cm06f5v0e45nf0ml5754o9cix": true,
"cm16k73gq014h0mmj5b6jdi9r": false
}
}Response
Successful send.
Example response
{
"success": true
}Changes
- breaking
removed
subschema #1subschema #2from the request bodyanyOflist - breaking
removed
subschema #1subschema #2subschema #3from therequest propertyoneOflist - info
added
subschema #1: Identify by emailsubschema #2: Identify by user IDto the request bodyanyOflist - info
added
subschema #1: Stringsubschema #2: Numbersubschema #3: Booleanto therequest propertyoneOflist
- breaking
- info
api operation id
sendEventwas added
- info