Skip to main content
GET
/
knowledge-bases
/
:id
/
history

Endpoint

GET https://gateway.orkeia.ai/knowledge-bases/{id}/history Authentication
Requires header authorization: <your_token>.

Headers

authorization: <your_token>

Path Parameters

NameTypeRequiredDescriptionExample
idstringYesIdentifier of the knowledge base.KB_123456

Example (cURL)

curl -X GET "https://gateway.orkeia.ai/knowledge-bases/KB_123456/history" \
  -H "authorization:  <your_token>"

Responses

Response - Success

response
{
  "status": "OK",
  "data": [
    {
      "id": "hist_001",
      "responsible": "João Vitor",
      "responsibleId": "user_123",
      "action": "updated knowledge base",
      "type": "neutral",
      "date": "2024-07-22T18:00:00Z",
      "versionControl": "v1.0.1"
    }
  ]
}

500 — Server Error

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

400 — Client Error

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

History Fields

NameTypeDescription
idstringUnique identifier of the history event.
responsiblestringName of the person responsible for the change.
responsibleIdstringID of the user or system that made the change.
actionstringRegistered action (e.g., created, updated, deleted).
typestringClassification of the event (success, fail, neutral).
dateDateDate and time of the change.
versionControlstringVersion identifier associated with the event (if applicable).