Skip to main content
GET
Retrieve the current model access policy of a single API key. If the key has never been configured, the default policy (mode=all_enabled) is returned.
allowedModels / excludedModels may be returned as null or an empty array; callers should treat both as an empty array.

Permissions

The target API key must belong to the caller’s team.

Request Headers

Authorization
string
required
Bearer authentication format, for example: Bearer {{API Key}}.

Path Parameters

stringId
string
required
The stringId of the target API key.

Response Parameters

stringId
string
required
The stringId of the API key.
policy
object
required
The model access policy object.
policyStatus
string
required
Policy status. active means the policy is effective; no_available_models means no accessible model remains (for example, all selected models are offline).
allowedModelCount
int32
required
Number of accessible models.
excludedModelCount
int32
required
Number of excluded models.
updatedAt
int64
required
Last update time, as a Unix timestamp in seconds. 0 for the default policy.
updatedBy
string
required
Identifier of the user who last updated the policy. Empty string for the default policy.
Last modified on July 22, 2026