# ApiKey (/api/reference/objects/api-key)

A key that lets a program act in the workspace as the member who made it. The secret itself is shown once, when the key is made.

```graphql
type ApiKey {
  createdAt: DateTime!
  id: ID!
  label: String!
  lastUsedAt: DateTime
}
```

### Fields [#fields]

#### [`ApiKey.createdAt`](#created-at) · [`DateTime!`](/api/reference/scalars/date-time) `non-null` `scalar` [#created-at]
When it was made.

#### [`ApiKey.id`](#id) · [`ID!`](/api/reference/scalars/id) `non-null` `scalar` [#id]
The key's id. Pass it to `deleteApiKey`.

#### [`ApiKey.label`](#label) · [`String!`](/api/reference/scalars/string) `non-null` `scalar` [#label]
The name its owner gave it, such as "browser extension".

#### [`ApiKey.lastUsedAt`](#last-used-at) · [`DateTime`](/api/reference/scalars/date-time) `scalar` [#last-used-at]
When a request last used it. Null when it has never been used.

### Member Of [#member-of]

[`ApiKeyEdge`](/api/reference/objects/api-key-edge)  `object` · [`CreateApiKeyPayload`](/api/reference/objects/create-api-key-payload)  `object`