Skip to content

The presenting key's own prefix, admin flag and scopes.

GET
/api/v1/keys/me
curl --request GET \
--url https://api.utmelab.com/api/v1/keys/me \
--header 'X-API-Key: <X-API-Key>'
Media typeapplication/json

The caller’s own key, as the key itself may see it. No hashes, no secrets, no other keys, safe to hand to whoever presented it.

object
admin
required
boolean
prefix
required
string
scopes
required
Array<string>

Example generated

{
"admin": true,
"prefix": "example",
"scopes": [
"example"
]
}

An API key is missing or invalid.

Media typeapplication/json

Stable body returned by HTTP error responses.

object
code
required
string
error
required
string

Example generated

{
"code": "example",
"error": "example"
}

The API key lacks the required scope.

Media typeapplication/json

Stable body returned by HTTP error responses.

object
code
required
string
error
required
string

Example generated

{
"code": "example",
"error": "example"
}

The caller has exceeded the applicable rate limit.

Media typeapplication/json

Stable body returned by HTTP error responses.

object
code
required
string
error
required
string

Example generated

{
"code": "example",
"error": "example"
}

The API is temporarily unavailable.

Media typeapplication/json

Stable body returned by HTTP error responses.

object
code
required
string
error
required
string

Example generated

{
"code": "example",
"error": "example"
}