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

# List API Keys

List API keys associated with a target (e.g., organization or blob).

## **GET** `/api-keys/target/:target/:target_id`

### Path Parameters

| Parameter   | Type   | Required | Description                              |
| :---------- | :----- | :------- | :--------------------------------------- |
| `target`    | string | Yes      | Resource type: `org`, `blob`, or `user`. |
| `target_id` | string | Yes      | The unique ID of the target resource.    |

### Response

| Parameter  | Type  | Description                          |
| :--------- | :---- | :----------------------------------- |
| `api_keys` | array | Every API key minted for the target. |

<Note>
  The listing is exhaustive. It previously stopped after DynamoDB's first internal page, so a target with
  many keys could come back short; it now always returns the complete set.
</Note>

### Example

<CodeGroup>
  ```bash Request theme={null}
  curl https://api.blobhub.io/v1/api-keys/target/blob/blob_123 \
    -H "X-API-Key: $ORG_API_KEY"
  ```

  ```json Response theme={null}
  {
    "status": "success",
    "api_keys": [
      {
        "id": "key_001",
        "role": "write",
        "target": "blob",
        "target_id": "blob_123",
        "target_target_id": "blob#blob_123",
        "user_id": "user_042",
        "created_by_user_id": "user_042",
        "key_prefix": "bh_live_***",
        "created_at": "2026-07-02T09:14:20.331298Z"
      }
    ]
  }
  ```
</CodeGroup>
