# ApiKeySelf type


The API key that you are calling with.

## Fields

### id

[`UUID!`](/chameleoon-max/type/uuid)

The API key's id. It stays the same when its secret is rotated.

### name

`String!`

The name that the API key's administrators gave it.

### environment

[`ApiKeyEnvironment!`](/chameleoon-max/type/api-key-environment)

The deployment that the API key was created for.

### permissions

`[String!]!`

The permissions that apply now: what the API key was granted, limited by what its owner holds
now. Sorted.

Priced as 10 permissions, however many it holds.

Costs 10 points.

### scopes

[`[ApiKeyScope!]!`](/chameleoon-max/type/api-key-scope)

The scopes that apply now: the API key's scopes intersected with its owner's, sorted by type,
then by value. A dimension with no entry is unrestricted, so an empty list means unrestricted
along every dimension.

Priced as 3 scopes, however many it holds.

Costs 3 points plus 3 × one scope's selection.

## Used by

- [`apiKey`](/chameleoon-max/query/api-key) (query)
