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

# 생성 파일 조회

> 생성된 llms.txt 파일 내용을 반환하는 엔드포인트입니다.

## GET /file/{siteId}

지정한 사이트의 `llms.txt` 내용을 반환합니다. 공개 엔드포인트이며 인증이 필요 없어, 웹사이트에 파일 URL을 직접 넣을 수 있습니다.

<Note>
  응답에는 교차 출처 접근용 CORS 헤더(`Access-Control-Allow-Origin: *`)가 포함되며 5분간 캐시됩니다.
</Note>

### 경로 매개변수

<ParamField path="siteId" type="string" required>
  파일을 가져올 사이트 ID입니다.
</ParamField>

### 쿼리 매개변수

<ParamField query="full" type="boolean" default="false">
  `true`이면 각 페이지 전체 텍스트가 포함된 버전을 반환합니다. AI 컨텍스트 창 등에 적합합니다.
</ParamField>

### 응답

`llms.txt`의 순수 텍스트 본문이 반환되며 다음과 같습니다:

* Content-Type: `text/plain; charset=utf-8`
* Cache-Control: `public, max-age=300`

<RequestExample>
  ```bash cURL (Standard) theme={null}
  curl -X GET https://api.llmgenerator.com/api/v1/file/550e8400-e29b-41d4-a716-446655440000
  ```

  ```bash cURL (Full Text) theme={null}
  curl -X GET "https://api.llmgenerator.com/api/v1/file/550e8400-e29b-41d4-a716-446655440000?full=true"
  ```

  ```javascript JavaScript theme={null}
  // Fetch and display llms.txt content
  const response = await fetch(
    'https://api.llmgenerator.com/api/v1/file/550e8400-e29b-41d4-a716-446655440000'
  );
  const content = await response.text();
  console.log(content);
  ```
</RequestExample>

<ResponseExample>
  ```text Standard llms.txt theme={null}
  # Example Domain
  > An example domain for use in documentation and examples.

  ## Pages

  - [Home](https://example.com/): The main landing page for Example Domain.
  - [About](https://example.com/about): Learn more about Example Domain and its purpose.
  - [Contact](https://example.com/contact): Get in touch with the Example Domain team.
  ```

  ```text Full Text Version theme={null}
  # Example Domain
  > An example domain for use in documentation and examples.

  ## Pages

  ### Home
  URL: https://example.com/

  Welcome to Example Domain. This domain is for use in illustrative examples in documents...

  ---

  ### About
  URL: https://example.com/about

  Example Domain was established to provide a safe space for documentation examples...
  ```
</ResponseExample>
