Keys
Returns data about a key
POST
Changelog
Date | Changes |
---|---|
Oct 07 2024 | Introduced 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
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
The actual key to fetch
Minimum length:
1
Example:
"sk_123"
Response
200
application/json
The configuration for a single key
The ID of the key
Example:
"key_123"
The timestamp in milliseconds when the key was created
Example:
1620000000000
Whether the key is enabled
Example:
true
The name of the key
Example:
"API Key 1"
The remaining number of requests for the key
Example:
1000
The identity object associated with the key
Metadata associated with the key
Example:
{ "role": "admin", "plan": "premium" }
The environment the key is associated with
Example:
"production"
Was this page helpful?