A business event: starts live workflows that listen for it and wakes runs waiting for it
POST
/public/v1/events
const url = 'https://api.nuacem.dev/workflow-api/public/v1/events';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"eventName":"example","eventId":"example","correlation":{"additionalProperty":"example"},"data":{}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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": {} }'Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
PublicEvent
object
Example generated
{ "eventName": "example", "eventId": "example", "correlation": { "additionalProperty": "example" }, "data": {}}Responses
Section titled “Responses”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>
ValidationErrorobject
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": {} } ]}