curl --request GET \
--url https://api.devin.ai/v3/organizations/{org_id}/automations \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.devin.ai/v3/organizations/{org_id}/automations"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.devin.ai/v3/organizations/{org_id}/automations', 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.devin.ai/v3/organizations/{org_id}/automations",
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.devin.ai/v3/organizations/{org_id}/automations"
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.devin.ai/v3/organizations/{org_id}/automations")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.devin.ai/v3/organizations/{org_id}/automations")
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{
"items": [
{
"automation_id": "<string>",
"name": "<string>",
"enabled": true,
"triggers": [
{
"trigger_id": "<string>",
"event_type": "<string>",
"conditions": {
"any": [
{
"all": [
{
"field": "<string>",
"operator": "eq",
"value": "<string>"
}
]
}
]
},
"managed_webhook_id": "<string>",
"replies": [],
"webhook": {
"url": "<string>",
"secret": "<string>"
}
}
],
"actions": [
{
"prompt": "<string>",
"type": "start_session",
"session": {
"repos": [],
"tags": [],
"playbook_id": "<string>",
"platform": "<string>",
"bypass_approval": false,
"notifications": {
"slack": {
"mode": "post_updates",
"channel_id": "<string>"
},
"teams": {
"team_id": "<string>",
"channel_id": "<string>"
}
}
}
}
],
"created_by": {
"type": "user",
"id": "<string>",
"name": "<string>"
},
"created_at": 123,
"updated_at": 123,
"notifications": {
"email": {
"when": "always",
"recipients": [
"<string>"
]
},
"slack": {
"when": "always",
"channel_id": "<string>"
}
},
"tools": {
"mcp_servers": [],
"slack_channels": [],
"slack_dm_scope": "org_members",
"teams_channels": [],
"teams_dm_scope": "installed_users",
"linear_enabled": true,
"jira_projects": [
"<string>"
]
},
"metadata": {},
"limits": {
"max_acu_limit": 500,
"invocations": {
"max_per_window": 2,
"window_seconds": 61
}
},
"concurrency": {
"max_concurrent_runs": 2,
"max_queue_depth": 1
},
"session_settings": {
"devin_mode": "<string>",
"fallback_devin_mode": "normal",
"net_policy": {
"allow": [
{
"hostname": "<string>"
}
]
}
},
"security_profile": {
"selection": "inherit",
"profile_id": "<string>",
"warnings": []
},
"run_as": {
"type": "organization"
},
"slack_reply_access": "slack_users",
"teams_reply_access": "teams_users",
"template_id": "<string>",
"last_edited_by": {
"type": "user",
"id": "<string>",
"name": "<string>"
},
"last_invocation": {
"fired_at": 123,
"status": "<string>"
},
"next_run_at": 123
}
],
"end_cursor": "<string>",
"has_next_page": false,
"total": 123
}{
"title": "<string>",
"status": 123,
"type": "about:blank",
"detail": "<string>",
"instance": "<string>",
"errors": [
{}
],
"error_code": "<string>"
}{
"title": "<string>",
"status": 123,
"type": "about:blank",
"detail": "<string>",
"instance": "<string>",
"errors": [
{}
],
"error_code": "<string>"
}{
"title": "<string>",
"status": 123,
"type": "about:blank",
"detail": "<string>",
"instance": "<string>",
"errors": [
{}
],
"error_code": "<string>"
}{
"title": "<string>",
"status": 123,
"type": "about:blank",
"detail": "<string>",
"instance": "<string>",
"errors": [
{}
],
"error_code": "<string>"
}{
"title": "<string>",
"status": 123,
"type": "about:blank",
"detail": "<string>",
"instance": "<string>",
"errors": [
{}
],
"error_code": "<string>"
}{
"title": "<string>",
"status": 123,
"type": "about:blank",
"detail": "<string>",
"instance": "<string>",
"errors": [
{}
],
"error_code": "<string>"
}{
"title": "<string>",
"status": 123,
"type": "about:blank",
"detail": "<string>",
"instance": "<string>",
"errors": [
{}
],
"error_code": "<string>"
}Automatisierungen auflisten
Listet alle Automatisierungen der Organisation auf, neueste zuerst.
Unterstützt die Abfrageparameter metadata.<key>=<value> zum Filtern nach
Metadaten-Labels (exakte Übereinstimmung; mehrere Filter werden mit UND verknüpft).
agent_types filtert nach Automatisierungen, die mindestens eine Action eines
bestimmten Agent-Typs enthalten; wiederholen Sie den Parameter, um nach einem von mehreren Typen
(ODER) zu filtern. Die Payloads der Actions werden im Kundendatenspeicher statt in
abfragbaren Spalten gespeichert, daher durchsucht dieser Filter Seiten serverseitig. total wird
nur zurückgegeben, wenn ein einzelner ungefilterter Scan die gesamte Ergebnismenge
abgedeckt hat (erste Seite, keine weiteren Seiten, nichts ausgeblendet); andernfalls wird es
weggelassen, statt eine Anzahl auszugeben, die Automatisierungen einschließt, die die API
nie zurückgeben wird.
curl --request GET \
--url https://api.devin.ai/v3/organizations/{org_id}/automations \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.devin.ai/v3/organizations/{org_id}/automations"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.devin.ai/v3/organizations/{org_id}/automations', 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.devin.ai/v3/organizations/{org_id}/automations",
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.devin.ai/v3/organizations/{org_id}/automations"
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.devin.ai/v3/organizations/{org_id}/automations")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.devin.ai/v3/organizations/{org_id}/automations")
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{
"items": [
{
"automation_id": "<string>",
"name": "<string>",
"enabled": true,
"triggers": [
{
"trigger_id": "<string>",
"event_type": "<string>",
"conditions": {
"any": [
{
"all": [
{
"field": "<string>",
"operator": "eq",
"value": "<string>"
}
]
}
]
},
"managed_webhook_id": "<string>",
"replies": [],
"webhook": {
"url": "<string>",
"secret": "<string>"
}
}
],
"actions": [
{
"prompt": "<string>",
"type": "start_session",
"session": {
"repos": [],
"tags": [],
"playbook_id": "<string>",
"platform": "<string>",
"bypass_approval": false,
"notifications": {
"slack": {
"mode": "post_updates",
"channel_id": "<string>"
},
"teams": {
"team_id": "<string>",
"channel_id": "<string>"
}
}
}
}
],
"created_by": {
"type": "user",
"id": "<string>",
"name": "<string>"
},
"created_at": 123,
"updated_at": 123,
"notifications": {
"email": {
"when": "always",
"recipients": [
"<string>"
]
},
"slack": {
"when": "always",
"channel_id": "<string>"
}
},
"tools": {
"mcp_servers": [],
"slack_channels": [],
"slack_dm_scope": "org_members",
"teams_channels": [],
"teams_dm_scope": "installed_users",
"linear_enabled": true,
"jira_projects": [
"<string>"
]
},
"metadata": {},
"limits": {
"max_acu_limit": 500,
"invocations": {
"max_per_window": 2,
"window_seconds": 61
}
},
"concurrency": {
"max_concurrent_runs": 2,
"max_queue_depth": 1
},
"session_settings": {
"devin_mode": "<string>",
"fallback_devin_mode": "normal",
"net_policy": {
"allow": [
{
"hostname": "<string>"
}
]
}
},
"security_profile": {
"selection": "inherit",
"profile_id": "<string>",
"warnings": []
},
"run_as": {
"type": "organization"
},
"slack_reply_access": "slack_users",
"teams_reply_access": "teams_users",
"template_id": "<string>",
"last_edited_by": {
"type": "user",
"id": "<string>",
"name": "<string>"
},
"last_invocation": {
"fired_at": 123,
"status": "<string>"
},
"next_run_at": 123
}
],
"end_cursor": "<string>",
"has_next_page": false,
"total": 123
}{
"title": "<string>",
"status": 123,
"type": "about:blank",
"detail": "<string>",
"instance": "<string>",
"errors": [
{}
],
"error_code": "<string>"
}{
"title": "<string>",
"status": 123,
"type": "about:blank",
"detail": "<string>",
"instance": "<string>",
"errors": [
{}
],
"error_code": "<string>"
}{
"title": "<string>",
"status": 123,
"type": "about:blank",
"detail": "<string>",
"instance": "<string>",
"errors": [
{}
],
"error_code": "<string>"
}{
"title": "<string>",
"status": 123,
"type": "about:blank",
"detail": "<string>",
"instance": "<string>",
"errors": [
{}
],
"error_code": "<string>"
}{
"title": "<string>",
"status": 123,
"type": "about:blank",
"detail": "<string>",
"instance": "<string>",
"errors": [
{}
],
"error_code": "<string>"
}{
"title": "<string>",
"status": 123,
"type": "about:blank",
"detail": "<string>",
"instance": "<string>",
"errors": [
{}
],
"error_code": "<string>"
}{
"title": "<string>",
"status": 123,
"type": "about:blank",
"detail": "<string>",
"instance": "<string>",
"errors": [
{}
],
"error_code": "<string>"
}Berechtigungen
Erfordert einen Service-Benutzer oder ein persönliches Zugriffstoken mit der BerechtigungViewOrgAutomations auf Organisationsebene.
Filterung
Unterstützt die Filterung nachsearch, creator_id, enabled, event_type und agent_types (mehrfach angeben, um nach einem von mehreren Typen zu filtern). Die Abfrageparameter metadata.<key>=<value> filtern nach Metadaten-Labels (exakte Übereinstimmung; mehrere Filter werden mit UND verknüpft).
Die Ergebnisse werden in absteigender Reihenfolge nach Aktualität mit cursorbasierter Paginierung (after, first) zurückgegeben. total wird nur zurückgegeben, wenn ein einzelner ungefilterter Scan die gesamte Ergebnismenge abgedeckt hat.Autorisierungen
Abfrageparameter
Antwort
Erfolgreiche Antwort

