# Create API key

The method allows you to create an API key for the user

### Request:

| **Parameter** | **Required** | **Type** | **Description** |
| ------------- | ------------ | -------- | --------------- |
| userId        | Yes          | String   | User ID         |
| alias         | Yes          | String   | Alias           |

### Response:

| **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/create-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 %}
