Skip to content

A business event: starts live workflows that listen for it and wakes runs waiting for it

POST
/public/v1/events
curl --request POST \
--url https://api.nuacem.dev/workflow-api/public/v1/events \
--header 'Content-Type: application/json' \
--data '{ "eventName": "example", "eventId": "example", "correlation": { "additionalProperty": "example" }, "data": {} }'
X-VoiceCX-Key
Any of:
string
<= 200 characters
Media typeapplication/json
PublicEvent
object
eventName
required
Eventname
string
>= 1 characters <= 120 characters /^[A-Za-z0-9_.:-]+$/
eventId
required
Eventid
string
>= 1 characters <= 120 characters
correlation
Correlation
object
<= 20 properties
key
additional properties
Any of:
string
data
Data
object
key
additional properties
any

Example generated

{
"eventName": "example",
"eventId": "example",
"correlation": {
"additionalProperty": "example"
},
"data": {}
}

Successful Response

Media typeapplication/json
EventAccepted
object
duplicate
required
Duplicate
boolean
started
required
Started
Array<string>
deduplicated
required
Deduplicated
Array<string>
woken
required
Woken
Array<string>
refused
required
Refused
Array<object>
object
key
additional properties
string

Example generated

{
"duplicate": true,
"started": [
"example"
],
"deduplicated": [
"example"
],
"woken": [
"example"
],
"refused": [
{
"additionalProperty": "example"
}
]
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object

Example generated

{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}