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

> ## Agent Instructions
> Use https://docs.fastino.ai/openapi.json as the source of truth for customer-facing Fastino API routes. Only call operations present in that specification. Do not infer or call undocumented routes. Direct Fastino API integrations use https://api.fastino.ai, /v1 routes, and FASTINO_API_KEY.

# Obtener logs de entrenamiento

> Recupera una instantánea puntual de los logs de salida de un trabajo de entrenamiento de Fastino.

Devuelve entradas estructuradas de stdout y stderr. Este endpoint no hace streaming; consúltalo repetidamente para seguir un trabajo en ejecución.

## Solicitud

<ParamField header="X-API-Key" type="string" required>
  Tu clave de API de Fastino.
</ParamField>

<ParamField path="job_id" type="string" required>
  UUID del trabajo de entrenamiento.
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl https://api.fastino.ai/v1/training-jobs/YOUR_TRAINING_JOB_ID/logs \
    -H "X-API-Key: $FASTINO_API_KEY"
  ```
</RequestExample>

## Respuesta

<ResponseField name="job_id" type="string">
  UUID del trabajo de entrenamiento.
</ResponseField>

<ResponseField name="logs" type="object[]">
  Entradas de log. Cada entrada contiene `id`, `job_id`, `timestamp`, `level`, `message` y `source`.
</ResponseField>

<ResponseField name="total_logs" type="integer">
  Número de entradas devueltas.
</ResponseField>

<ResponseExample>
  ```json Response theme={null}
  {
    "job_id": "YOUR_TRAINING_JOB_ID",
    "logs": [
      {
        "id": "LOG_ID",
        "job_id": "YOUR_TRAINING_JOB_ID",
        "timestamp": "2026-09-22T20:00:00Z",
        "level": "INFO",
        "message": "Epoch 2 completed",
        "source": "trainer"
      }
    ],
    "total_logs": 1
  }
  ```
</ResponseExample>

Un trabajo desconocido o inaccesible devuelve `404`.
