curl --request POST \ --url https://api.tableflow.com/v2/flows/dk4g1tUg1uHLs8YU/run \ --header 'Authorization: Bearer YOUR_API_KEY' \ --header 'Content-Type: multipart/form-data' \ --form 'purchase_order=@/path/to/po.pdf' \ --form 'invoice=@/path/to/invoice.pdf' \ --form 'purchase_order_metadata={"po_number": "PO-123"}' \ --form 'metadata={"customer_id": "12345"}'
{ "id": "fr_abc123def456", "flow_id": "dk4g1tUg1uHLs8YU", "workspace_id": "uT2bJNWN75YPU95r", "status": "processing", "status_history": [ { "status": "processing", "time": 1682366228, "message": "Flow started via api" } ], "error": null, "metadata": { "customer_id": "12345", "order_number": "PO-2024-001" }, "trigger_method": "api", "start_time": 1682366228, "end_time": null, "duration": 0, "drive_files": {}, "created_at": 1682366228, "updated_at": 1682366228 }
Execute a flow with uploaded files
key
file_input_config.file_fields
{file_key}_metadata
{file_key}
Show Status History Entry