GET /auth/api-keys/{id}
Get API Key details by ID, never return plaintext
API Key `bearerAuth` application/json
Responses
| Status | Description | Schema |
| 200 | API Key details | |
Referenced Schemas
dto.ApiKeyResponse
| Field | Type | Required | Example | Constraints | Description |
created_at |
string |
No |
2024-01-01T00:00:00Z |
|
|
environment |
string |
No |
live |
|
|
expires_at |
string |
No |
2025-01-15T00:00:00Z |
|
|
id |
string |
No |
01ARZ3NDEKTSV4RRFFQ69G5FAV |
|
|
ip_restrictions |
array of
See dto.ipRestrictionDTO |
No |
|
|
|
last_used_at |
string |
No |
2024-01-15T10:30:00Z |
|
|
last_used_ip |
string |
No |
192.168.1.100 |
|
|
name |
string |
No |
my-api-key |
|
|
scopes |
array of
string |
No |
['["read"', '"write"]'] |
|
|
status |
string |
No |
active |
|
|
tenant_id |
string |
No |
01ARZ3NDEKTSV4RRFFQ69G5FAV |
|
|
updated_at |
string |
No |
2024-06-15T12:00:00Z |
|
|
usage_count |
integer |
No |
42 |
|
|
user_id |
string |
No |
01ARZ3NDEKTSV4RRFFQ69G5FAV |
|
|
dto.ipRestrictionDTO
| Field | Type | Required | Example | Constraints | Description |
id |
string |
No |
|
|
|
label |
string |
No |
|
|
|
status |
string |
No |
|
|
|
value |
string |
No |
|
|
|
gitee_com_linmes_authms_micro-services_identity-service_internal_handler_dto.DataResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
data |
object |
No |
|
|
|
message |
string |
No |
|
|
|