POST
/
api
/
v1
/
{workflowID}
/
trigger
Trigger AI Workflow
curl --request POST \
  --url https://flows.eachlabs.ai/api/v1/{workflowID}/trigger \
  --header 'Content-Type: application/json' \
  --data '{
  "parameters": {
    "key": {}
  },
  "webhook_url": "<string>"
}'
{
  "status": "<string>",
  "message": "<string>",
  "trigger_id": "<string>"
}

Authentication

Every request must include your X-API-KEY header:
curl --request POST \
  --url https://flows.eachlabs.ai/api/v1/{workflowID}/trigger \
  --header "X-API-KEY: YOUR_API_KEY_HERE" \
  --header "Content-Type: application/json" \
  --data '{
    "parameters": {
      "prompt": "Generate a beautiful mountain landscape at sunset",
      "width": 1024,
      "height": 768,
      "num_images": 1
    },
    "webhook_url": "https://your-webhook-url.com/callback"
  }'

Path Parameters

workflowID
string<string>
required

Workflow ID

Body

application/json

Response

200
application/json

TriggerFlowResponse JSON

The response is of type object.