β‘Workflows
Send an incoming event
Request Body
Name
Type
Description
{
message: string
event: object
}{
message: string
}{
message: string
errors: Record<string, string[]>
}Examples
curl --location 'https://global.stampede.ai/v1/workflows/incoming-event' \
--header 'Content-Type: application/json' \
--header 'authorization: Bearer YOUR_ACCESS_TOKEN' \
--data '{
"serials": ["XXXXXXXXXXXX"],
"organisation_registration_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"parameters": {
"source": "some_service",
"key": "value"
}
}'const axios = require('axios')
const data = JSON.stringify({
serials: ['XXXXXXXXXXXX'],
organisation_registration_id: 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
parameters: {
source: 'some_service',
key: 'value',
},
})
const config = {
method: 'post',
maxBodyLength: Infinity,
url: 'https://global.stampede.ai/v1/workflows/incoming-event',
headers: {
'Content-Type': 'application/json',
authorization: 'Bearer YOUR_ACCESS_TOKEN',
},
data,
}
axios
.request(config)
.then((response) => console.log(JSON.stringify(response.data)))
.catch((error) => console.log(error))Store a workflow run
Path Parameters
Name
Type
Description
Request Body
Name
Type
Description
Response
Benefits over incoming-event
incoming-eventExamples
Last updated
Was this helpful?

