Skip to main content
GET
/
tools
/
:id
/
version-control
/
:versionId

Endpoint

GET https://gateway.orkeia.ai/tools/{id}/version-control/{versionId} Authentication
Requires header authorization: <your_token>.

Path Parameters

NameTypeRequiredDescriptionExample
idstringYesUnique identifier of the tool.TOOL_123456
versionIdstringYesIdentifier/slug of the version snapshot.v1.0.1

Example (cURL)

curl -X GET "https://gateway.orkeia.ai/tools/TOOL_123456/version-control/v1.0.1"   -H "authorization: <your_token>"

Responses

Response - Success

response
{
  "status": "OK",
  "data": {
    "id": "TOOL_123456",
    "snapshot": {
      "name": "Tool X",
      "description": "Description",
      "code": "export async function run(input){ return { ok: true }; }",
      "entryFunctionName": "run",
      "sectors": ["engineering"],
      "publisher": "Orkeia",
      "enabled": true,
      "environments": ["prod"],
      "mcp": {
        "url": "https://tools.orkeia.ai/my-tool",
        "transport": "sse"
      }
    },
    "versionId": "v1.0.1",
    "createdAt": "2024-07-10T09:30:00Z"
  }
}

500 — Server Error

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

400 — Client Error

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