Integrations
Run a process with files via Call API
13 min
how to run a process via call api 1\ create a process in procesio process designer for this demo i created a process demo, with 2 input variables a file and a string 2\ create a api key in automation api key 3\ send a post request to the endpont https //webapi procesio app/api/projects/{projectid}/instances/publish follow the instructions below to replace the highlighted highlighted text headers key value workspaceid {worspaceid value} key {api key name} value {api key value} the project id is displayed in the process designer under the name of the process the workspace id is displayed in dashboard body in the body, the input variables must be initialized by id with their values navigate to process designer, open developer tools and go to network, then run the process in the publish request you can find the variables ids for your process ( in my case i have a file and a string ) 4\ send a post request to the endpont https //webapi procesio app/api/file/upload/flow follow the instructions below to replace the highlighted highlighted text headers key value workspaceid {worspaceid value} key {api key name} value {api key value} fileid {file id value} projectid {project id value} flowinstanceid {flow instance id value} variablename {variable name value} file id and flow instance id are displayed in the response from the publish api call file id $ variables\[?(@ name == 'filename')] defaultvalue id flow instanceid $ id body key value package {file} 4\ send a post request to the endpont https //webapi procesio app/api/projects/instances/instanceid params key value runsynchronous true secondstimeout 300 headers key value workspaceid {worspaceid value} key {api key name} value {api key value} body 5\ check project instances and verify if the process was completed