A AuthMS API Wiki API Reference iam.tianv.com →

POST /internal/identity/validate-key

Gateway/其他服务调用此接口验证 API Key 的有效性

API Key None application/json

Request Body

Schema: dto.ValidateKeyRequest

FieldTypeRequiredExampleConstraintsDescription
api_key string Yes

Responses

StatusDescriptionSchema
200验证成功dto.ValidateKeyResult
401Key 无效

Referenced Schemas

dto.ValidateKeyResult

FieldTypeRequiredExampleConstraintsDescription
ip_restrictions array of

See dto.ipRestrictionDTO

No
key_id string No
scopes array of

string

No
status string No
tenant_id string No
user_id string No

dto.ipRestrictionDTO

FieldTypeRequiredExampleConstraintsDescription
id string No
label string No
status string No
value string No