The presenting key's own prefix, admin flag and scopes.
GET
/api/v1/keys/me
const url = 'https://api.utmelab.com/api/v1/keys/me';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
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://api.utmelab.com/api/v1/keys/me \ --header 'X-API-Key: <X-API-Key>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”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"}