Public API Trigger
Imagine being able to kick off your workflows automatically from any system or application. That’s exactly what the Public API trigger enables - it lets you programmatically start workflows through simple HTTP requests.
What is it?
The Public API trigger is a powerful way to integrate MindPal workflows into your existing systems and applications. It provides a REST API endpoint that you can call to start a workflow execution with custom data.
When to use it?
Use the Public API trigger when you want to trigger a workflow on MindPal to run programmatically from an external system or application, such as:
- A custom application you’re building
- A cross-app integration platform like Zapier or Make
How it works?
- Send a POST request to the Public API endpoint with the workflow input data
- The workflow starts executing with the provided data
- You receive a response with the execution details
Configuring the API request
Two API references are currently deployed:
- App API v2: the newer implementation, including direct upload endpoints.
- Python public API: a separate service whose workflow trigger routes forward requests to the app. The
api-v3.mindpal.iohostname serves the same documented API contract.
These references have different endpoint coverage. Use the URL shown in your workflow’s API Reference for its configured integration.
For workflow-specific API details:
- Open your workflow
- Go to the “API Reference” tab
- Find detailed documentation customized for your workflow’s specific input schema
Naming a workflow run
Pass the optional workflow_run_title query parameter to give each run a name you can recognize in Run History:
For existing integrations through the Python public API:
curl --request POST \
'https://api.mindpal.io/api/v2/workflow/run?workflow_id=YOUR_WORKFLOW_ID&workflow_run_title=Client%20report' \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{"YOUR_INPUT_LABEL": "YOUR_INPUT_VALUE"}'URL-encode the title, especially spaces, &, +, and %. You can also provide workflow_run_title in a JSON body alongside trigger_data. A non-empty query title takes precedence over a body title. If you omit the title or supply only whitespace, MindPal generates one automatically. Custom titles are preserved during execution.
Both /api/workflow/run and /api/v2/workflow/run on the Python public API forward workflow requests to the MindPal app. Direct app integrations use https://app.mindpal.space/api/v2/workflow/run with the same title parameter.
Important: The data provided in the API request must match the input schema of the workflow exactly. Follow the detailed documentation in the “API Reference” tab to ensure the request is correct.
Frequently Asked Questions
How do I get the workflow run results?
Since workflows run asynchronously, when you trigger a workflow via the Public API, you’ll immediately receive a workflow run ID rather than the final results. This is because workflows can take time to complete. There are two ways to get the workflow run results:
-
Using Webhook Node (Recommended): Add a Webhook Node at the end of your workflow. Once the workflow completes, it will automatically send all results to your specified webhook URL.
-
Polling the Results API: Use the workflow run result endpoint to retrieve results using the workflow run ID:
GET https://api.mindpal.io/api/workflow-run-result/retrieve-by-id?run_id=WORKFLOW_RUN_IDSee the complete API documentation for details.