Initialising a process flow & sending data

Introduction

Having obtained a Patchworks token, it can be applied to an API request to initialise a process flow with your data passed in the request body.

The steps

Show me

Step 1 Create a POST request for the following endpoint:

https://start.wearepatchworks.com/api/v1/flows/<flowID>/manual/<flowVERSION>

...replacing <flowID> and <flowVERSION> with details for your required process flow noted previously.

This endpoint is for the Patchworks production environment.

Step 2 In the request headers, pass in the token obtained previously - this should be prefixed with the word Bearer - for example:

Step 3 In the request body, pass in the required payload - for example:

Step 4 Send the request - if successful, a 200 'flow initialised' response is given, together with a flow run id:

You can check the status of this flow run via the run logs.

Last updated

Was this helpful?