# List your workflows
curl https://app.galaxy.ai/api/v1/workflows \
-H "Authorization: Bearer gx_your_api_key"
# Start a workflow run
curl -X POST https://app.galaxy.ai/api/v1/runs \
-H "Authorization: Bearer gx_your_api_key" \
-H "Content-Type: application/json" \
-d '{"workflowId": "wf_abc123"}'
# Start a run with webhook notifications
curl -X POST https://app.galaxy.ai/api/v1/runs \
-H "Authorization: Bearer gx_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"workflowId": "wf_abc123",
"webhook": {
"url": "https://your-app.com/webhooks/galaxyai",
"events": ["run.completed", "run.failed"]
}
}'