For AI agents: this page in Markdown: https://www.pubnub.com/docs/admin-api/get-keyset-by-id.md. Documentation index: https://www.pubnub.com/llms-full.txt.

Get keyset by ID

GET 

/v2/keysets/:id

Retrieves a single keyset by its ID.

Request​

Example
{
  "name": "string",
  "type": "testing",
  "appId": "string",
  "id": "string",
  "publishKey": "string",
  "subscribeKey": "string",
  "createdAt": "string",
  "updatedAt": "string"
}
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"
  ]
}