# api_key.create

Creates API Key.

name is a user-readable name for key.

Type: object

##

Type: array
No Additional Items

#### Tuple Validation

##### Parameter 1: api_key_create

#### api_key_create

Type: object
No Additional Properties

##

#### Name

Type: string

Must be at least `1` characters long

Must be at most `200` characters long

##

#### Username

## Any of

Type: string
Type: string

Must be at least `1` characters long

##

#### Expires At

Default: null

## Any of

Type: string Format: date-time
Type: null

##

#### ApiKeyEntryWithKey

Type: object
No Additional Properties

##

#### Id

Type: integer

##

#### Name

Type: string

Must be at least `1` characters long

Must be at most `200` characters long

##

#### Username

## Any of

Type: string
Type: string

Must be at least `1` characters long

##

#### User Identifier

## Any of

Type: integer
Type: string

##

#### Keyhash

Type: string

##

#### Created At

Type: string Format: date-time

##

#### Expires At

Default: null

## Any of

Type: string Format: date-time
Type: null

##

#### Local

Type: boolean

##

#### Revoked

Type: boolean

##

#### Key

Type: string

Required roles: API_KEY_WRITE | READONLY_ADMIN