Skip to content

Post an event to all waiting runs of a workflow

POST
/v1/workflows/{key}/events
curl --request POST \
--url https://your-notavia-host/v1/workflows/example/events \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "event_name": "example", "event_data": {} }'

Delivers event_name to every run of this workflow currently in Waiting status (paused on a wait_for_event step whose event and match filter matches). Returns the number of runs awoken.

key
required
string
/^[a-z][a-z0-9_]{0,99}$/

Workflow key — lowercase alphanumeric + underscore, max 100 chars.

Media type application/json
object
event_name
required

Name of the event to deliver (e.g. payment_confirmed).

string
<= 200 characters
event_data
required

Arbitrary JSON payload matched against the step’s match filter.

object
key
additional properties
any
Example generated
{
"event_name": "example",
"event_data": {}
}

Event delivered; awoken run count returned.

Media type application/json
object
awoken_run_count
required

Number of runs that were awoken by this event.

integer
Example generated
{
"awoken_run_count": 1
}

Validation or request error.

Media type application/json
object
error
required
object
type
required
string
code
required
string
message
required
string
param
string
nullable
Example generated
{
"error": {
"type": "example",
"code": "example",
"message": "example",
"param": "example"
}
}

Missing or invalid credentials.

Media type application/json
object
error
required
object
type
required
string
code
required
string
message
required
string
param
string
nullable
Example generated
{
"error": {
"type": "example",
"code": "example",
"message": "example",
"param": "example"
}
}

Credentials do not have the required scope.

Media type application/json
object
error
required
object
type
required
string
code
required
string
message
required
string
param
string
nullable
Example generated
{
"error": {
"type": "example",
"code": "example",
"message": "example",
"param": "example"
}
}