---
source_url: https://www.pubnub.com/docs/admin-api/list-keysets
title: List keysets
---

# List keysets

> For AI agents: documentation index at https://www.pubnub.com/llms-full.txt

Retrieves a paginated list of keysets associated with the account.

## Request

Example

```
{
  "keysets": [
    {
      "name": "string",
      "type": "testing",
      "appId": "string",
      "id": "string",
      "publishKey": "string",
      "subscribeKey": "string",
      "createdAt": "string",
      "updatedAt": "string"
    }
  ],
  "total": 0,
  "page": 0,
  "limit": 0
}
```

Example

```
{
  "statusCode": 0,
  "error": "BadRequest",
  "message": [
    "string"
  ]
}
```

Example

```
{
  "statusCode": 0,
  "error": "Unauthorized",
  "message": [
    "string"
  ]
}
```

Example

```
{
  "statusCode": 0,
  "error": "Forbidden",
  "message": [
    "string"
  ]
}
```

Example

```
{
  "statusCode": 0,
  "error": "InternalError",
  "message": [
    "string"
  ]
}
```
