{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/benchling/main/json-schema/benchling-app-session-create-schema.json", "title": "AppSessionCreate", "x-generated": "2026-10-12", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/benchling-apps-api-openapi.yml#/components/schemas/AppSessionCreate", "additionalProperties": false, "properties": { "appId": { "type": "string" }, "messages": { "default": [], "description": "An array of `SessionMessage` describing the current session state.\n", "items": { "$ref": "#/$defs/AppSessionMessageCreate" }, "type": "array" }, "name": { "description": "The name of the session. Length must be between 3-100 chars. Value is required and immutable once set.", "maxLength": 100, "minLength": 3, "type": "string" }, "timeoutSeconds": { "description": "Timeout in seconds, a value between 1 second and 30 days. Once set, it can only be increased, not decreased.\n", "maximum": 2592000, "minimum": 1, "type": "integer" } }, "required": [ "appId", "name", "timeoutSeconds" ], "type": "object", "$defs": { "AppSessionMessageCreate": { "additionalProperties": false, "properties": { "content": { "description": "A message string, to be rendered as plain text with Benchling chips. References to Benchling items (up to 10 per msg) will be rendered as chips in the Benchling UX. A valid reference is a Benchling API id, prefixed with \"id:\" and contained by braces. For example: \"{id:ent_a0SApq3}.\"", "maxLength": 200, "minLength": 3, "type": "string" }, "style": { "$ref": "#/$defs/AppSessionMessageStyle" } }, "required": [ "content" ], "type": "object" }, "AppSessionMessageStyle": { "default": "NONE", "enum": [ "ERROR", "INFO", "NONE", "SUCCESS", "WARNING" ], "type": "string" } } }