# UserApiKeyCreateRequest

Creates an API key for the calling user.

**Kind:** an object, used in requests.

## Fields

| Field | Type | Required | Description |
|---|---|---|---|
| `name` | `string` | yes | A name for the key, 5 to 100 characters, unique among your active keys. Constraints: maxLength: 100, minLength: 5, required (empty or whitespace-only strings are rejected). |
| `dateExpires` | `datetime \| null` |  | When the key stops working, in UTC; must be in the future. Null: it never expires. |

## Example

```json
{
  "name": "...",
  "dateExpires": "2026-10-26T12:00:00.0000000Z"
}
```

## Where it's used

- [`apiKeys.create`](https://docs.maitento.com/reference/api/api-keys.md) (`POST /users/self/api-keys`)
