Obter execução de agente específica
curl --request GET \
--url https://api.olie.ai/api/management/ai/agents/executions/{execution} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.olie.ai/api/management/ai/agents/executions/{execution}"
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/{execution}', 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/{execution}",
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/{execution}"
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/{execution}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.olie.ai/api/management/ai/agents/executions/{execution}")
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",
"model": "openrouter/auto-cost-based",
"provider": "openrouter",
"response": "O card trata da renovação do contrato anual. Já foram acordados o escopo e o prazo; falta aprovar o valor final.",
"prompt": "Resuma em até 3 linhas o que já foi combinado no card P-80.",
"status": "completed",
"error": null,
"latency": 4210,
"invoice_id": null,
"bill_computed": false,
"tokens_used": 1284,
"credits_debited": "1.300000000",
"credit_transaction_id": "019b6b4d-9a02-71ce-8b77-3c5f0e2a8d41",
"created_at": "2026-09-18T11:52:03.000000Z",
"updated_at": "2026-09-18T11:52:08.000000Z",
"steps": [
{
"index": 0,
"provider": "openrouter",
"model": "openrouter/auto-cost-based",
"text": null,
"tool_calls": [
{
"id": "call_01",
"name": "get-project-details-tool",
"arguments": {
"project_id": "019b140c-235d-73ee-96df-3d2afbf7d13d"
},
"result_id": null,
"reasoning_id": null,
"reasoning_summary": null
}
],
"tool_results": [
{
"id": "call_01",
"name": "get-project-details-tool",
"arguments": {
"project_id": "019b140c-235d-73ee-96df-3d2afbf7d13d"
},
"result": "{\"project\":{\"code\":\"P-80\",\"name\":\"Renovação anual\"}}",
"result_id": null
}
],
"finish_reason": "tool_calls",
"prompt_tokens": 742,
"completion_tokens": 48,
"cached_tokens": 0,
"cache_write_tokens": 0,
"reasoning_tokens": 0,
"cost": "0.000410000",
"created_at": "2026-09-18T11:52:05.000000Z"
},
{
"index": 1,
"provider": "openrouter",
"model": "openrouter/auto-cost-based",
"text": "O card trata da renovação do contrato anual. Já foram acordados o escopo e o prazo; falta aprovar o valor final.",
"tool_calls": [],
"tool_results": [],
"finish_reason": "stop",
"prompt_tokens": 431,
"completion_tokens": 63,
"cached_tokens": 0,
"cache_write_tokens": 0,
"reasoning_tokens": 0,
"cost": "0.000230000",
"created_at": "2026-09-18T11:52:08.000000Z"
}
]
},
"response": true
}{
"response": false,
"message": "agent_execution_model_not_found",
"error": "No query results for model [App\\Models\\AgentExecution] 019b6b4d-2f18-7331-b60a-91c7d2e40a55"
}ai-agents
Obter execução de agente específica
Retorna o detalhe de uma execução de agente: o prompt enviado, a resposta gerada, o erro quando houve falha e o consumo em créditos. Traz também steps, o histórico de idas e voltas ao modelo, com as ferramentas chamadas, os tokens e o custo de cada passo.
GET
/
api
/
management
/
ai
/
agents
/
executions
/
{execution}
Obter execução de agente específica
curl --request GET \
--url https://api.olie.ai/api/management/ai/agents/executions/{execution} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.olie.ai/api/management/ai/agents/executions/{execution}"
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/{execution}', 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/{execution}",
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/{execution}"
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/{execution}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.olie.ai/api/management/ai/agents/executions/{execution}")
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",
"model": "openrouter/auto-cost-based",
"provider": "openrouter",
"response": "O card trata da renovação do contrato anual. Já foram acordados o escopo e o prazo; falta aprovar o valor final.",
"prompt": "Resuma em até 3 linhas o que já foi combinado no card P-80.",
"status": "completed",
"error": null,
"latency": 4210,
"invoice_id": null,
"bill_computed": false,
"tokens_used": 1284,
"credits_debited": "1.300000000",
"credit_transaction_id": "019b6b4d-9a02-71ce-8b77-3c5f0e2a8d41",
"created_at": "2026-09-18T11:52:03.000000Z",
"updated_at": "2026-09-18T11:52:08.000000Z",
"steps": [
{
"index": 0,
"provider": "openrouter",
"model": "openrouter/auto-cost-based",
"text": null,
"tool_calls": [
{
"id": "call_01",
"name": "get-project-details-tool",
"arguments": {
"project_id": "019b140c-235d-73ee-96df-3d2afbf7d13d"
},
"result_id": null,
"reasoning_id": null,
"reasoning_summary": null
}
],
"tool_results": [
{
"id": "call_01",
"name": "get-project-details-tool",
"arguments": {
"project_id": "019b140c-235d-73ee-96df-3d2afbf7d13d"
},
"result": "{\"project\":{\"code\":\"P-80\",\"name\":\"Renovação anual\"}}",
"result_id": null
}
],
"finish_reason": "tool_calls",
"prompt_tokens": 742,
"completion_tokens": 48,
"cached_tokens": 0,
"cache_write_tokens": 0,
"reasoning_tokens": 0,
"cost": "0.000410000",
"created_at": "2026-09-18T11:52:05.000000Z"
},
{
"index": 1,
"provider": "openrouter",
"model": "openrouter/auto-cost-based",
"text": "O card trata da renovação do contrato anual. Já foram acordados o escopo e o prazo; falta aprovar o valor final.",
"tool_calls": [],
"tool_results": [],
"finish_reason": "stop",
"prompt_tokens": 431,
"completion_tokens": 63,
"cached_tokens": 0,
"cache_write_tokens": 0,
"reasoning_tokens": 0,
"cost": "0.000230000",
"created_at": "2026-09-18T11:52:08.000000Z"
}
]
},
"response": true
}{
"response": false,
"message": "agent_execution_model_not_found",
"error": "No query results for model [App\\Models\\AgentExecution] 019b6b4d-2f18-7331-b60a-91c7d2e40a55"
}Was this page helpful?