cURL
curl --request GET \ --url https://api.logfleet.io/api/v1/api-keys/{id} \ --header 'Authorization: Bearer <token>'
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "<string>", "key_prefix": "<string>", "permissions": [ "<string>" ], "last_used_at": "2023-11-07T05:31:56Z", "expires_at": "2023-11-07T05:31:56Z", "revoked_at": "2023-11-07T05:31:56Z", "created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "created_at": "2023-11-07T05:31:56Z" }
Returns API key details (without the actual key)
JWT token obtained from /auth/login
API key details
First 8 characters of the key