Skip to content

The API key of the request

Resource, request and plan limits are listed on Limits.

Download OpenAPI specification · Version 0.1.0

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
headerAuthorizationBearer <token>

An API key (si_ and 43 base64url characters), sent as Authorization: Bearer si_...; see Using the API.

Response Body

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

response?stringtext/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 Response
"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
headerAuthorizationBearer <token>

An API key (si_ and 43 base64url characters), sent as Authorization: Bearer si_...; see Using the API.

Response Body

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

application/json
  1. 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 Response
{  "email": "jenny@example.com",  "expires_at": "2027-02-21T09:00:00.000Z",  "key_name": "cli laptop",  "org": "org_2fH7kLmN9pQrSt",  "org_name": "Acme Inc."}