Automation
Get v1automationworkflows versions
GET
/
v1
/
automation
/
workflows
/
{workflowID}
/
versions
cURL
curl --request GET \
--url https://api.wazapin.com/v1/automation/workflows/{workflowID}/versionsconst options = {method: 'GET'};
fetch('https://api.wazapin.com/v1/automation/workflows/{workflowID}/versions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/automation/workflows/{workflowID}/versions"
response = requests.get(url)
print(response.text){
"items": [
{
"created_at": "<string>",
"definition_hash": "<string>",
"id": "<string>",
"schema_version": "<string>",
"trigger_type": "<string>",
"version_number": 123,
"workflow_id": "<string>",
"event_type": "<string>",
"published_at": "<string>"
}
],
"meta": {
"has_more": true,
"limit": 123,
"cursor": "<string>",
"next_cursor": "<string>",
"offset": 123,
"total": 123
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}⌘I
cURL
curl --request GET \
--url https://api.wazapin.com/v1/automation/workflows/{workflowID}/versionsconst options = {method: 'GET'};
fetch('https://api.wazapin.com/v1/automation/workflows/{workflowID}/versions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/automation/workflows/{workflowID}/versions"
response = requests.get(url)
print(response.text){
"items": [
{
"created_at": "<string>",
"definition_hash": "<string>",
"id": "<string>",
"schema_version": "<string>",
"trigger_type": "<string>",
"version_number": 123,
"workflow_id": "<string>",
"event_type": "<string>",
"published_at": "<string>"
}
],
"meta": {
"has_more": true,
"limit": 123,
"cursor": "<string>",
"next_cursor": "<string>",
"offset": 123,
"total": 123
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}