Skip to Content
Docs

The instance task model, what runs when it is unset (TASK_MODEL_ID or the default), the built-ins

GET
/api/admin/defaults/models

task_model_id is null when none is stored or the stored one can't run; task_model_unavailable is then true for the latter, and a PUT with null clears it. task_model_error is {model_id, code, at} when the model that runs for members without a choice failed a draft because its provider refused the key (code model_auth), else null; a draft that works on it, or any PUT, clears it.

Not available to personal access tokens; call it from a signed-in session.

Authorization

bearer
headerAuthorizationBearer <token>

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

Response Body

Success

Example Request
curl -X GET 'http://localhost:7091/api/admin/defaults/models'
Example Response200
Empty