Skip to main content
GET
/
ai-models
/
:id
/
history

Endpoint

GET https://gateway.orkeia.ai/ai-models/{id}/history

Headers

Requires header authorization: <your_token>.
authorization:  <your_token>
Content-Type: application/json

Route Parameters

  • id — Model ID (e.g., MODEL_67890)

Query String

NameTypeRequiredDescriptionExample
laststringNoCursor/offset of the last page”hist_010”
limitstringNoAmount per page”20”
fieldstringNoField for sorting”date”
direction”asc” | “desc”NoSorting direction”desc”

Request Body

{
  "environment": {
    "company": "acme-inc",
    "sector": "engineering"
  }
}

Response (200)

{
"status": "ok", 
"data": {
  "items": [
    {
      "id": "hist_021",
      "responsible": "João Vitor",
      "responsibleId": "user_123",
      "action": "updated ai model",
      "type": "neutral",
      "date": "2025-08-22T19:15:10.000Z",
      "versionControl": "v1.0.1"
    }
  ]
}

Error Codes

500 — Server Error

{
  "status": "ERROR",
  "code": "server/error",
  "data": null
}

400 — Client Error

{
  "status": "ERROR",
  "code": "client/error",
  "data": null
}