cURL
curl --request GET \ --url https://api.example.com/api/v1/api-keys/whoami/ \ --header 'X-API-Key: <api-key>'
{ "name": "<string>", "store_name": "<string>", "role": "<string>", "created_at": "2023-11-07T05:31:56Z", "last_used_at": "2023-11-07T05:31:56Z", "expires_at": "2023-11-07T05:31:56Z" }
Returns detailed information about the API key being used for the current request, including associated store and permissions.
API key in format: sk_*
A human-readable name for this API key
255