Get Workflow
curl --request GET \
--url https://api.sixtyfour.ai/workflows/{workflow_id}import requests
url = "https://api.sixtyfour.ai/workflows/{workflow_id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.sixtyfour.ai/workflows/{workflow_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sixtyfour.ai/workflows/{workflow_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sixtyfour.ai/workflows/{workflow_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))
}HttpResponse<String> response = Unirest.get("https://api.sixtyfour.ai/workflows/{workflow_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sixtyfour.ai/workflows/{workflow_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"status": "<string>",
"step": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"user_uuid": "<string>",
"org_id": "<string>",
"description": "<string>",
"last_run_date": "2023-11-07T05:31:56Z",
"workflow_definition": {
"blocks": [
{
"sequence_number": 123,
"block_type": "<string>",
"block_name": "<string>",
"specs": {},
"block_id": "<string>"
}
],
"edges": [
{
"from_block_id": "<string>",
"to_block_id": "<string>",
"condition": "<string>"
}
]
}
}{
"detail": "Invalid request body"
}{
"detail": "Invalid API key"
}{
"detail": "Access denied"
}{
"detail": "Workflow not found"
}{
"detail": "Workflow with ID 0123abcd-1234-5678-9abc-def012345678 already exists. Use update endpoint to modify existing workflows."
}{
"detail": [
{
"loc": [
"body",
"target_company",
"domain"
],
"msg": "Field required",
"type": "missing",
"input": null,
"ctx": {}
}
]
}{
"detail": "Internal server error"
}Workflows
Get Workflow
Retrieve a workflow’s full details, including its block graph definition.
GET
/
workflows
/
{workflow_id}
Get Workflow
curl --request GET \
--url https://api.sixtyfour.ai/workflows/{workflow_id}import requests
url = "https://api.sixtyfour.ai/workflows/{workflow_id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.sixtyfour.ai/workflows/{workflow_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sixtyfour.ai/workflows/{workflow_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sixtyfour.ai/workflows/{workflow_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))
}HttpResponse<String> response = Unirest.get("https://api.sixtyfour.ai/workflows/{workflow_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sixtyfour.ai/workflows/{workflow_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"status": "<string>",
"step": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"user_uuid": "<string>",
"org_id": "<string>",
"description": "<string>",
"last_run_date": "2023-11-07T05:31:56Z",
"workflow_definition": {
"blocks": [
{
"sequence_number": 123,
"block_type": "<string>",
"block_name": "<string>",
"specs": {},
"block_id": "<string>"
}
],
"edges": [
{
"from_block_id": "<string>",
"to_block_id": "<string>",
"condition": "<string>"
}
]
}
}{
"detail": "Invalid request body"
}{
"detail": "Invalid API key"
}{
"detail": "Access denied"
}{
"detail": "Workflow not found"
}{
"detail": "Workflow with ID 0123abcd-1234-5678-9abc-def012345678 already exists. Use update endpoint to modify existing workflows."
}{
"detail": [
{
"loc": [
"body",
"target_company",
"domain"
],
"msg": "Field required",
"type": "missing",
"input": null,
"ctx": {}
}
]
}{
"detail": "Internal server error"
}Headers
Path Parameters
Response
Successful Response
Workflow identifier.
Workflow name.
Lifecycle status of the workflow definition (e.g. draft, ready).
Current authoring step in the builder UI.
Timestamp when the record was created.
Timestamp when the record was last updated.
User who created the workflow.
Organization that owns the workflow.
Workflow description.
Timestamp of the most recent run.
Workflow graph; included on detail responses.
Show child attributes
Show child attributes
Was this page helpful?
⌘I