API Keys
Get an API key
Changed onRetrieve an API key by ID for the authenticated organization. API keys are masked.
get/org/api_keys/{id}
Request
- Base URLhttps://api.onkernel.com
- URLhttps://api.onkernel.com/org/api_keys/{id}
- AuthHTTP bearer
Path parameters
idstring required
API key ID
Query parameters
include_deletedboolean
When true, return the API key even if it has been deleted (soft-deleted), for audit purposes. Defaults to false, which returns 404 for a deleted key.
Response
API key details
Example response
{
"created_by": {
"email": "user@example.com",
"id": "user-abc123",
"name": "Jane Doe"
},
"id": "ckv9w8q2f000001l5r3j7k9m4",
"masked_key": "sk_1234...abcd",
"name": "production",
"policy": {
"statements": [
{
"action": "browsers:use",
"resource": "projects/proj_abc123/browsers/br_abc123"
}
]
},
"project_id": "proj_abc123",
"project_name": "Production"
}Changes
- info
added the required property
to the response with the status
- info
- info
added the optional property
to the response with the status
- info