List keysets

Retrieves a paginated list of keysets associated with the account.

Query Parameters
page string

a string to be decoded into a number

limit string

a string to be decoded into a number

Header Parameters
PubNub-Version string REQUIRED

Possible values: [2025-11-01]

Responses
200

Success

Schema OPTIONAL
keysets object[]
name string

A human-readable name for the keyset.

appId string

The ID of the app this this keyset belongs to.

type string

Possible values: [testing, production]

The type of the keyset, either "testing" or "production. Testing keysets are used for development and testing purposes and can be affected with stronger rate limits. Creating a production keyset requires a paid plan, visit Admin Portal to upgrade.

id string
publishKey string
subscribeKey string
createdAt string OPTIONAL
updatedAt string OPTIONAL
total number
page number
limit number
400

Bad Request Error

Schema OPTIONAL
statusCode number
error string

Possible values: [BadRequest]

message string[]
401

UnauthorizedError

Schema OPTIONAL
statusCode number
error string

Possible values: [Unauthorized]

message string[]
403

ForbiddenError

Schema OPTIONAL
statusCode number
error string

Possible values: [Forbidden]

message string[]
500

InternalErrorError

Schema OPTIONAL
statusCode number
error string

Possible values: [InternalError]

message string[]
* required
PubNub-Version*
Type: string
Possible values: [2025-11-01]
page
Type: string
limit
Type: string
keysets
Type: array
Array items:
items
Type: object
total
Type: number
page
Type: number
limit
Type: number
statusCode
Type: number
error
Type: string
Enum (1 values)
View all values
"BadRequest"
message
Type: array
Array items:
items
Type: string
statusCode
Type: number
error
Type: string
Enum (1 values)
View all values
"Unauthorized"
message
Type: array
Array items:
items
Type: string
statusCode
Type: number
error
Type: string
Enum (1 values)
View all values
"Forbidden"
message
Type: array
Array items:
items
Type: string
statusCode
Type: number
error
Type: string
Enum (1 values)
View all values
"InternalError"
message
Type: array
Array items:
items
Type: string