curl -X POST "$KINETIC_BASE_URL/api/workflows" \
-H "Authorization: Bearer $KINETIC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Invoice extraction",
"description": "Parse invoice PDFs for totals",
"slug": "invoice-extraction",
"triggerType": "manual",
"configuration": {
"prompt": "Open the PDF and extract vendor, total, and due date.",
"screens": ["website"],
"timeout": 300,
"retryAttempts": 2,
"urlAllowlist": ["https://invoices.example.com"],
"useGlobalAllowlist": true,
"payloadSchema": {
"type": "object",
"required": ["documentUrl"],
"properties": { "documentUrl": { "type": "string", "format": "uri" } }
},
"payloadExample": { "documentUrl": "https://invoices.example.com/123.pdf" }
}
}'