POST
/
v1
/
keys.whoami

Changelog

DateChanges
Oct 07 2024Introduced endpoint

You may not always have easy access to the keyId and therefore can’t use /v1/keys.getKey. This offers an escape hatch to send us the real key instead.

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
key
string
required

The actual key to fetch

Response

200 - application/json
id
string
required

The ID of the key

name
string

The name of the key

remaining
integer

The remaining number of requests for the key

identity
object

The identity object associated with the key

meta
object

Metadata associated with the key

createdAt
integer
required

The timestamp in milliseconds when the key was created

enabled
boolean
required

Whether the key is enabled

environment
string

The environment the key is associated with