Answer which of the owner's agents and workflows use the model, so a delete confirm can name them
The owner's agents and workflows that name a custom model. If it is deleted, agents fall back to the default model and workflow steps set to it stop: {usage: {agents: [{id, name}], workflows: [{id, name}]}}. Anyone who may see the model: every member for a team's model, only its owner for a person's own. Args: model_id: The model's id.
Returns:
200 {success, usage}; 404 model_not_found to anyone who may not see the model.
Personal access token scope: models:read.
bearerAuthorizationBearer <token>A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).
model_id*stringSuccess
curl -X GET 'http://localhost:7091/api/user/models/string/usage'Get one BYOM custom model: the caller's own, or a team's they are in GET
Get one BYOM custom model: the caller's own, or a team's they are in. [Personal access token](/API/personal-access-tokens) scope: `models:read`.
GET /api/user/models GET
List the current user's BYOM custom models; with owner=team, the models of the team the workspace header names (any member) [Personal access token](/API/personal-access-tokens) scope: `models:read`.