Get an API key
Changed onGet details of a specific API key by ID
Request
- Base URLhttps://gateway.prem.io
- AuthHTTP bearer and API key in header Authorization
Path parameters
API Key ID
Response
Successful API key view response
Example response
{
"data": {
"id": "api_key_0197c0ec-a197-719f-84a9-99270a79b42a",
"secret": "sk_live_MDE5N2MwZWMt...GdwdA",
"scopes": [
"api_keys.read"
],
"ip_allow_list": [
"127.0.0.1",
"192.168.1.0/24"
],
"label": "My API Key",
"description": "Key for reading API Keys",
"expires_at": "2026-05-30 20:23:16",
"created_at": "2025-06-30 15:00:22",
"updated_at": "2025-07-01 10:30:45",
"metrics": {
"api_key_id": "api_key_0197c0ec-a197-719f-84a9-99270a79b42a",
"total_requests": 1250,
"last_used_at": "2025-07-01 09:15:30"
}
},
"message": null
}Changes
- warning
added the new
405.00enum value to the/response property for the response status - warning
added the new
405.00enum value to the/response property for the response status - warning
added the new
405.00enum value to the/response property for the response status - warning
added the new
405.00enum value to theresponse property for the response status - warning
added the new
409.00enum value to the/response property for the response status - warning
added the new
409.00enum value to the/response property for the response status - warning
added the new
409.00enum value to the/response property for the response status - warning
added the new
409.00enum value to theresponse property for the response status - warning
added the new
500.00enum value to the/response property for the response status - warning
added the new
500.00enum value to the/response property for the response status - warning
added the new
500.00enum value to the/response property for the response status - warning
added the new
500.00enum value to theresponse property for the response status - info
removed the
BALANCEenum value from the/////response property for the response status - info
removed the
PLANenum value from the/////response property for the response status
- warning
- info
endpoint added
- info