Skip to content

List the signed-in member's active management keys

GET
/api/v1/me/management-keys
curl --request GET \
--url https://gpu-kitchen.example.lan/api/v1/me/management-keys \
--cookie gpuk_session=<gpuk_session>

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
Allowed values: super_admin admin operator user
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
expires_at
required
Any of:
string format: date-time
last_used_at
required
Any of:
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"
}
}