I am trying to trigger my flow from a webhook (PHP/Curl). What I m reading is the fow is the id in the URL when editing your flow. I don’t see that in my URL I see a workbook_id not a flow_id where do I find my flow_id
thanks in advance
$apiKey = ‘YOUR_GUMLOOP_API_KEY’;
$flowId = ‘YOUR FLOW ID’; // Replace with your actual flow ID
// These match the form inputs from your interface node
$data = [
‘inputs’ => [
]
];
$ch = curl_init(“https://api.gumloop.com/v1/flows/$flowId/run”);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
curl_setopt($ch, CURLOPT_HTTPHEADER, [
‘Content-Type: application/json’,
'Authorization: Bearer ’ . $apiKey
]);
$response = curl_exec($ch);
if(curl_errno($ch)) {
echo 'Error: ’ . curl_error($ch);
} else {
$responseData = json_decode($response, true);
echo "Flow run initiated. Run ID: " . $responseData[‘run_id’];
}