POST
/
flows
/
file
/
{flowId}
import Worqhat from 'worqhat';

const client = new Worqhat({
apiKey: 'My API Key',
});

const response = await client.flows.triggerWithFile('f825ab82-371f-40cb-9bed-b325531ead4a');

console.log(response.data);
{
"success": true,
"message": "Workflow triggered successfully with file upload",
"timestamp": "2025-07-26T03:28:08.123Z",
"data": {
"workflow_status": "started",
"additional_data": "from backend response"
}
}

Authorizations

Authorization
string
header
required

API key authentication. Format - "Bearer YOUR_API_KEY"

Path Parameters

flowId
string
required

ID of the workflow to trigger

Example:

"f825ab82-371f-40cb-9bed-b325531ead4a"

Body

multipart/form-data

File upload or URL to process

The body is of type object.

Response

200
application/json

Workflow triggered successfully

The response is of type object.