# Keys

The API key of the request

Source: https://slashinfra.com/docs/api-reference/control/keys
Last modified: 2026-11-30T16:36:19.000Z

The API key of the request

Resource, request and plan limits are listed on [Limits](https://slashinfra.com/docs/reference/limits).

[Download OpenAPI specification](https://slashinfra.com/docs/control.openapi.json) · Version 0.1.0

[DELETEDelete the key of this request](https://slashinfra.com/docs/api-reference/control/keys#deleteKeysCurrent)[GETThe org of the API key of this request](https://slashinfra.com/docs/api-reference/control/keys#getWhoami)

### Delete the key of this request

DELETE

/keys/current

Deletes the key sent in the `Authorization: Bearer` header, so that it cannot make another request; use it to revoke a key you hold.

#### Authorization

`apiKey`

header`Authorization``Bearer <token>`

An API key (`si_` and 43 base64url characters), sent as `Authorization: Bearer si_...`; see [Using the API](https://slashinfra.com/docs/reference/api).

#### Response Body

The key of the request is deleted, and the API gateway rejects it within 30 seconds; no body.

`response?`string`text/plain`

The key of the request is deleted, and the API gateway rejects it within 30 seconds; no body.

Example Request

```
curl -X DELETE 'https://api.slashinfra.com/keys/current'
```

Example ResponseSchema

```
"string"
```

### The org of the API key of this request

GET

/whoami

Returns the organization of the request key, the key name, the user email for a device key and the ISO 8601 `expires_at`. An organization key names no user.

#### Authorization

`apiKey`

header`Authorization``Bearer <token>`

An API key (`si_` and 43 base64url characters), sent as `Authorization: Bearer si_...`; see [Using the API](https://slashinfra.com/docs/reference/api).

#### Response Body

The organization and its name, key name, user email and expiry of the request key.

`application/json`

- response

- response
- …

The organization and its name, key name, user email and expiry of the request key.

`email*`|

The email address of the user of a device key.

`expires_at*`string

When the key expires, as an ISO 8601 UTC timestamp.

`key_name*`|

The name of the key.

`org*`string

The id of the organization of the key.

`org_name*`string

The display name of the organization of the key.

Example Request

```
curl -X GET 'https://api.slashinfra.com/whoami'
```

Example ResponseSchema

```
{  "email": "jenny@example.com",  "expires_at": "2027-02-21T09:00:00.000Z",  "key_name": "cli laptop",  "org": "org_2fH7kLmN9pQrSt",  "org_name": "Acme Inc."}
```

DELETE

/keys/current

Example Request

```
curl -X DELETE 'https://api.slashinfra.com/keys/current'
```

```
"string"
```

GET

/whoami

Example Request

```
curl -X GET 'https://api.slashinfra.com/whoami'
```

```
{
"email": "jenny@example.com",
"expires_at": "2027-02-21T09:00:00.000Z",
"key_name": "cli laptop",
"org": "org_2fH7kLmN9pQrSt",
"org_name": "Acme Inc."
}
```
