Once a workflow is deployed, you can trigger it from your own applications through the API. This page covers the essentials: authentication, triggering a run, and getting results.Documentation Index
Fetch the complete documentation index at: https://docs.platform.aiplanet.com/llms.txt
Use this file to discover all available pages before exploring further.
Before you start
You need:- A deployed workflow — see Deploying a workflow.
- An API key with permission to trigger workflows — see API Keys.
Replace
https://<your-platform-host> in the examples below with the API host for your platform. Your administrator can confirm it.Authentication
Every API request includes your API key as a bearer token:Triggering a workflow
Send aPOST request to the trigger endpoint with the workflow’s inputs:
inputs array provides a value for each parameter defined on the workflow’s Input node. The response identifies the run that was created, including its identifier and status.
Inputs
Each entry ininputs corresponds to a parameter on the workflow’s Input node. Each entry needs the parameter’s name, its type (such as text, file, or image — matching the Input node), and the value. Provide every required parameter — the run won’t start without them.
Threads
To continue an existing conversation instead of starting fresh, include athread_id in the request. Runs in the same thread share context, which matters for agents that use memory. Omit thread_id to start a new thread automatically.
Getting results
You have two options for retrieving a run’s output:Stream as it runs
Use the streaming trigger endpoint to receive output as a live stream of events while the run executes.
Fetch when complete
Trigger the run, then retrieve the run by its identifier once it has finished to read the final output.
Handling errors
The API uses standard HTTP status codes. Build handling for:- Authentication errors — the key is missing, invalid, or lacks the required permission.
- Not found — the workflow identifier doesn’t exist or isn’t accessible to your key.
- Invalid request — required inputs are missing or malformed.
- Rate limited — you’re sending requests too quickly; wait briefly and retry. See Execution limits.
Next steps
Environment variables
Manage configuration values your workflows use at runtime.