curl --request GET \
--url https://api.olie.ai/api/management/ai/agents/executions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.olie.ai/api/management/ai/agents/executions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.olie.ai/api/management/ai/agents/executions', 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.olie.ai/api/management/ai/agents/executions",
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.olie.ai/api/management/ai/agents/executions"
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.olie.ai/api/management/ai/agents/executions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.olie.ai/api/management/ai/agents/executions")
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{
"data": [
{
"id": "019b6b4d-2f18-7331-b60a-91c7d2e40a55",
"agent_id": "019b6b1a-4c21-73d6-9f0e-5a1c8d3e7b04",
"agent": {
"id": "019b6b1a-4c21-73d6-9f0e-5a1c8d3e7b04",
"name": "Triador de entrada",
"description": "Classifica e resume os cards que chegam no funil de atendimento."
},
"model": "openrouter/auto-cost-based",
"status": "completed",
"tokens_used": 1284,
"credits_debited": "1.300000000",
"latency": 4210,
"created_at": "2026-09-18T11:52:03.000000Z"
},
{
"id": "019b6b3a-77c1-72a0-8f5d-1de0a4c9b6e7",
"agent_id": "019b6b1a-4c21-73d6-9f0e-5a1c8d3e7b04",
"agent": {
"id": "019b6b1a-4c21-73d6-9f0e-5a1c8d3e7b04",
"name": "Triador de entrada",
"description": "Classifica e resume os cards que chegam no funil de atendimento."
},
"model": "openrouter/auto-cost-based",
"status": "failed",
"tokens_used": 0,
"credits_debited": null,
"latency": 812,
"created_at": "2026-09-17T19:04:55.000000Z"
}
],
"links": {
"first": "https://devframe.olie.ai/api/management/ai/agents/executions?page=1",
"last": "https://devframe.olie.ai/api/management/ai/agents/executions?page=3",
"prev": null,
"next": "https://devframe.olie.ai/api/management/ai/agents/executions?page=2"
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 3,
"links": [
{
"url": null,
"label": "« Previous",
"page": null,
"active": false
},
{
"url": "https://devframe.olie.ai/api/management/ai/agents/executions?page=1",
"label": "1",
"page": 1,
"active": true
},
{
"url": "https://devframe.olie.ai/api/management/ai/agents/executions?page=2",
"label": "2",
"page": 2,
"active": false
},
{
"url": "https://devframe.olie.ai/api/management/ai/agents/executions?page=2",
"label": "Next »",
"page": 2,
"active": false
}
],
"path": "https://devframe.olie.ai/api/management/ai/agents/executions",
"per_page": 30,
"to": 30,
"total": 74
}
}{
"response": false,
"message": "invalid_sort_query",
"error": "Requested sort(s) `cost` is not allowed. Allowed sort(s) are `credits_debited, tokens_used, latency, created_at`.",
"allowed_sorts": [
"credits_debited",
"tokens_used",
"latency",
"created_at"
],
"unknown_sorts": [
"cost"
]
}Listar execuções de agentes
Lista as execuções de agentes de IA da empresa, da mais recente para a mais antiga. É um resumo: o texto gerado e os passos de cada execução só aparecem no detalhe. Aceita paginação e filtros básicos.
curl --request GET \
--url https://api.olie.ai/api/management/ai/agents/executions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.olie.ai/api/management/ai/agents/executions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.olie.ai/api/management/ai/agents/executions', 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.olie.ai/api/management/ai/agents/executions",
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.olie.ai/api/management/ai/agents/executions"
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.olie.ai/api/management/ai/agents/executions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.olie.ai/api/management/ai/agents/executions")
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{
"data": [
{
"id": "019b6b4d-2f18-7331-b60a-91c7d2e40a55",
"agent_id": "019b6b1a-4c21-73d6-9f0e-5a1c8d3e7b04",
"agent": {
"id": "019b6b1a-4c21-73d6-9f0e-5a1c8d3e7b04",
"name": "Triador de entrada",
"description": "Classifica e resume os cards que chegam no funil de atendimento."
},
"model": "openrouter/auto-cost-based",
"status": "completed",
"tokens_used": 1284,
"credits_debited": "1.300000000",
"latency": 4210,
"created_at": "2026-09-18T11:52:03.000000Z"
},
{
"id": "019b6b3a-77c1-72a0-8f5d-1de0a4c9b6e7",
"agent_id": "019b6b1a-4c21-73d6-9f0e-5a1c8d3e7b04",
"agent": {
"id": "019b6b1a-4c21-73d6-9f0e-5a1c8d3e7b04",
"name": "Triador de entrada",
"description": "Classifica e resume os cards que chegam no funil de atendimento."
},
"model": "openrouter/auto-cost-based",
"status": "failed",
"tokens_used": 0,
"credits_debited": null,
"latency": 812,
"created_at": "2026-09-17T19:04:55.000000Z"
}
],
"links": {
"first": "https://devframe.olie.ai/api/management/ai/agents/executions?page=1",
"last": "https://devframe.olie.ai/api/management/ai/agents/executions?page=3",
"prev": null,
"next": "https://devframe.olie.ai/api/management/ai/agents/executions?page=2"
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 3,
"links": [
{
"url": null,
"label": "« Previous",
"page": null,
"active": false
},
{
"url": "https://devframe.olie.ai/api/management/ai/agents/executions?page=1",
"label": "1",
"page": 1,
"active": true
},
{
"url": "https://devframe.olie.ai/api/management/ai/agents/executions?page=2",
"label": "2",
"page": 2,
"active": false
},
{
"url": "https://devframe.olie.ai/api/management/ai/agents/executions?page=2",
"label": "Next »",
"page": 2,
"active": false
}
],
"path": "https://devframe.olie.ai/api/management/ai/agents/executions",
"per_page": 30,
"to": 30,
"total": 74
}
}{
"response": false,
"message": "invalid_sort_query",
"error": "Requested sort(s) `cost` is not allowed. Allowed sort(s) are `credits_debited, tokens_used, latency, created_at`.",
"allowed_sorts": [
"credits_debited",
"tokens_used",
"latency",
"created_at"
],
"unknown_sorts": [
"cost"
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Página a retornar. Padrão 1; valores inválidos voltam para 1.
Itens por página. Padrão 30, máximo 100.
Campo de ordenação: created_at, credits_debited, tokens_used ou latency. Prefixe com - para ordem decrescente. Padrão -created_at.
Filtra as execuções de um agente pelo ID (correspondência parcial).
Filtra pelo status exato da execução: pending, completed ou failed.
Filtra pelo modelo usado na execução (correspondência parcial).
Filtra pelo texto da mensagem de erro registrada (correspondência parcial).
Was this page helpful?