The Hyperflow APIs expose a variety of services that trigger the orchestration of coordinated AI services which empower users to build complex AI-powered applications
Follow this 2-step process to access to the Hyperflow API with Webhook HTTPS communication:
Step 1: Execute the Hyperflow and retrieve the execution_id
Step 2: Polling and retrieve Hyperflow steps results
curl https://{{ tenant }}.lightenup.ai/hyperflow/{hyperflowName} \
--request POST \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: application/json" \
--data @- << EOF
{
"input 1": "input text 1",
"input 2": "input text 2",
...
"input n": "input text n",
}
EOF
{
"hyperflowId": "3febbd7d-86a6-408e-97d9-12f32c72d66b",
"executionId": "IXBEHH6NiGYEXvA="
}
curl https://{{ tenant }}.lightenup.ai/admin/stats \
--request POST \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: application/json" \
--data @- << EOF
{
"execution_id": "{execution_id}",
"opCode": "exec_logs"
}
EOF
[
{
"count": "1",
"service": "privacy_risk",
"service_type": "ai_services",
"execution_id": "b89418fa-88ac-42b7-bf79-603d7e8edac5",
"identity": "employee_assistant",
"stop_execution": "2025-04-01T19:24:45.848Z",
"status": "completed",
"latency": {
"milliseconds": 899
},
"hyperflow_id": "NA"
},
...
{
"count": "1",
"service": "sentiment_analysis",
"service_type": "ai_services",
"execution_id": "8a9b84af-e058-42a1-bb89-a357f1093373",
"identity": "employee_assistant",
"stop_execution": "2025-04-01T19:24:48.504Z",
"status": "completed",
"latency": {
"seconds": 1,
"milliseconds": 482
}
}
]
Hyperflow API via Websocket connection.
{
"action": "message",
"state": "ack",
"statusCode": "200",
"service_type": "customhyperflow",
"service": "customhyperflow_customer_portal_ticket",
"connectionId": "ITeEycoRiGYCE8w=",
"messageId": "ITeFwcorCGYCE8w=",
"message": "Request received and being processed",
"inputsValues": "{}",
"nodeId": ""
}
Request Method: GET
Status Code: 403 Forbidden
Endpoint:
wss://ws
.{{ tenant }}.lightenup.ai. \
message
{
"service": "customhyperflow_assistant_hitl",
"action": "message",
...
"{input n}": "{input text n}"
}
EOF
{
"action": "message",
"state": "completed",
"statusCode": "200",
"service_type": "custom_ai_services",
"service": "cinema_promotion_visits_month",
"connectionId": "ITeEycoRiGYCE8w=",
"messageId": "ITeFwcorCGYCE8w=",
"message": "{\"outputs\":{\"results\":[{\"promotionactivated\":\"No\", \"execution_id\":\"0158e363-ad8c-42c9-a2de-57254b3e461f\"}}", "inputsValues": "{\"inputsValues\":{\"useremail\":\"jdoe@example.com\",
\"role\":\"c56d724e-df0c-4938-8fd2-fd88f735acfb\"}}",
"nodeId": "plJLovz_tvtOq_Nza9_Rq"
}
Request Method: GET
Status Code: 403 Forbidden