POST /internal/identity/validate-key

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

API Key None application/json

请求体

Schema: service-identity/internal/handler/dto.ValidateKeyRequest

字段类型必填示例约束描述
api_key string 是

响应

状态描述Schema
200验证成功service-identity/internal/handler/dto.ValidateKeyResult
401Key 无效

引用的 Schema

service-identity/internal/handler/dto.ValidateKeyResult

字段类型必填示例约束描述
ip_restrictions array of

参见 service-identity/internal/handler/dto.ipRestrictionDTO

否
key_id string 否
scopes array of

string

否
status string 否
tenant_id string 否
user_id string 否

service-identity/internal/handler/dto.ipRestrictionDTO

字段类型必填示例约束描述
id string 否
label string 否
status string 否
value string 否