GET
/organization/projects/{project_id}/model_permissionsRetrieve model permissions for a project
Retrieves the model permission policy for a project. Use project_id to identify the project whose model access policy you want to inspect. The response includes the policy mode and the model IDs it applies to.
project_idstringrequired
The ID of the project.
200Returns the project model permission policy, including its `allow_list` or `deny_list` mode and the model IDs in the policy.
objectstringrequired
The object type, which is always `project.model_permissions`.
modestringrequired
Whether the project uses an allowlist or a denylist.
model_idsarray<string>required
The model IDs included in the model permissions policy.
400Returned when the project is archived.
errorobjectrequired
403Returned when the caller does not have permission to perform this operation.
errorobjectrequired
Details about the permission error.
404Returned when the project or model permission settings were not found.
errorobjectrequired
429Returned when the management request rate is exceeded.
errorobjectrequired
Error handling
A 400 is returned when the project is archived. A 403 is returned when the caller lacks permission, a 404 when the project or its model permission settings are not found, and a 429 when the management request rate is exceeded. The project_id path parameter identifies the project.