Skip to navigation

Create a SystemOne request

Evaluates Noul, Choice and Score questions using a classification model. Image requests follow TypeSafe’s assets contract: PNG/JPEG files in an assets map, referenced literally in nested state, instructions or criterion values; object keys remain text. Each asset must be used. JSON uses format and data_base64; multipart places application/json request first and uses asset part names for file parts. Multipart part takes precedence over embedded data. The body limit is 32 MiB, each image is at most 16 MiB, each edge is 280–1568 pixels, and referenced encoded bytes total at most 32 MiB. Model token/page limits and configured gateway byte limits also apply. Boxes are unsupported. No output tokens are generated.

Authentication

AuthorizationBearer
Mixlayer API key or console user session supplied as a Bearer token.

Request

This endpoint expects an object.
modelstringRequired>=1 character

Classification model identifier; nonempty and at most 256 UTF-8 bytes.

questionsmap from strings to objectsRequired

Between 1 and 4096 questions. IDs must be nonblank and at most 256 UTF-8 bytes.

statestring or map from strings to any or list of anyRequired

State may be text, a JSON object or a JSON array; scalar numbers, booleans and null are rejected.

assetsmap from strings to objectsOptional
Images keyed by opaque literal references, substituted only in JSON values.

Response

Typed answers keyed by the supplied question IDs, with actual input token usage
answersmap from strings to objects
Exactly the question IDs supplied in the request, with matching answer types.
modelstring
usageobject
Actual forward input tokens count the shared prefix once plus every branch suffix.

Errors

400
Bad Request Error
401
Unauthorized Error
402
Payment Required Error
403
Forbidden Error
413
Content Too Large Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error