> ## 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 /sites/{siteId}

返回指定站点的详细信息，包含状态、文件地址及上次生成选项。

### 路径参数

<ParamField path="siteId" type="string" required>
  站点 ID。
</ParamField>

### 响应

<ResponseField name="id" type="string">
  站点唯一标识。
</ResponseField>

<ResponseField name="url" type="string">
  规范化后的站点 URL。
</ResponseField>

<ResponseField name="userId" type="string">
  所有者用户 ID。
</ResponseField>

<ResponseField name="status" type="string">
  当前状态：`pending`、`processing`、`completed` 或 `failed`。
</ResponseField>

<ResponseField name="fileUrl" type="string">
  生成的 llms.txt 访问地址。
</ResponseField>

<ResponseField name="fullTextUrl" type="string">
  全文版地址（若有）。
</ResponseField>

<ResponseField name="lastGenerationOptions" type="object">
  上次生成使用的选项。

  <Expandable title="lastGenerationOptions 字段">
    <ResponseField name="maxUrls" type="number">
      最大处理 URL 数。
    </ResponseField>

    <ResponseField name="showFullText" type="boolean">
      是否包含全文。
    </ResponseField>

    <ResponseField name="generationMethod" type="string">
      使用的方式：`simple` 或 `enhanced`。
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="createdAt" type="string">
  创建时间（ISO 8601）。
</ResponseField>

<ResponseField name="updatedAt" type="string">
  最近更新时间（ISO 8601）。
</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>
