> ## Documentation Index
> Fetch the complete documentation index at: https://docs.orkeia.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Obtener Versión de la Herramienta

> Devuelve el snapshot de una versión específica de la herramienta.

## Endpoint

`GET https://gateway.orkeia.ai/tools/{id}/version-control/{versionId}`

**Autenticación**\
Requiere el encabezado `authorization:  <tu_token>`.

## Parámetros de Camino

| Nombre    | Tipo   | Obligatorio | Descripción                                    | Ejemplo      |
| --------- | ------ | ----------- | ---------------------------------------------- | ------------ |
| id        | string | Sí          | Identificador único de la herramienta.         | TOOL\_123456 |
| versionId | string | Sí          | Identificador/slug de la versión del snapshot. | v1.0.1       |

## Ejemplo (cURL)

```bash theme={null}
curl -X GET "https://gateway.orkeia.ai/tools/TOOL_123456/version-control/v1.0.1"   -H "authorization:  <tu_token>"
```

## Respuestas

### Response - Success

```json response theme={null}
{
  "status": "OK",
  "data": {
    "id": "TOOL_123456",
    "snapshot": {
      "name": "Herramienta X",
      "description": "Descripción",
      "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 — Error del Servidor

```json theme={null}
{
  "status": "ERROR",
  "code": "server/error",
  "data": null
}
```

### 400 — Error del Cliente

```json theme={null}
{
  "status": "ERROR",
  "code": "client/error",
  "data": null
}
```
