Skip to the page

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.

opensend events send [flags]
Needs the scopeevents:write
Reaches outside the workspace

Flags

  • --namestringRequired

    The name of the event, such as order.paid. A new name is defined as it is sent.

  • --emailstring

    The address of the person it is about. Give this or contactId. Up to 120 characters.

  • --contact-idstring

    The 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.

  • --idempotency-keystring

    A key of your own that makes a repeat of this request answer with the first result and start nothing. The Idempotency-Key header does the same.

Returns

The command prints the answer: as JSON when its output goes to a file or another program, and as a table or a list of fields in a terminal. When the API refuses, the error goes to the error stream and the command ends with a code that names the failure. Output and scripts lists the codes.

  • object"event_receipt"

    Always event_receipt.

  • idstring

    The id of this one event that was sent.

  • namestring

    The name of the event.

  • emailstring

    The address of the person it was about.

  • contactIdstring | null

    The id of their contact, or null.

  • dataRecord<string, unknown>

    The data that came with it.

  • startedinteger

    How many runs it started.

  • resumedinteger

    How many waiting runs it let go on.

  • exitedinteger

    How many runs it ended.

  • createdAtstring

    When it was received.