Keys
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
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
apiKeyAuthorizationBearer <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/plainThe key of the request is deleted, and the API gateway rejects it within 30 seconds; no body.
curl -X DELETE 'https://api.slashinfra.com/keys/current'"string"The org of the API key of this request
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
apiKeyAuthorizationBearer <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- 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*stringWhen the key expires, as an ISO 8601 UTC timestamp.
key_name*|The name of the key.
org*stringThe id of the organization of the key.
org_name*stringThe display name of the organization of the key.
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."}curl -X DELETE 'https://api.slashinfra.com/keys/current'"string"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."
}