Wrkflows
This object represents an automation workflow (Wrkflow) in your account. Use it to get Launch parameters and launch it. You can use the Launch object to track the progress.
ENDPOINTS |
|
GET | /v1/get-wrkflows |
POST | /trigger/launch |
The Wrkflow object
Attributes
Attributes | The Wrkflow object |
| {
|
Retrieve Wrkflows
Retrieves one or more Wrkflow object
Parameters
| GET
cURL curl -G /v1/get-wrkflows/?page=0&per_page=10 \
Python from wrk import Wrk |
Returns
A dictionary with a wrkflow
property that contains an array of Wrkflows. The totalCount
property will give the number of Wrkflows returned. If there are no Wrkflows available, the resulting array will be empty
{
"wrkflows": [
{
"name": "Post News to Wrk Forum",
"wrkflow_uuid": "78a53c09-533c-46a9-977f-0e7163e84e16",
"last_updated": 1721424234,
"launch_parameters": {
"type": "object",
"properties": {
"Email": {
"type": "string",
"industry": "Industry to retrieve news for"
}
},
"required": ["industry"]
},
"meta": {
"avg_completion_time": 15,
"short_description": "",
"long_description": "",
"webhook_url": null,
"schedule_info": {
"schedule_description": "At 8am",
"enabled": true
}
}
},
{
"name": "Save the World",
"wrkflow_uuid": "9edf13a7-abfa-47bb-99bd-b5098d087082",
"last_updated": 1718295135,
"launch_parameters": {},
"meta": {
"avg_completion_time": 256,
"short_description": "When a user ask to save the world",
"long_description": "",
"webhook_url": null,
"schedule_info": null
}
}
],
"totalCount": 2
}
Launch Wrkflow
Given a Wrkflow, launch (start) the automation workflow.
This Additional documentation on launching a Wrkflow via API here.
Parameters
| POST
cURL curl -P /trigger/launch/
Python ... |
Returns
If successful, a dictionary with property launch_id
containing a unique identifier of the Launch object.
{
"wrkflow_uuid": "78a53c09-533c-46a9-977f-0e7163e84e16",
"launch_id": 23143
}