# Get API keys

The method allows you to get user's API keys

### Request:

| **Parameter** | **Required** | **Type** | **Description**                             |
| ------------- | ------------ | -------- | ------------------------------------------- |
| userId        | Yes          | String   | User ID                                     |
| limit         | Yes          | Number   | Limit on the number of keys in the response |
| offset        | Yes          | Number   | Offset (for pagination)                     |

### Response:

| **Parameter** | **Type**         | **Description**                          |
| ------------- | ---------------- | ---------------------------------------- |
| keys          | Array of objects | Массив объектов API ключей               |
| total         | Number           | Общей количество API ключей пользователя |

The `keys` parameter is an array of the following objects:

| **Parameter** | **Type** | **Description** |
| ------------- | -------- | --------------- |
| id            | String   | Api key ID      |
| public        | String   | Public key      |
| secret        | String   | Secret key      |
| alias         | String   | Alias           |
| createdAt     | String   | Creation date   |

{% openapi src="https://615678623-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa1TzfeK1Z0GLFNxiNpMW%2Fuploads%2Fgit-blob-9ef2473afbb2747e60457d760dca1d7a9e80c63e%2Fopenapi.json?alt=media" path="/partner/api/get-api-keys" method="post" %}
[openapi.json](https://615678623-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa1TzfeK1Z0GLFNxiNpMW%2Fuploads%2Fgit-blob-9ef2473afbb2747e60457d760dca1d7a9e80c63e%2Fopenapi.json?alt=media)
{% endopenapi %}
