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

# grant 목록

> App의 1:1 공유 grant 목록 표시.

**`GET`** `https://api-datahub.octoparse.com/v1/data-apps/{app_id}/grants`

인증: API 키 필요(`Authorization: Bearer <API Key>`). App 작성자만. 그 외 `404`.

`scope=shared`일 때 적용되는 grant 목록. 작성자 전용이며, Release가 0개인 App에서도 사용할 수 있습니다. 이 목록은 상세 페이로드나 작성자가 아닌 사용자에 대한 응답에 절대 나타나지 않습니다. 사용자 이름은 렌더링 시점에 확인되므로 grantee가 이름을 바꾸면 새 이름이 표시됩니다.

## 요청

### 경로 파라미터

<ParamField path="app_id" type="string" required>
  App 참조.
</ParamField>

### 요청 예시

```bash theme={null}
curl \
  -H "Authorization: Bearer $OCTOPARSE_API_KEY" \
  "https://api-datahub.octoparse.com/v1/data-apps/carol/reviews-query/grants"
```

## 응답

### 200 성공

```json theme={null}
{
  "data": {
    "items": []
  }
}
```

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

<ResponseField name="items" type="object[]" required>
  grant 목록.

  <Expandable title="fields">
    <ResponseField name="username" type="string">
      접근 권한을 받은 사용자의 현재 사용자 이름.
    </ResponseField>

    <ResponseField name="granted_at" type="string" required>
      접근 권한이 부여된 시각.
    </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를 직접 호출하세요.
