Skip to content

Get Api Key

GET
/api-keys/{key_id}
curl --request GET \
--url https://api.mengi.cloud/api-keys/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0

Get details of a specific API key.

key_id
required
Key Id
string format: uuid

Successful Response

Media typeapplication/json
APIKeyResponse
object
id
required
Id
string format: uuid
name
required
Name
string
description
required
Description
Any of:
string
key_prefix
required
Key Prefix
string
scopes
required
Scopes
Any of:
string
is_active
required
Is Active
boolean
last_used_at
required
Last Used At
Any of:
string format: date-time
last_used_ip
required
Last Used Ip
Any of:
string
expires_at
required
Expires At
Any of:
string format: date-time
created_at
required
Created At
string format: date-time
revoked_at
required
Revoked At
Any of:
string format: date-time

Example generated

{
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"name": "example",
"description": "example",
"key_prefix": "example",
"scopes": "example",
"is_active": true,
"last_used_at": "2026-04-15T12:00:00Z",
"last_used_ip": "example",
"expires_at": "2026-04-15T12:00:00Z",
"created_at": "2026-04-15T12:00:00Z",
"revoked_at": "2026-04-15T12:00:00Z"
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object

Example generated

{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}