---
source_url: https://www.pubnub.com/docs/admin-api/get-customer-by-keyset
title: Get customer by keyset
---

# Get customer by keyset

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

Returns the owner of a specific keyset. Useful when you have a keyset ID and need to identify the associated customer.

## Request

Example

```
{
  "result": {
    "id": "string",
    "externalId": "string",
    "name": "string",
    "created": "string",
    "updated": "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": "NotFound",
  "message": [
    "string"
  ]
}
```

Example

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