List Member API Keys
GET
/enterprise/v1/sub-accounts/{subAccountId}/api-keysReturns inference-key metadata only, not raw secrets or usage counters. For a key’s own spend and remaining budget use GET /v1/key authenticated with that inference key.
Authentication
MANAGEMENT / PROVISIONING key with tenant:keys:read.
Authorization: Bearer <CONTROL_KEY>
Any subAccountId must belong to the authenticated enterprise. hash is a metadata identifier, never a raw key.
Path parameters
subAccountIdstringrequired10-digit public member ID / 10 位成员编号
Response
HTTP 200; code: 200. Values below are illustrative; fields use camelCase.
codeinteger200
dataarraydata.hashstringdata.namestringdata.keyDisplaystringdata.workspaceCodestringdata.statusstringdata.allowedIpsarraydata.spendLimitnumberdata.limitResetstringdata.expiresAtstring | nulldata.createdAtstringErrors
Check both HTTP status and code; on failure inspect serviceCode, msg and traceId. Invalid credentials receive no data; missing scopes return API_KEY_SCOPE_DENIED. Cross-tenant resources are inaccessible. Acceptance or pending approval does not mean business completion.
¿Ha sido de ayuda?