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>"
}Listar automatizaciones
Lista todas las automatizaciones de la organización, de la más reciente a la más antigua.
Admite parámetros de consulta metadata.<key>=<value> para filtrar por
etiquetas de metadatos (coincidencia exacta; varios filtros se combinan mediante AND).
agent_types filtra las automatizaciones que contienen al menos una acción de un
tipo de agente determinado; repita el parámetro para encontrar cualquiera de varios tipos
(OR). Las cargas útiles de las acciones se almacenan en los datos del cliente, en lugar de en
columnas consultables, por lo que este filtro analiza las páginas en el servidor. total solo se
devuelve cuando un único análisis sin filtros abarcó todo el conjunto de resultados
(primera página, sin más páginas ni elementos ocultos); de lo contrario, se omite
en lugar de informar un recuento que incluya automatizaciones que la API nunca
devolverá.
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>"
}Permisos
Requiere un usuario de servicio o un token de acceso personal con el permisoViewOrgAutomations en el nivel de organización.
Filtrado
Permite filtrar porsearch, creator_id, enabled, event_type y agent_types (repítelo para incluir cualquiera de varios tipos). Los parámetros de consulta metadata.<key>=<value> filtran por etiquetas de metadatos (coincidencia exacta; varios filtros se combinan con AND).
Los resultados se ordenan del más reciente al más antiguo mediante paginación basada en cursor (after, first). total solo se devuelve cuando un único escaneo sin filtros abarca todo el conjunto de resultados.Parámetros de consulta
Respuesta
Respuesta satisfactoria

