All steps required to initialise a process flow via the Patchworks Core API are detailed below. This page provides a quick overview of these steps.
The initialise flow API request requires two identifiers - one for for the flow to be run and another for the specific flow version.
To find the process flow id, access the required process flow from the dashboard. You'll find the process flow id
above the title at the top of the canvas:
And you'll find all process flow version ids at the bottom of process flow settings:
To obtain a Patchworks token for API authentication, send a POST request to the following URL:
https://svc-fabric.pwks.co/api/v1/login
This request must include your Patchworks login credentials in the body:
{
"email": "[email protected]",
"password": "mypassword123*"
}
To initialise a process flow, send a POST request to the following URL:
https://start.wearepatchworks.com/api/v1/flows/<flowID>/start/<flowVERSION>
Replacing <flowID>
and <flowVERSION>
with details for your required process flow noted previously, and authenticate with your Patchworks token.