List API keys
Changed onList API keys for the authenticated organization. API keys are masked.
Request
- Base URLhttps://api.onkernel.com
- URLhttps://api.onkernel.com/org/api_keys
- AuthHTTP bearer
Query parameters
Maximum number of results to return
Number of results to skip
Case-insensitive substring match against API key name, creator, and project. API key identifiers and masked keys match by exact value or prefix.
Exact-match filter on API key name using the database collation. In production, matching is case- and accent-insensitive. Names are not required to be unique, so multiple keys may match. When status=all or include_deleted=true is set, soft-deleted keys with the same name may also match.
Field to sort API keys by. Keys with no expiry or no recorded use sort last for expires_at and last_used_at in either direction.
Sort direction for API keys.
Filter API keys by status. "active" returns keys that are not deleted (default; expired-but-not-deleted keys are still included), "deleted" returns only soft-deleted keys, "all" returns both.
Deprecated: use status=all instead. When true, include deleted (soft-deleted) API keys in the results for audit purposes.
Response
List of API keys
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 new enum value
last_used_atto thequeryrequest parametersort_by
- info
- info
added the required property
/to the response with the status
- info