Skip to main content
POST
/
run
/
event
Trigger an event for a user
curl --request POST \
  --url https://production.runalloy.com/run/event \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --header 'x-api-version: <x-api-version>' \
  --data '{
  "event": "<string>",
  "userId": "<string>",
  "data": {}
}'
{
  "message": "Event successfully triggered"
}

Headers

Authorization
string
default:bearer YOUR_API_KEY
required
x-api-version
string
default:2025-09
required

The version of the API to use. The current API version is 2025-09.

Body

application/json
event
string
required

The name of the custom event to run.

userId
string
required

The user Id the workflow belongs to

data
object
required

The key-value pairs you want to send as defined in the custom event. This data will be used in expressions during the workflow execution.

Response

200 - application/json

200

message
string
Example:

"Event successfully triggered"

I