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

Authentication: API key required (`Authorization: Bearer <API Key>`). App author only; others get `404`.

The grant list that takes effect when `scope=shared`. Author-only; available even for apps with zero releases. The list never appears on detail payloads or any non-author response. Usernames are resolved at render time, so if a grantee renames, the new name is shown.

## Request

### Path parameters

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

### Example request

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

## Response

### 200 success

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

The payload is wrapped in `data`. Fields:

<ResponseField name="items" type="object[]" required>
  The grant list.

  <Expandable title="fields">
    <ResponseField name="username" type="string">
      Current username of the granted user.
    </ResponseField>

    <ResponseField name="granted_at" type="string" required>
      When access was granted.
    </ResponseField>
  </Expandable>
</ResponseField>

### Errors

| HTTP | `code`         | `category`  | Description                 |
| ---- | -------------- | ----------- | --------------------------- |
| 401  | `unauthorized` | `forbidden` | Missing or invalid API key. |

Error responses use `{"error": {code, category, message, retryable}}`. See <a href="/docs/jp/datahub/api/reference/introduction#errors">Errors</a>.

## Client libraries

The Python and JavaScript SDKs do not wrap this endpoint yet. Call REST directly.
