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

# 시크릿 목록

> 저장 시크릿 이름과 마스크.

**`GET`** `https://api-datahub.octoparse.com/v1/secrets`

인증: API 키 필요(`Authorization: Bearer <API Key>`).

api-kind App(`runtime.env`)용 저장 환경 시크릿 목록. 평문은 쓰기 전용. 읽기는 항상 마스크만.

## 요청

### 요청 예시

```bash theme={null}
curl   -H "Authorization: Bearer $OCTOPARSE_API_KEY"   "https://api-datahub.octoparse.com/v1/secrets"
```

## 응답

### 200 성공

```json theme={null}
{
  "data": {
    "items": [
      {
        "name": "EXAMPLE_API_KEY",
        "mask": "sk-****abcd",
        "updated_at": "2026-09-01T08:00:00+00:00"
      }
    ]
  }
}
```

페이로드는 `data`로 감쌉니다. 필드:

<ResponseField name="items" type="array" required>
  시크릿 목록.

  <Expandable title="item">
    <ResponseField name="name" type="string" required>
      시크릿 이름. App은 `env.<name>`으로 참조.
    </ResponseField>

    <ResponseField name="mask" type="string" required>
      마스크 값. 평문 미반환.
    </ResponseField>

    <ResponseField name="updated_at" type="string" required>
      마지막 업데이트(ISO 8601).
    </ResponseField>
  </Expandable>
</ResponseField>

### 오류

| HTTP | `code`         | `category`  | 설명              |
| ---- | -------------- | ----------- | --------------- |
| 401  | `unauthorized` | `forbidden` | API 키 누락 또는 무효. |

오류 응답은 `{"error": {code, category, message, retryable}}`입니다. <a href="/docs/ko/datahub/api/reference/introduction#errors">오류</a> 참고.

## 클라이언트 라이브러리

Python / JavaScript SDK는 아직 이 엔드포인트를 감싸지 않습니다. REST를 직접 호출하세요.
