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

# Détails d'un site

> Ce point de terminaison renvoie les détails d'un site précis.

## GET /sites/{siteId}

Renvoie les informations détaillées d'un site : état, URL des fichiers et dernières options de génération.

### Paramètres de chemin

<ParamField path="siteId" type="string" required>
  Identifiant du site à consulter.
</ParamField>

### Réponse

<ResponseField name="id" type="string">
  Identifiant unique du site.
</ResponseField>

<ResponseField name="url" type="string">
  URL normalisée du site.
</ResponseField>

<ResponseField name="userId" type="string">
  Identifiant du propriétaire du site.
</ResponseField>

<ResponseField name="status" type="string">
  État actuel : `pending`, `processing`, `completed` ou `failed`.
</ResponseField>

<ResponseField name="fileUrl" type="string">
  URL du fichier llms.txt généré.
</ResponseField>

<ResponseField name="fullTextUrl" type="string">
  URL de la version texte intégral (si disponible).
</ResponseField>

<ResponseField name="lastGenerationOptions" type="object">
  Options utilisées lors de la dernière génération.

  <Expandable title="Propriétés lastGenerationOptions">
    <ResponseField name="maxUrls" type="number">
      Nombre maximal d'URL traitées.
    </ResponseField>

    <ResponseField name="showFullText" type="boolean">
      Indique si le texte intégral était inclus.
    </ResponseField>

    <ResponseField name="generationMethod" type="string">
      Méthode : `simple` ou `enhanced`.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="createdAt" type="string">
  Horodatage ISO 8601 de la création du site.
</ResponseField>

<ResponseField name="updatedAt" type="string">
  Horodatage ISO 8601 de la dernière mise à jour.
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET https://api.llmgenerator.com/api/v1/sites/550e8400-e29b-41d4-a716-446655440000 \
    -H "Authorization: Bearer YOUR_API_KEY"
  ```

  ```javascript Node.js theme={null}
  const response = await fetch(
    'https://api.llmgenerator.com/api/v1/sites/550e8400-e29b-41d4-a716-446655440000',
    {
      headers: { 'Authorization': 'Bearer YOUR_API_KEY' }
    }
  );

  const data = await response.json();
  ```
</RequestExample>

<ResponseExample>
  ```json Success (200) theme={null}
  {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "url": "https://example.com",
    "userId": "user_abc123",
    "status": "completed",
    "fileUrl": "https://api.llmgenerator.com/api/v1/file/550e8400-e29b-41d4-a716-446655440000",
    "fullTextUrl": "https://api.llmgenerator.com/api/v1/file/550e8400-e29b-41d4-a716-446655440000?full=true",
    "lastGenerationOptions": {
      "maxUrls": 50,
      "showFullText": true,
      "generationMethod": "enhanced"
    },
    "createdAt": "2026-01-15T10:00:00.000Z",
    "updatedAt": "2026-01-20T14:30:00.000Z"
  }
  ```

  ```json Not Found (404) theme={null}
  {
    "message": "Site not found"
  }
  ```

  ```json Forbidden (403) theme={null}
  {
    "message": "Access denied to this site"
  }
  ```
</ResponseExample>
