cURL
curl --request GET \
--url https://api.example.com/ai-models/:id/history/import requests
url = "https://api.example.com/ai-models/:id/history/"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/ai-models/:id/history/', 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.example.com/ai-models/:id/history/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.example.com/ai-models/:id/history/"
req, _ := http.NewRequest("GET", url, nil)
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.example.com/ai-models/:id/history/")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/ai-models/:id/history/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyModelos
Models history id
GET
/
ai-models
/
:id
/
history
/
cURL
curl --request GET \
--url https://api.example.com/ai-models/:id/history/import requests
url = "https://api.example.com/ai-models/:id/history/"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/ai-models/:id/history/', 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.example.com/ai-models/:id/history/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.example.com/ai-models/:id/history/"
req, _ := http.NewRequest("GET", url, nil)
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.example.com/ai-models/:id/history/")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/ai-models/:id/history/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyEndpoint
GET https://gateway.orkeia.ai/ai-models/{id}/history
Encabezados
Requiere el encabezadoauthorization: <su_token>.
authorization: <su_token>
Content-Type: application/json
Parámetros de ruta
id— ID del modelo (ej.:MODEL_67890)
Query string
| Nombre | Tipo | Obligatorio | Descripción | Ejemplo |
|---|---|---|---|---|
| last | string | No | Cursor/offset de la última página | ”hist_010” |
| limit | string | No | Cantidad por página | ”20” |
| field | string | No | Campo para ordenación | ”date” |
| direction | ”asc” | “desc” | No | Dirección de la ordenación | ”desc” |
Cuerpo de la solicitud
{
"environment": {
"company": "acme-inc",
"sector": "engineering"
}
}
Respuesta (200)
{
"status": "ok",
"data": {
"items": [
{
"id": "hist_021",
"responsible": "João Vitor",
"responsibleId": "user_123",
"action": "actualizó el modelo de IA",
"type": "neutral",
"date": "2025-08-22T19:15:10.000Z",
"versionControl": "v1.0.1"
}
]
}
Códigos de error
500 — Error del Servidor
{
"status": "ERROR",
"code": "server/error",
"data": null
}
400 — Error del Cliente
{
"status": "ERROR",
"code": "client/error",
"data": null
}
¿Esta página le ayudó?
⌘I
