Skip to Content
Docs

Answer which of the owner's agents and workflows use the model, so a delete confirm can name them

GET
/api/user/models/{model_id}/usage

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.

Authorization

bearer
headerAuthorizationBearer <token>

A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).

Path Parameters

model_id*string

Response Body

Success

Example Request
curl -X GET 'http://localhost:7091/api/user/models/string/usage'
Example Response200
Empty