> ## 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.

# Obtenir les logs d'entraînement

> Récupérez un instantané des logs de sortie d'un job d'entraînement Fastino.

Renvoie des entrées structurées de stdout et stderr. Cet endpoint ne diffuse pas en continu ; interrogez-le pour suivre un job en cours d'exécution.

## Requête

<ParamField header="X-API-Key" type="string" required>
  Votre clé API Fastino.
</ParamField>

<ParamField path="job_id" type="string" required>
  UUID du job d'entraînement.
</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>

## Réponse

<ResponseField name="job_id" type="string">
  UUID du job d'entraînement.
</ResponseField>

<ResponseField name="logs" type="object[]">
  Entrées de log. Chaque entrée contient `id`, `job_id`, `timestamp`, `level`, `message` et `source`.
</ResponseField>

<ResponseField name="total_logs" type="integer">
  Nombre d'entrées renvoyées.
</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 job inconnu ou inaccessible renvoie `404`.
