List the signed-in member's active management keys
GET
/api/v1/me/management-keys
const url = 'https://gpu-kitchen.example.lan/api/v1/me/management-keys';const options = {method: 'GET', headers: {cookie: 'gpuk_session=<gpuk_session>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://gpu-kitchen.example.lan/api/v1/me/management-keys \ --cookie gpuk_session=<gpuk_session>Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Success.
Media typeapplication/json
object
keys
required
Array<object>
object
id
required
Key id: the public part of the token.
string
label
required
string | null
role_ceiling
required
Highest role the key acts with; the owner’s live role caps it.
string
read_only
required
A read-only key may only call GET operations.
boolean
prefix
required
Non-secret display hint: the head of the token.
string
created_at
required
string format: date-time
last_used_ip
required
string | null
Example
{ "keys": [ { "role_ceiling": "super_admin" } ]}Error codes: auth_required.
Media typeapplication/json
object
error
required
object
code
required
Stable snake_case code to branch on.
string
message
required
A sentence to show a person.
string
details
Optional structured context.
fix
Optional place where the problem is fixed.
string
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": "example", "fix": "example" }}Error codes: forbidden, session_required.
Media typeapplication/json
object
error
required
object
code
required
Stable snake_case code to branch on.
string
message
required
A sentence to show a person.
string
details
Optional structured context.
fix
Optional place where the problem is fixed.
string
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": "example", "fix": "example" }}