api.unkey.dev/v1
cURL
curl --request POST \ --url https://api.unkey.dev/v1/keys.whoami \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "key": "sk_123" }'
{ "id": "key_123", "name": "API Key 1", "remaining": 1000, "identity": { "id": "id_123", "externalId": "ext123" }, "meta": { "role": "admin", "plan": "premium" }, "createdAt": 1620000000000, "enabled": true, "environment": "production" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The configuration for a single key
The response is of type object.
object
Was this page helpful?