Flow Routes & Branches
API key passed in the Authorization header. Format: <api-key>
The flow step identifier.
Filter results by step_id.
Comma-separated list of relationships to include. Available: flowStep, filters, firstStep
Page number for pagination.
1Number of results per page.
Successful response
Unauthenticated
Unauthorized
GET /api/v1/flow-steps/{flow_step}/routes HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"data": [
{
"id": 1,
"first_step_id": 1,
"filter_logic_operator": "example_filter_logic_operator",
"created_at": "2025-01-15T10:30:00.000000Z",
"updated_at": "2025-01-15T10:30:00.000000Z",
"flow_version_id": 1,
"name": "My Example",
"microservice": {},
"config": {},
"parent_id": 1,
"flow_version": {},
"children": {},
"endpoint": {},
"connector": [],
"data_pool": [],
"filters": [],
"parent_flow_step": [],
"routes": [],
"variables": [],
"script_version": [],
"cache": [],
"payloads": [],
"flow": {},
"cross_references": "example_cross_references",
"notes_count": 5,
"notification_group": {},
"order": "example_order"
}
],
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"path": "https://api.example.com/api/v1/flow-steps/{flow_step}/routes",
"per_page": 25,
"to": 1,
"total": 1
},
"links": {
"first": "https://api.example.com/api/v1/flow-steps/{flow_step}/routes?page=1",
"last": "https://api.example.com/api/v1/flow-steps/{flow_step}/routes?page=1",
"prev": null,
"next": null
}
}API key passed in the Authorization header. Format: <api-key>
The flow step identifier.
Successful response
Unauthenticated
Unauthorized
Validation Error
POST /api/v1/flow-steps/{flow_step}/routes HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 95
{
"first_step_id": 1,
"filter_logic_operator": "example_filter_logic_operator",
"name": "My Example"
}{
"data": {
"id": 1,
"first_step_id": 1,
"filter_logic_operator": "example_filter_logic_operator",
"created_at": "2025-01-15T10:30:00.000000Z",
"updated_at": "2025-01-15T10:30:00.000000Z",
"flow_version_id": 1,
"name": "My Example",
"microservice": {},
"config": {},
"parent_id": 1,
"flow_version": {},
"children": {},
"endpoint": {},
"connector": [],
"data_pool": [],
"filters": [],
"parent_flow_step": [],
"routes": [],
"variables": [],
"script_version": [],
"cache": [],
"payloads": [],
"flow": {},
"cross_references": "example_cross_references",
"notes_count": 5,
"notification_group": {},
"order": "example_order"
}
}API key passed in the Authorization header. Format: <api-key>
The flow step identifier.
The route identifier.
Successful response
Unauthenticated
Unauthorized
Validation Error
PUT /api/v1/flow-steps/{flow_step}/routes/{route} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 95
{
"first_step_id": 1,
"filter_logic_operator": "example_filter_logic_operator",
"name": "My Example"
}{
"data": {
"id": 1,
"first_step_id": 1,
"filter_logic_operator": "example_filter_logic_operator",
"created_at": "2025-01-15T10:30:00.000000Z",
"updated_at": "2025-01-15T10:30:00.000000Z",
"flow_version_id": 1,
"name": "My Example",
"microservice": {},
"config": {},
"parent_id": 1,
"flow_version": {},
"children": {},
"endpoint": {},
"connector": [],
"data_pool": [],
"filters": [],
"parent_flow_step": [],
"routes": [],
"variables": [],
"script_version": [],
"cache": [],
"payloads": [],
"flow": {},
"cross_references": "example_cross_references",
"notes_count": 5,
"notification_group": {},
"order": "example_order"
}
}API key passed in the Authorization header. Format: <api-key>
The flow step identifier.
The route identifier.
Successful response
Unauthenticated
Unauthorized
DELETE /api/v1/flow-steps/{flow_step}/routes/{route} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"message": "Action completed successfully."
}API key passed in the Authorization header. Format: <api-key>
The flowStep identifier.
Successful response
Unauthenticated
Unauthorized
Validation Error
POST /api/v1/flow-steps/{flowStep}/routes/order HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{}Last updated
Was this helpful?