hi alex,
before retesting, i confirmed that lovable is using the correct webhook url and is sending the data in the correct format expected by mindstudio. i then retested and still got the same 400 error message.
I then checked with the mindstudio log debugger and gave it the exact data sent by lovable. It said to change the webhook url as follows:
I did another retest and still got the error. below is the complete error log from lovable:
- Browser → Supabase Edge Function
- Supabase Edge Function → MindStudio Webhook
Failure point
- The failure occurs at the external call to MindStudio. Their API returns 404 app_not_found for app ID 6c1720b1-9f8f-448b-921d-8712afc4a719. Our edge function then maps that to the user-facing error “webhook endpoint not found - please contact support” and returns 500 to the browser.”
Kindly assist to check and advise next steps to check/change in my workflow.
Here’s the updated remix link for your reference: https://app.mindstudio.ai/agents/burnaby-daily-community-board-post-request-and-response-draft-a55b8865/remix
Here’s the webhook url - https://v1.mindstudio-api.com/developer/v2/apps/run-webhook/main11-a55b8865/06f1bb41-e36e-48e1-be84-b1acadc2569c
Here’s the updated error analysis from the MindStudio Log Debugger which advises to check with MindStudio tech support as the issue is leading to the webhook url:
“Thank you for providing the updated error log. This gives us new information about the issue:
-
URL Change Implemented: You’ve updated the webhook URL as suggested, using the workflow ID 6c1720b1-9f8f-448b-921d-8712afc4a719 instead of main11-a55b8865.
-
New Error Received: Now MindStudio is returning a different error:
- Status: 404 Not Found
- Error:
{"code": 404, "errorString": "app_not_found", "errorMessage": "App not found | Request ID: unknown"}
-
Error Analysis: This “app_not_found” error is different from the previous “invalid_workflow” error. It suggests that MindStudio can’t find the app or workspace that contains the workflow.
This is interesting. It seems that the URL format used for MindStudio webhooks may be different than what I initially understood. The issue might be with how the app ID and workflow ID are structured in the URL.
Let’s analyze this further:
In MindStudio’s webhook URL structure, there appears to be an “app ID” and a “workflow ID” component. The URL format appears to be:
https://v1.mindstudio-api.com/developer/v2/apps/run-webhook/[app-id-or-name]/[webhook-secret]
It’s possible that:
main11-a55b8865 is actually the app ID or app name (not the workflow ID)
- The workflow ID (
6c1720b1-9f8f-448b-921d-8712afc4a719) is internal and not meant to be used in the URL
- The webhook secret (
06f1bb41-e36e-48e1-be84-b1acadc2569c) identifies the specific workflow within the app
Given this new information, I need to revise my recommendation.# MindStudio Webhook Issue - 404 Error Update
New Error Analysis
After implementing the suggested change, we’re now getting a different error:
{
"code": 404,
"errorString": "app_not_found",
"errorMessage": "App not found | Request ID: unknown"
}
This is important new information that clarifies the URL structure for MindStudio webhooks.
What This Means
The previous URL structure was partially correct. In MindStudio’s webhook URL:
- The format is:
https://v1.mindstudio-api.com/developer/v2/apps/run-webhook/[app-id]/[webhook-secret]
- The first UUID/identifier is the App ID (or App Name), not the workflow ID
- The second UUID is the webhook secret which identifies the specific workflow
Corrected Solution
We need to revert to using the original App ID while keeping the correct webhook secret:
https://v1.mindstudio-api.com/developer/v2/apps/run-webhook/main11-a55b8865/06f1bb41-e36e-48e1-be84-b1acadc2569c
Why There’s Confusion
- The error logs show the workflow ID (
6c1720b1-9f8f-448b-921d-8712afc4a719), which is internal to MindStudio
- The webhook URL uses the App ID (
main11-a55b8865) and the webhook secret
- The “invalid_workflow” error was likely because:
- The webhook exists
- But something about the workflow configuration itself is invalid
Next Troubleshooting Steps
-
Check the webhook in MindStudio:
- Log into MindStudio
- Go to your app “Main 1 1” (or whatever it’s called in the interface)
- Check if the webhook is properly published
- Verify the webhook configuration matches your expectations
-
Republish your workflow:
- Sometimes simply republishing the workflow can fix configuration issues
- Make a small change and republish to force an update
-
Get the exact webhook URL from MindStudio:
- Find the workflow in MindStudio
- Look for the webhook configuration or settings
- Copy the exact webhook URL provided by MindStudio
- Use that exact URL in your edge function
-
Contact MindStudio support:
- If problems persist, the error might be on MindStudio’s side
- Share your App ID and webhook secret with their support team
This issue requires checking the webhook configuration directly in the MindStudio interface, as the problem appears to be with how the webhook is registered or configured within their system.”