API Key Model Access
Get API Key Model Access Policy
Get an API key’s model access policy: mode (all_enabled or selected), allowed or excluded models, policy status, model counts, and who last updated it.
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
Path Parameters
Response Parameters
Policy status.
active means the policy is effective; no_available_models means no accessible model remains (for example, all selected models are offline).Identifier of the user who last updated the policy. Empty string for the default policy.
Last modified on November 11, 2026