# 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-8361e5ac3780661a20a51ec0d96901ce1db69b92%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-8361e5ac3780661a20a51ec0d96901ce1db69b92%2Fopenapi.json?alt=media)
{% endopenapi %}
