Workflows
Get workflow by ID
Retrieves a specific workflow by its ID within the specified workspace.
GET
/
api
/
workflows
/
{id}
Get workflow by ID
curl --request GET \
--url https://{baseUrl}/api/v1/api/workflows/{id}import requests
url = "https://{baseUrl}/api/v1/api/workflows/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://{baseUrl}/api/v1/api/workflows/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{baseUrl}/api/v1/api/workflows/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"name": "<string>",
"content": {
"jobs": {},
"name": "<string>",
"on": {
"target": [
"<string>"
],
"schedule": [
{
"cron": "0 2 * * 1"
}
],
"assetsAdded": {
"windowMinutes": 720,
"maxAssets": 2500.5,
"targetTypes": [
"<string>"
]
}
}
},
"filePath": "<string>",
"isCanDelete": true,
"isCanEdit": true
}⌘I
Get workflow by ID
curl --request GET \
--url https://{baseUrl}/api/v1/api/workflows/{id}import requests
url = "https://{baseUrl}/api/v1/api/workflows/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://{baseUrl}/api/v1/api/workflows/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{baseUrl}/api/v1/api/workflows/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"name": "<string>",
"content": {
"jobs": {},
"name": "<string>",
"on": {
"target": [
"<string>"
],
"schedule": [
{
"cron": "0 2 * * 1"
}
],
"assetsAdded": {
"windowMinutes": 720,
"maxAssets": 2500.5,
"targetTypes": [
"<string>"
]
}
}
},
"filePath": "<string>",
"isCanDelete": true,
"isCanEdit": true
}