curl --request POST \
--url https://api.quiva.ai/hub/workflows/{collection_topic}/{flow_topic}/run \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"trigger": {
"user_id": "user_123",
"action": "process_order",
"data": {
"order_id": "ORD-456",
"items": [
{
"sku": "PROD-001",
"quantity": 2
},
{
"sku": "PROD-002",
"quantity": 1
}
],
"total": 149.99
}
},
"enable_log": true,
"await": true
}
'{
"trackingId": "ms.hub.run.abcdef-1234-5678-90ab-cdef12345678.ms.hub.config.workflow.1234567890.98765432",
"result": {
"status": "completed",
"order_id": "ORD-456",
"processed_at": "2024-01-15T10:30:00Z",
"confirmation_number": "CONF-789012"
}
}Workflows
Run a workflow
Executes a workflow with the specified trigger data
Resuming a run that is not paused or errored answers 409; it does not start the flow again. The paused entry is claimed when the resume is accepted, so a second submit is refused. A call with await: false can now return an error, including start-up failures, and waits for the first stream write.
POST
/
hub
/
workflows
/
{collection_topic}
/
{flow_topic}
/
run
curl --request POST \
--url https://api.quiva.ai/hub/workflows/{collection_topic}/{flow_topic}/run \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"trigger": {
"user_id": "user_123",
"action": "process_order",
"data": {
"order_id": "ORD-456",
"items": [
{
"sku": "PROD-001",
"quantity": 2
},
{
"sku": "PROD-002",
"quantity": 1
}
],
"total": 149.99
}
},
"enable_log": true,
"await": true
}
'{
"trackingId": "ms.hub.run.abcdef-1234-5678-90ab-cdef12345678.ms.hub.config.workflow.1234567890.98765432",
"result": {
"status": "completed",
"order_id": "ORD-456",
"processed_at": "2024-01-15T10:30:00Z",
"confirmation_number": "CONF-789012"
}
}Authorizations
bearerAuthapiKeyAuth
Path Parameters
Body
application/json