Flows
API key passed in the Authorization header. Format: <api-key>
Filter results by name.
Filter results by marketplace_app_id.
Filter results by blueprint_id.
Filter results by blueprint_version_number.
Filter results by label id.
Filter results by enabled.
Filter results by deployed.
Filter results by versions.id.
Filter results by ,.
Filter results by versions.
Filter results by id.
Comma-separated list of relationships to include. Available: latestVersion, latestVersion.variables, deployedVersion, deployedVersion.variables, latestDeployedVersion, latestDeployedVersion.variables, latestDeployedVersion.steps.connector.authenticationImplementation.system, latestDeployedVersion.steps.connector.authenticationImplementation.system.endpoints, latestDeployedVersion.steps.connector.authenticationImplementation.system.endpoints.preScriptVersion, latestDeployedVersion.steps.connector.authenticationImplementation.system.endpoints.postScriptVersion, latestDeployedVersion.steps.connector.authenticationImplementation.system.endpoints.preScriptVersion.script, latestDeployedVersion.steps.connector.authenticationImplementation.system.endpoints.postScriptVersion.script, latestDeployedVersion.steps.scriptVersion.script, latestDeployedVersion.steps.cache, latestDeployedVersion.steps.dataPool, deployedVersion.steps.connector.authenticationImplementation.system, deployedVersion.steps.connector.authenticationImplementation.system.endpoints, deployedVersion.steps.connector.authenticationImplementation.system.endpoints.preScriptVersion, deployedVersion.steps.connector.authenticationImplementation.system.endpoints.postScriptVersion, deployedVersion.steps.connector.authenticationImplementation.system.endpoints.preScriptVersion.script
Sort field. Prefix with - for descending. Available: name, enabled_at, created_at, id
Page number for pagination.
1Number of results per page.
Successful response
Unauthenticated
Unauthorized
GET /api/v1/flows HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"data": [
{
"id": 0,
"name": "string",
"description": "string",
"is_enabled": false,
"enabled_at": null,
"layout_direction": "TB",
"use_queued_time": false,
"remove_failed_payloads": false,
"priority": 0,
"prod_flag": false,
"labels": [],
"notification_group_ids": [],
"webhooks": [],
"callbacks": [],
"message_brokers": [],
"message_broker_queues": [],
"created_at": "2024-01-01T00:00:00.000000Z",
"updated_at": "2024-01-01T00:00:00.000000Z"
}
],
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"path": "https://core.wearepatchworks.com/api/v1/flows",
"per_page": 15,
"to": 1,
"total": 1
},
"links": {
"first": "https://core.wearepatchworks.com/api/v1/flows?page=1",
"last": "https://core.wearepatchworks.com/api/v1/flows?page=1",
"prev": null,
"next": null
}
}API key passed in the Authorization header. Format: <api-key>
Successful response
Unauthenticated
Unauthorized
Validation Error
POST /api/v1/flows HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 67
{
"flow": {
"name": "string",
"description": "string",
"prod_flag": false
}
}{
"data": {
"id": 0,
"name": "string",
"description": "string",
"is_enabled": false,
"enabled_at": null,
"layout_direction": "TB",
"use_queued_time": false,
"remove_failed_payloads": false,
"priority": 0,
"prod_flag": false,
"labels": [],
"notification_group_ids": [],
"webhooks": [],
"callbacks": [],
"message_brokers": [],
"message_broker_queues": [],
"created_at": "2024-01-01T00:00:00.000000Z",
"updated_at": "2024-01-01T00:00:00.000000Z"
}
}API key passed in the Authorization header. Format: <api-key>
The flow identifier.
Filter results by name.
Filter results by marketplace_app_id.
Filter results by blueprint_id.
Filter results by blueprint_version_number.
Filter results by label id.
Filter results by enabled.
Filter results by deployed.
Filter results by versions.id.
Filter results by ,.
Filter results by versions.
Filter results by id.
Comma-separated list of relationships to include. Available: latestVersion, latestVersion.variables, deployedVersion, deployedVersion.variables, latestDeployedVersion, latestDeployedVersion.variables, latestDeployedVersion.steps.connector.authenticationImplementation.system, latestDeployedVersion.steps.connector.authenticationImplementation.system.endpoints, latestDeployedVersion.steps.connector.authenticationImplementation.system.endpoints.preScriptVersion, latestDeployedVersion.steps.connector.authenticationImplementation.system.endpoints.postScriptVersion, latestDeployedVersion.steps.connector.authenticationImplementation.system.endpoints.preScriptVersion.script, latestDeployedVersion.steps.connector.authenticationImplementation.system.endpoints.postScriptVersion.script, latestDeployedVersion.steps.scriptVersion.script, latestDeployedVersion.steps.cache, latestDeployedVersion.steps.dataPool, deployedVersion.steps.connector.authenticationImplementation.system, deployedVersion.steps.connector.authenticationImplementation.system.endpoints, deployedVersion.steps.connector.authenticationImplementation.system.endpoints.preScriptVersion, deployedVersion.steps.connector.authenticationImplementation.system.endpoints.postScriptVersion, deployedVersion.steps.connector.authenticationImplementation.system.endpoints.preScriptVersion.script
Sort field. Prefix with - for descending. Available: name, enabled_at, created_at, id
Page number for pagination.
1Number of results per page.
Successful response
Unauthenticated
Unauthorized
GET /api/v1/flows/{flow} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"data": {
"id": 0,
"name": "string",
"description": "string",
"is_enabled": false,
"enabled_at": null,
"layout_direction": "TB",
"use_queued_time": false,
"remove_failed_payloads": false,
"priority": 0,
"prod_flag": false,
"labels": [],
"notification_group_ids": [],
"webhooks": [],
"callbacks": [],
"message_brokers": [],
"message_broker_queues": [],
"created_at": "2024-01-01T00:00:00.000000Z",
"updated_at": "2024-01-01T00:00:00.000000Z"
}
}API key passed in the Authorization header. Format: <api-key>
The flow identifier.
Successful response
Unauthenticated
Unauthorized
Validation Error
PUT /api/v1/flows/{flow} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 190
{
"flow": {
"name": "string",
"description": "string",
"enabled_at": null,
"use_queued_time": false,
"remove_failed_payloads": false,
"priority": 0,
"prod_flag": false
},
"labels": [],
"notification_groups": []
}{
"data": {
"id": 0,
"name": "string",
"description": "string",
"is_enabled": false,
"enabled_at": null,
"layout_direction": "TB",
"use_queued_time": false,
"remove_failed_payloads": false,
"priority": 0,
"prod_flag": false,
"labels": [],
"notification_group_ids": [],
"webhooks": [],
"callbacks": [],
"message_brokers": [],
"message_broker_queues": [],
"created_at": "2024-01-01T00:00:00.000000Z",
"updated_at": "2024-01-01T00:00:00.000000Z"
}
}API key passed in the Authorization header. Format: <api-key>
The flow identifier.
Successful response
Unauthenticated
Unauthorized
DELETE /api/v1/flows/{flow} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"message": "string"
}API key passed in the Authorization header. Format: <api-key>
Successful response
Unauthenticated
Unauthorized
Validation Error
POST /api/v1/flows/export HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 13
{
"flow_id": 0
}{
"metadata": {
"company_name": "string",
"flow_name": "string",
"exported_at": "2024-01-01T00:00:00+00:00",
"exported_by": "string",
"flow_id": 0,
"flow_version": 0,
"import_summary": {
"setup_required": {
"connectors_needing_config": 0,
"auth_implementations_needing_credentials": 0,
"variables_needing_values": 0
},
"dependencies": [],
"imported_resources": [],
"next_steps": []
}
},
"flow": {
"id": 0,
"name": "string",
"description": "string",
"is_enabled": false,
"enabled_at": null,
"layout_direction": "string",
"use_queued_time": false,
"remove_failed_payloads": false,
"priority": 0,
"prod_flag": false,
"labels": [],
"webhooks": [],
"callbacks": [],
"versions": []
},
"systems": [],
"scripts": [],
"dependencies": []
}API key passed in the Authorization header. Format: <api-key>
Successful response
Unauthenticated
Unauthorized
Validation Error
POST /api/v1/flows/import HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 59
{
"flow": "string",
"metadata": "string",
"as_marketplace": null
}{
"metadata": {
"company_name": "string",
"flow_name": "string",
"exported_at": "2024-01-01T00:00:00+00:00",
"exported_by": "string",
"flow_id": 0,
"flow_version": 0,
"import_summary": {
"setup_required": {
"connectors_needing_config": 0,
"auth_implementations_needing_credentials": 0,
"variables_needing_values": 0
},
"dependencies": [],
"imported_resources": [],
"next_steps": []
}
},
"flow": {
"id": 0,
"name": "string",
"description": "string",
"is_enabled": false,
"enabled_at": null,
"layout_direction": "string",
"use_queued_time": false,
"remove_failed_payloads": false,
"priority": 0,
"prod_flag": false,
"labels": [],
"webhooks": [],
"callbacks": [],
"versions": []
},
"systems": [],
"scripts": [],
"dependencies": []
}API key passed in the Authorization header. Format: <api-key>
The unique identifier of the flow.
The unique identifier of the version.
Successful response
Unauthenticated
Unauthorized
Validation Error
POST /api/v1/flows/{flow_id}/manual/{version_id} HTTP/1.1
Host: start.wearepatchworks.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 99
{
"flow_id": 0,
"version_id": 0,
"payload": "string",
"flow_variables": null,
"virtual_environment_id": null
}{
"message": "string",
"data": {
"flow_run_id": "string"
}
}API key passed in the Authorization header. Format: <api-key>
The unique identifier of the flow.
The unique identifier of the version.
Successful response
Unauthenticated
Unauthorized
Validation Error
POST /api/v1/flows/{flow_id}/start/{version_id} HTTP/1.1
Host: start.wearepatchworks.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 99
{
"flow_id": 0,
"version_id": 0,
"payload": "string",
"flow_variables": null,
"virtual_environment_id": null
}{
"message": "string",
"data": {
"scheduled_flow_id": "string"
}
}API key passed in the Authorization header. Format: <api-key>
The flow identifier.
Successful response
Unauthenticated
Unauthorized
Validation Error
POST /api/v1/flows/{flow}/duplicate HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 23
{
"flow_version_id": "0"
}{
"data": {
"id": 0,
"name": "string",
"description": "string",
"is_enabled": false,
"enabled_at": null,
"layout_direction": "TB",
"use_queued_time": false,
"remove_failed_payloads": false,
"priority": 0,
"prod_flag": false,
"labels": [],
"notification_group_ids": [],
"webhooks": [],
"callbacks": [],
"message_brokers": [],
"message_broker_queues": [],
"created_at": "2024-01-01T00:00:00.000000Z",
"updated_at": "2024-01-01T00:00:00.000000Z"
}
}API key passed in the Authorization header. Format: <api-key>
The flow identifier.
Successful response
No content
Unauthenticated
Unauthorized
Validation Error
PATCH /api/v1/flows/{flow}/layout-direction HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
No content
API key passed in the Authorization header. Format: <api-key>
Ordered array of label IDs. The position of each label is set to its index in this array.
Label order updated
Unauthenticated
Unauthorized
Validation Error
PATCH /api/v1/flows/labels/reorder HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 60
{
"label_ids": [
"label_abc123",
"label_def456",
"label_ghi789"
]
}{
"message": "Label order updated."
}API key passed in the Authorization header. Format: <api-key>
The unique identifier of the flow.
The unique identifier of the flow version. Defaults to the latest deployed version.
Key-value pairs of flow variables to pass to the flow run.
The ID of the virtual environment to use for the flow run.
Any valid JSON object. This is passed directly as the payload to the flow — there is no wrapping payload field.
Successful response
Unauthenticated
Unauthorized
Flow or version not found
Validation Error
POST /api/v1/flows/{flow_id}/manual/raw/{version_id} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 32
{
"order_id": 1001,
"status": "new"
}{
"message": "Flow initialised.",
"data": {
"flow_run_id": "01hvh37yjs9kt7dd1t27azryvb"
}
}API key passed in the Authorization header. Format: <api-key>
The unique identifier of the flow.
The unique identifier of the flow version. Defaults to the latest deployed version.
Key-value pairs of flow variables to pass to the flow run.
The ID of the virtual environment to use for the flow run.
Any valid JSON object. This is passed directly as the payload to the flow — there is no wrapping payload field.
Successful response
Unauthenticated
Unauthorized
Flow or version not found
Validation Error
POST /api/v1/flows/{flow_id}/start/raw/{version_id} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 32
{
"order_id": 1001,
"status": "new"
}{
"message": "Flow scheduled.",
"data": {
"scheduled_flow_id": "01hvh0ztea5zzjqqfd0a8a5h8y"
}
}API key passed in the Authorization header. Format: <api-key>
The unique identifier of the flow.
Number of results per page.
Successful response
Unauthenticated
Unauthorized
Flow not found
GET /api/v1/flows/{flow}/changelogs HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"data": [
{
"id": 1,
"flow_version_id": 5,
"flow_id": 12,
"summary": "Updated mapping step",
"description": "Changed output field from order_id to external_id.",
"saved_by": 42,
"saved_by_user": {
"id": 42,
"name": "Jane Smith",
"email": "[email protected]"
},
"created_at": "2024-06-01T10:00:00.000000Z",
"updated_at": "2024-06-01T10:00:00.000000Z"
}
]
}API key passed in the Authorization header. Format: <api-key>
The unique identifier of the flow.
The ID of the destination folder. Pass null to remove the flow from its current folder.
Successful response
Unauthenticated
Unauthorized
Flow not found
Validation Error
PATCH /api/v1/flows/{flow}/folder HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 20
{
"flow_folder_id": 3
}{
"success": true
}API key passed in the Authorization header. Format: <api-key>
The unique identifier of the flow.
Filter results by name.
Comma-separated list of relationships to include. Available: name, colour
Sort field. Prefix with - for descending. Available: created_at
Page number for pagination.
1Number of results per page.
Successful response
Unauthenticated
Unauthorized
Flow not found
GET /api/v1/flows/{flow}/labels HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"data": [
{
"id": "label_abc123",
"name": "Production",
"colour": "#22c55e"
},
{
"id": "label_def456",
"name": "Shopify",
"colour": "#3b82f6"
}
]
}Last updated
Was this helpful?