Send event
Tells the workspace that something happened to one person. Every active automation that listens for the event starts a run, runs that wait for it go on, and runs it is an exit for end. The answer says how many of each.
events_sendArguments
namestringRequiredThe name of the event, such as
order.paid. A new name is defined as it is sent.emailstringThe address of the person it is about. Give this or
contactId. Up to 120 characters.contactIdstringThe id of the contact it is about. Give this or
email. Up to 64 characters.dataRecord<string, unknown>Values that come with the event, up to 10 KB. They fill
{{name}}slots in emails and can be tested by conditions.idempotencyKeystringA key of your own that makes a repeat of this request answer with the first result and start nothing. The
Idempotency-Keyheader does the same.
Returns
The answer comes back under structuredContent, with the same JSON as text in content. A call the API refuses comes back with isError set, and the code and the message under structuredContent.error. MCP shows how to connect a client.
object"event_receipt"Always
event_receipt.idstringThe id of this one event that was sent.
namestringThe name of the event.
emailstringThe address of the person it was about.
contactIdstring | nullThe id of their contact, or
null.dataRecord<string, unknown>The data that came with it.
startedintegerHow many runs it started.
resumedintegerHow many waiting runs it let go on.
exitedintegerHow many runs it ended.
createdAtstringWhen it was received.