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

# Get Site Details

> This endpoint retrieves the details of a specific site.

## GET /sites/{siteId}

This endpoint returns detailed information about a single site, including its status, file URLs, and last generation options.

### Path Parameters

<ParamField path="siteId" type="string" required>
  The ID of the site to retrieve.
</ParamField>

### Response

<ResponseField name="id" type="string">
  The unique identifier for the site.
</ResponseField>

<ResponseField name="url" type="string">
  The normalized URL of the site.
</ResponseField>

<ResponseField name="userId" type="string">
  The ID of the user who owns the site.
</ResponseField>

<ResponseField name="status" type="string">
  The current status: `pending`, `processing`, `completed`, or `failed`.
</ResponseField>

<ResponseField name="fileUrl" type="string">
  URL to access the generated llms.txt file.
</ResponseField>

<ResponseField name="fullTextUrl" type="string">
  URL to access the full-text version (if available).
</ResponseField>

<ResponseField name="lastGenerationOptions" type="object">
  The options used for the last generation.

  <Expandable title="lastGenerationOptions properties">
    <ResponseField name="maxUrls" type="number">
      Maximum URLs processed.
    </ResponseField>

    <ResponseField name="showFullText" type="boolean">
      Whether full text was included.
    </ResponseField>

    <ResponseField name="generationMethod" type="string">
      Method used: `simple` or `enhanced`.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="createdAt" type="string">
  ISO 8601 timestamp of site creation.
</ResponseField>

<ResponseField name="updatedAt" type="string">
  ISO 8601 timestamp of last update.
</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>
