{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/twilio/main/json-schema/twilio-autopilot-v1-assistant-query-schema.json", "title": "autopilot.v1.assistant.query", "x-generated": "2026-10-08", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/twilio-assistants-api-openapi.yml#/components/schemas/autopilot.v1.assistant.query", "type": "object", "properties": { "account_sid": { "type": [ "string", "null" ], "minLength": 34, "maxLength": 34, "pattern": "^AC[0-9a-fA-F]{32}$", "description": "The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Query resource." }, "date_created": { "type": [ "string", "null" ], "format": "date-time", "description": "The date and time in GMT when the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format." }, "date_updated": { "type": [ "string", "null" ], "format": "date-time", "description": "The date and time in GMT when the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format." }, "results": { "description": "The natural language analysis results that include the [Task](https://www.twilio.com/docs/autopilot/api/task) recognized and a list of identified [Fields](https://www.twilio.com/docs/autopilot/api/task-field)." }, "language": { "type": [ "string", "null" ], "description": "The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) string that specifies the language used by the Query. For example: `en-US`." }, "model_build_sid": { "type": [ "string", "null" ], "minLength": 34, "maxLength": 34, "pattern": "^UG[0-9a-fA-F]{32}$", "description": "The SID of the [Model Build](https://www.twilio.com/docs/autopilot/api/model-build) queried." }, "query": { "type": [ "string", "null" ], "description": "The end-user's natural language input.", "x-twilio": { "pii": { "handling": "standard", "deleteSla": 30 } } }, "sample_sid": { "type": [ "string", "null" ], "minLength": 34, "maxLength": 34, "pattern": "^UF[0-9a-fA-F]{32}$", "description": "The SID of an optional reference to the [Sample](https://www.twilio.com/docs/autopilot/api/task-sample) created from the query." }, "assistant_sid": { "type": [ "string", "null" ], "minLength": 34, "maxLength": 34, "pattern": "^UA[0-9a-fA-F]{32}$", "description": "The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource." }, "sid": { "type": [ "string", "null" ], "minLength": 34, "maxLength": 34, "pattern": "^UH[0-9a-fA-F]{32}$", "description": "The unique string that we created to identify the Query resource." }, "status": { "type": [ "string", "null" ], "description": "The status of the Query. Can be: `pending-review`, `reviewed`, or `discarded`" }, "url": { "type": [ "string", "null" ], "format": "uri", "description": "The absolute URL of the Query resource." }, "source_channel": { "type": [ "string", "null" ], "description": "The communication channel from where the end-user input came." }, "dialogue_sid": { "type": [ "string", "null" ], "minLength": 34, "maxLength": 34, "pattern": "^UK[0-9a-fA-F]{32}$", "description": "The SID of the [Dialogue](https://www.twilio.com/docs/autopilot/api/dialogue)." } } }