Get Automation
curl --request GET \
--url https://api.duvo.ai/v2/automations/{automation_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.duvo.ai/v2/automations/{automation_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.duvo.ai/v2/automations/{automation_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.duvo.ai/v2/automations/{automation_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.duvo.ai/v2/automations/{automation_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.duvo.ai/v2/automations/{automation_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.duvo.ai/v2/automations/{automation_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"automation": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"agent_count": 0,
"code_step_count": 0,
"queue_count": 0,
"created_at": "<string>",
"updated_at": "<string>",
"folder_id": null,
"pinned_at": null,
"is_setting_up": false,
"setup_step": null,
"setup_build_chat_id": null,
"setup_progress": null,
"live_revision_number": 0,
"module_template_slug": "<string>",
"module_template_version": 0,
"clarity_process_id": null,
"is_demo": true,
"has_draft": true,
"created_by": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"email": "<string>"
},
"updated_by": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"email": "<string>"
},
"viewer_can_edit": true,
"process_node_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"tabs": {
"layout": {
"order": [
"<string>"
],
"hidden": [
"<string>"
]
},
"pulse_tabs": [
{
"artifact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"status": "not_started",
"icon": "<string>"
}
]
},
"links": {
"dashboards": [
{
"artifact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"link": "<string>"
}
],
"overview": "<string>",
"process": "<string>",
"past_runs": "<string>",
"requests": "<string>",
"policy": "<string>",
"people": "<string>",
"agents_queues": "<string>",
"revisions": "<string>",
"setup": "<string>",
"setup_start": "<string>",
"upload_files": "<string>",
"interview": "<string>",
"automation_proposal": "<string>"
}
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Automations
Get Automation
Get a single automation with its agent and queue counts, the tab arrangement its detail view navigates by, and links to each tab it has right now.
GET
/
v2
/
automations
/
{automation_id}
Get Automation
curl --request GET \
--url https://api.duvo.ai/v2/automations/{automation_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.duvo.ai/v2/automations/{automation_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.duvo.ai/v2/automations/{automation_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.duvo.ai/v2/automations/{automation_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.duvo.ai/v2/automations/{automation_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.duvo.ai/v2/automations/{automation_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.duvo.ai/v2/automations/{automation_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"automation": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"agent_count": 0,
"code_step_count": 0,
"queue_count": 0,
"created_at": "<string>",
"updated_at": "<string>",
"folder_id": null,
"pinned_at": null,
"is_setting_up": false,
"setup_step": null,
"setup_build_chat_id": null,
"setup_progress": null,
"live_revision_number": 0,
"module_template_slug": "<string>",
"module_template_version": 0,
"clarity_process_id": null,
"is_demo": true,
"has_draft": true,
"created_by": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"email": "<string>"
},
"updated_by": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"email": "<string>"
},
"viewer_can_edit": true,
"process_node_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"tabs": {
"layout": {
"order": [
"<string>"
],
"hidden": [
"<string>"
]
},
"pulse_tabs": [
{
"artifact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"status": "not_started",
"icon": "<string>"
}
]
},
"links": {
"dashboards": [
{
"artifact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"link": "<string>"
}
],
"overview": "<string>",
"process": "<string>",
"past_runs": "<string>",
"requests": "<string>",
"policy": "<string>",
"people": "<string>",
"agents_queues": "<string>",
"revisions": "<string>",
"setup": "<string>",
"setup_start": "<string>",
"upload_files": "<string>",
"interview": "<string>",
"automation_proposal": "<string>"
}
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
API key authentication. Get your API key from the Duvo dashboard.
Path Parameters
Automation ID
Response
Default Response
Show child attributes
Show child attributes
The detail view's tab arrangement, carried here so opening an automation resolves its navigation in the same request as the automation itself.
Show child attributes
Show child attributes
Links to the automation's tabs that exist right now, for this viewer. When the user asks where something on the automation is, answer with one of these. A tab the automation does not have is absent: say it has none. Copy these into a reply; never build an automation URL by hand.
Show child attributes
Show child attributes
Was this page helpful?