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

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

Path Parameters

string
requis
The stringId of the target API key.

Response Parameters

string
requis
The stringId of the API key.
object
requis
The model access policy object.
string
requis
Policy status. active means the policy is effective; no_available_models means no accessible model remains (for example, all selected models are offline).
int32
requis
Number of accessible models.
int32
requis
Number of excluded models.
int64
requis
Last update time, as a Unix timestamp in seconds. 0 for the default policy.
string
requis
Identifier of the user who last updated the policy. Empty string for the default policy.
Dernière modification le 10 août 2026