Skip to content
Last updated

Auto model

Auto picks the model, the reasoning effort and the speed tier for every message sent with model: "auto", inside the rules an organisation sets. These endpoints read and change those rules, show who gets what, preview a rule, hold each person's own priority, explain a single reply's pick, and report what Auto spent.

Read Auto Model first: it explains the layers (organisation, departments, assistant, person, chat), what "enforced" and "people can choose" mean, and how a pick is made.

Availability

Every endpoint here sits behind the auto_model feature switch. While it is off for the caller's organisation, each one answers 404 with code AUTO_MODEL_NOT_ENABLED (error.details.feature is auto_model), so a client can hide the feature instead of treating it as a wrong address. Key on the code, not the message.

The organisation is the one in the path where there is one; otherwise the request's current organisation (the X-Organization-Id header, or the token's organisation).

Endpoints

Rules (organisation admins, assistant editors)

People

Analytics

In other endpoints

Objects

Error codes

CodeHTTPWhen
AUTO_MODEL_NOT_ENABLED404Auto is not switched on for the organisation
AUTO_MODEL_SCOPE_NOT_FOUND404The department, assistant or person is not in the organisation
AUTO_MODEL_RULE_INVALID422A rule's settings fail validation; details.field names the setting
AUTO_MODEL_MODEL_NOT_ALLOWED422A picked model the organisation or assistant does not allow; details.models lists them
AUTO_MODEL_EFFORT_RANGE_EMPTY422The effort range does not overlap the inherited one
AUTO_MODEL_LOOSENS_ENFORCED403An assistant editor tries to loosen an enforced limit or lock; details.locked_by names the layer
AUTO_MODEL_CHOICE_LOCKED409A person's or chat's priority while a rule decides it; details.locked_by, details.reason
AUTO_MODEL_PRIMARY_DEPARTMENT_INVALID422The member is not in that department
AUTO_MODEL_POOL_EMPTY422A turn with no model left; details.rule, details.why
AUTO_MODEL_ROUTE_NOT_FOUND404No Auto choice is recorded for that message (or it expired after 90 days)

Another organisation in the path answers the platform's 403 ORGANIZATION_ACCESS_DENIED, the same as every organisation endpoint.