1. Endpoint
Use the stable URL below. The lovableproject.com preview URL requires a Lovable login and will return a 302 redirect — don't use it.
https://project--8305ee00-d582-435b-81f4-80ce31873075.lovable.app/api/public/flow-runs
2. Authentication
Every request must include this header. The value is the secret you saved as FLOW_TRACKER_API_KEY.
x-api-key: <your FLOW_TRACKER_API_KEY value>
3. Add to your flow
Add two HTTP actions in your Power Automate flow.
Step A — At the start of the flow (Create)
Method
POST, URI: the endpoint above, headers include Content-Type: application/json and x-api-key.{
"action": "create",
"flow_id": "@{workflow()?['name']}",
"flow_name": "My Flow"
}Parse the JSON response and save tracking_id into a variable.
Step B — At the end of the flow (Update)
Same method/URI/headers. Use a parallel failure branch to send
status: "failed" with an error_message.{
"action": "update",
"tracking_id": "<tracking_id from create response>",
"status": "success",
"error_message": null
}4. Test from a terminal
# Create
curl -X POST 'https://project--8305ee00-d582-435b-81f4-80ce31873075.lovable.app/api/public/flow-runs' \
-H 'Content-Type: application/json' \
-H 'x-api-key: <your key>' \
-d '{"action":"create","flow_id":"demo","flow_name":"Demo Flow"}'
# Update (use tracking_id from the create response)
curl -X POST 'https://project--8305ee00-d582-435b-81f4-80ce31873075.lovable.app/api/public/flow-runs' \
-H 'Content-Type: application/json' \
-H 'x-api-key: <your key>' \
-d '{"action":"update","tracking_id":"<id>","status":"success"}'