Twilio Assistants API

The Assistants API from Twilio — 24 operation(s) for assistants.

Documentation

Specifications

Other Resources

OpenAPI Specification

twilio-assistants-api-openapi.yml Raw ↑
openapi: 3.0.1
info:
  title: Twilio - Accounts A2p Assistants API
  description: This is the public Twilio REST API.
  termsOfService: https://www.twilio.com/legal/tos
  contact:
    name: Twilio Support
    url: https://support.twilio.com
    email: support@twilio.com
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
  version: 1.52.0
servers:
- url: https://accounts.twilio.com
tags:
- name: Assistants
paths:
  /v1/Assistants/{Sid}:
    servers:
    - url: https://autopilot.twilio.com
    description: 'TODO: Resource-level docs'
    x-twilio:
      defaultOutputProperties:
      - sid
      - unique_name
      - friendly_name
      pathType: instance
      dependentProperties:
        field_types:
          mapping:
            assistant_sid: sid
          resource_url: /v1/Assistants/{assistant_sid}/FieldTypes
        tasks:
          mapping:
            assistant_sid: sid
          resource_url: /v1/Assistants/{assistant_sid}/Tasks
        model_builds:
          mapping:
            assistant_sid: sid
          resource_url: /v1/Assistants/{assistant_sid}/ModelBuilds
        queries:
          mapping:
            assistant_sid: sid
          resource_url: /v1/Assistants/{assistant_sid}/Queries
        style_sheet:
          mapping:
            assistant_sid: sid
          resource_url: /v1None
        defaults:
          mapping:
            assistant_sid: sid
          resource_url: /v1None
        dialogues:
          mapping:
            assistant_sid: sid
          resource_url: /v1/Assistants/{assistant_sid}/Dialogues
        webhooks:
          mapping:
            assistant_sid: sid
          resource_url: /v1/Assistants/{assistant_sid}/Webhooks
    get:
      description: ''
      tags:
      - Assistants
      parameters:
      - name: Sid
        in: path
        description: The Twilio-provided string that uniquely identifies the Assistant resource to fetch.
        schema:
          type: string
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/autopilot.v1.assistant'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: FetchAssistant
      x-maturity:
      - Preview
    post:
      description: ''
      tags:
      - Assistants
      parameters:
      - name: Sid
        in: path
        description: The Twilio-provided string that uniquely identifies the Assistant resource to update.
        schema:
          type: string
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/autopilot.v1.assistant'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: UpdateAssistant
      x-maturity:
      - Preview
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/UpdateAssistantRequest'
    delete:
      description: ''
      tags:
      - Assistants
      parameters:
      - name: Sid
        in: path
        description: The Twilio-provided string that uniquely identifies the Assistant resource to delete.
        schema:
          type: string
        required: true
      responses:
        '204':
          description: The resource was deleted successfully.
      security:
      - accountSid_authToken: []
      operationId: DeleteAssistant
      x-maturity:
      - Preview
  /v1/Assistants:
    servers:
    - url: https://autopilot.twilio.com
    description: 'TODO: Resource-level docs'
    x-twilio:
      defaultOutputProperties:
      - sid
      - unique_name
      - friendly_name
      pathType: list
      dependentProperties:
        field_types:
          mapping:
            assistant_sid: sid
          resource_url: /v1/Assistants/{assistant_sid}/FieldTypes
        tasks:
          mapping:
            assistant_sid: sid
          resource_url: /v1/Assistants/{assistant_sid}/Tasks
        model_builds:
          mapping:
            assistant_sid: sid
          resource_url: /v1/Assistants/{assistant_sid}/ModelBuilds
        queries:
          mapping:
            assistant_sid: sid
          resource_url: /v1/Assistants/{assistant_sid}/Queries
        style_sheet:
          mapping:
            assistant_sid: sid
          resource_url: /v1None
        defaults:
          mapping:
            assistant_sid: sid
          resource_url: /v1None
        dialogues:
          mapping:
            assistant_sid: sid
          resource_url: /v1/Assistants/{assistant_sid}/Dialogues
        webhooks:
          mapping:
            assistant_sid: sid
          resource_url: /v1/Assistants/{assistant_sid}/Webhooks
    get:
      description: ''
      tags:
      - Assistants
      parameters:
      - name: PageSize
        in: query
        description: How many resources to return in each list page. The default is 50, and the maximum is 1000.
        schema:
          type: integer
          minimum: 1
          maximum: 1000
      - name: Page
        in: query
        description: The page index. This value is simply for client state.
        schema:
          type: integer
          minimum: 0
      - name: PageToken
        in: query
        description: The page token. This is provided by the API.
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListAssistantResponse'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: ListAssistant
      x-maturity:
      - Preview
    post:
      description: ''
      tags:
      - Assistants
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/autopilot.v1.assistant'
          description: Created
      security:
      - accountSid_authToken: []
      operationId: CreateAssistant
      x-maturity:
      - Preview
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/CreateAssistantRequest'
  /v1/Assistants/{AssistantSid}/Defaults:
    servers:
    - url: https://autopilot.twilio.com
    description: 'TODO: Resource-level docs'
    x-twilio:
      defaultOutputProperties:
      - data
      pathType: instance
      parent: /Assistants/{Sid}
      className: defaults
    get:
      description: ''
      tags:
      - Assistants
      parameters:
      - name: AssistantSid
        in: path
        description: The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch.
        schema:
          type: string
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/autopilot.v1.assistant.defaults'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: FetchDefaults
      x-maturity:
      - Preview
    post:
      description: ''
      tags:
      - Assistants
      parameters:
      - name: AssistantSid
        in: path
        description: The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to update.
        schema:
          type: string
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/autopilot.v1.assistant.defaults'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: UpdateDefaults
      x-maturity:
      - Preview
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/UpdateDefaultsRequest'
  /v1/Assistants/{AssistantSid}/Dialogues/{Sid}:
    servers:
    - url: https://autopilot.twilio.com
    description: 'TODO: Resource-level docs'
    x-twilio:
      defaultOutputProperties:
      - sid
      - data
      pathType: instance
      parent: /Assistants/{Sid}
    get:
      description: ''
      tags:
      - Assistants
      parameters:
      - name: AssistantSid
        in: path
        description: The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch.
        schema:
          type: string
        required: true
      - name: Sid
        in: path
        description: The Twilio-provided string that uniquely identifies the Dialogue resource to fetch.
        schema:
          type: string
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/autopilot.v1.assistant.dialogue'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: FetchDialogue
      x-maturity:
      - Preview
  /v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields/{Sid}:
    servers:
    - url: https://autopilot.twilio.com
    description: 'TODO: Resource-level docs'
    x-twilio:
      defaultOutputProperties:
      - sid
      - unique_name
      - field_type
      pathType: instance
      parent: /Assistants/{AssistantSid}/Tasks/{Sid}
    get:
      description: ''
      tags:
      - Assistants
      parameters:
      - name: AssistantSid
        in: path
        description: The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resource to fetch.
        schema:
          type: string
        required: true
      - name: TaskSid
        in: path
        description: The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) resource associated with the Field resource to fetch.
        schema:
          type: string
        required: true
      - name: Sid
        in: path
        description: The Twilio-provided string that uniquely identifies the Field resource to fetch.
        schema:
          type: string
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/autopilot.v1.assistant.task.field'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: FetchField
      x-maturity:
      - Preview
    delete:
      description: ''
      tags:
      - Assistants
      parameters:
      - name: AssistantSid
        in: path
        description: The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resources to delete.
        schema:
          type: string
        required: true
      - name: TaskSid
        in: path
        description: The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) resource associated with the Field resource to delete.
        schema:
          type: string
        required: true
      - name: Sid
        in: path
        description: The Twilio-provided string that uniquely identifies the Field resource to delete.
        schema:
          type: string
        required: true
      responses:
        '204':
          description: The resource was deleted successfully.
      security:
      - accountSid_authToken: []
      operationId: DeleteField
      x-maturity:
      - Preview
  /v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields:
    servers:
    - url: https://autopilot.twilio.com
    description: 'TODO: Resource-level docs'
    x-twilio:
      defaultOutputProperties:
      - sid
      - unique_name
      - field_type
      pathType: list
      parent: /Assistants/{AssistantSid}/Tasks/{Sid}
    get:
      description: ''
      tags:
      - Assistants
      parameters:
      - name: AssistantSid
        in: path
        description: The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resources to read.
        schema:
          type: string
        required: true
      - name: TaskSid
        in: path
        description: The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) resource associated with the Field resources to read.
        schema:
          type: string
        required: true
      - name: PageSize
        in: query
        description: How many resources to return in each list page. The default is 50, and the maximum is 1000.
        schema:
          type: integer
          minimum: 1
          maximum: 1000
      - name: Page
        in: query
        description: The page index. This value is simply for client state.
        schema:
          type: integer
          minimum: 0
      - name: PageToken
        in: query
        description: The page token. This is provided by the API.
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListFieldResponse'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: ListField
      x-maturity:
      - Preview
    post:
      description: ''
      tags:
      - Assistants
      parameters:
      - name: AssistantSid
        in: path
        description: The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the new resource.
        schema:
          type: string
        required: true
      - name: TaskSid
        in: path
        description: The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) resource associated with the new Field resource.
        schema:
          type: string
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/autopilot.v1.assistant.task.field'
          description: Created
      security:
      - accountSid_authToken: []
      operationId: CreateField
      x-maturity:
      - Preview
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              required:
              - FieldType
              - UniqueName
              $ref: '#/components/schemas/CreateFieldRequest'
  /v1/Assistants/{AssistantSid}/FieldTypes/{Sid}:
    servers:
    - url: https://autopilot.twilio.com
    description: 'TODO: Resource-level docs'
    x-twilio:
      defaultOutputProperties:
      - sid
      - unique_name
      - friendly_name
      pathType: instance
      dependentProperties:
        field_values:
          mapping:
            assistant_sid: assistant_sid
            field_type_sid: sid
          resource_url: /v1/Assistants/{assistant_sid}/FieldTypes/{field_type_sid}/FieldValues
      parent: /Assistants/{Sid}
    get:
      description: ''
      tags:
      - Assistants
      parameters:
      - name: AssistantSid
        in: path
        description: The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch.
        schema:
          type: string
        required: true
      - name: Sid
        in: path
        description: The Twilio-provided string that uniquely identifies the FieldType resource to fetch.
        schema:
          type: string
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/autopilot.v1.assistant.field_type'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: FetchFieldType
      x-maturity:
      - Preview
    post:
      description: ''
      tags:
      - Assistants
      parameters:
      - name: AssistantSid
        in: path
        description: The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the to update.
        schema:
          type: string
        required: true
      - name: Sid
        in: path
        description: The Twilio-provided string that uniquely identifies the FieldType resource to update.
        schema:
          type: string
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/autopilot.v1.assistant.field_type'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: UpdateFieldType
      x-maturity:
      - Preview
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/UpdateFieldTypeRequest'
    delete:
      description: ''
      tags:
      - Assistants
      parameters:
      - name: AssistantSid
        in: path
        description: The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to delete.
        schema:
          type: string
        required: true
      - name: Sid
        in: path
        description: The Twilio-provided string that uniquely identifies the FieldType resource to delete.
        schema:
          type: string
        required: true
      responses:
        '204':
          description: The resource was deleted successfully.
      security:
      - accountSid_authToken: []
      operationId: DeleteFieldType
      x-maturity:
      - Preview
  /v1/Assistants/{AssistantSid}/FieldTypes:
    servers:
    - url: https://autopilot.twilio.com
    description: 'TODO: Resource-level docs'
    x-twilio:
      defaultOutputProperties:
      - sid
      - unique_name
      - friendly_name
      pathType: list
      dependentProperties:
        field_values:
          mapping:
            assistant_sid: assistant_sid
            field_type_sid: sid
          resource_url: /v1/Assistants/{assistant_sid}/FieldTypes/{field_type_sid}/FieldValues
      parent: /Assistants/{Sid}
    get:
      description: ''
      tags:
      - Assistants
      parameters:
      - name: AssistantSid
        in: path
        description: The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to read.
        schema:
          type: string
        required: true
      - name: PageSize
        in: query
        description: How many resources to return in each list page. The default is 50, and the maximum is 1000.
        schema:
          type: integer
          minimum: 1
          maximum: 1000
      - name: Page
        in: query
        description: The page index. This value is simply for client state.
        schema:
          type: integer
          minimum: 0
      - name: PageToken
        in: query
        description: The page token. This is provided by the API.
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListFieldTypeResponse'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: ListFieldType
      x-maturity:
      - Preview
    post:
      description: ''
      tags:
      - Assistants
      parameters:
      - name: AssistantSid
        in: path
        description: The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the new resource.
        schema:
          type: string
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/autopilot.v1.assistant.field_type'
          description: Created
      security:
      - accountSid_authToken: []
      operationId: CreateFieldType
      x-maturity:
      - Preview
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              required:
              - UniqueName
              $ref: '#/components/schemas/CreateFieldTypeRequest'
  /v1/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues/{Sid}:
    servers:
    - url: https://autopilot.twilio.com
    description: 'TODO: Resource-level docs'
    x-twilio:
      defaultOutputProperties:
      - sid
      - value
      - language
      pathType: instance
      parent: /Assistants/{AssistantSid}/FieldTypes/{Sid}
    get:
      description: ''
      tags:
      - Assistants
      parameters:
      - name: AssistantSid
        in: path
        description: The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the FieldType associated with the resource to fetch.
        schema:
          type: string
        required: true
      - name: FieldTypeSid
        in: path
        description: The SID of the Field Type associated with the Field Value to fetch.
        schema:
          type: string
        required: true
      - name: Sid
        in: path
        description: The Twilio-provided string that uniquely identifies the FieldValue resource to fetch.
        schema:
          type: string
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/autopilot.v1.assistant.field_type.field_value'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: FetchFieldValue
      x-maturity:
      - Preview
    delete:
      description: ''
      tags:
      - Assistants
      parameters:
      - name: AssistantSid
        in: path
        description: The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the FieldType associated with the resources to delete.
        schema:
          type: string
        required: true
      - name: FieldTypeSid
        in: path
        description: The SID of the Field Type associated with the Field Value to delete.
        schema:
          type: string
        required: true
      - name: Sid
        in: path
        description: The Twilio-provided string that uniquely identifies the FieldValue resource to delete.
        schema:
          type: string
        required: true
      responses:
        '204':
          description: The resource was deleted successfully.
      security:
      - accountSid_authToken: []
      operationId: DeleteFieldValue
      x-maturity:
      - Preview
  /v1/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues:
    servers:
    - url: https://autopilot.twilio.com
    description: 'TODO: Resource-level docs'
    x-twilio:
      defaultOutputProperties:
      - sid
      - value
      - language
      pathType: list
      parent: /Assistants/{AssistantSid}/FieldTypes/{Sid}
    get:
      description: ''
      tags:
      - Assistants
      parameters:
      - name: AssistantSid
        in: path
        description: The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the FieldType associated with the resources to read.
        schema:
          type: string
        required: true
      - name: FieldTypeSid
        in: path
        description: The SID of the Field Type associated with the Field Value to read.
        schema:
          type: string
        required: true
      - name: Language
        in: query
        description: 'The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) tag that specifies the language of the value. Currently supported tags: `en-US`'
        schema:
          type: string
      - name: PageSize
        in: query
        description: How many resources to return in each list page. The default is 50, and the maximum is 1000.
        schema:
          type: integer
          minimum: 1
          maximum: 1000
      - name: Page
        in: query
        description: The page index. This value is simply for client state.
        schema:
          type: integer
          minimum: 0
      - name: PageToken
        in: query
        description: The page token. This is provided by the API.
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListFieldValueResponse'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: ListFieldValue
      x-maturity:
      - Preview
    post:
      description: ''
      tags:
      - Assistants
      parameters:
      - name: AssistantSid
        in: path
        description: The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the FieldType associated with the new resource.
        schema:
          type: string
        required: true
      - name: FieldTypeSid
        in: path
        description: The SID of the Field Type associated with the Field Value.
        schema:
          type: string
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/autopilot.v1.assistant.field_type.field_value'
          description: Created
      security:
      - accountSid_authToken: []
      operationId: CreateFieldValue
      x-maturity:
      - Preview
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              required:
              - Language
              - Value
              $ref: '#/components/schemas/CreateFieldValueRequest'
  /v1/Assistants/{AssistantSid}/ModelBuilds/{Sid}:
    servers:
    - url: https://autopilot.twilio.com
    description: 'TODO: Resource-level docs'
    x-twilio:
      defaultOutputProperties:
      - sid
      - unique_name
      - status
      - date_created
      pathType: instance
      parent: /Assistants/{Sid}
    get:
      description: ''
      tags:
      - Assistants
      parameters:
      - name: AssistantSid
        in: path
        description: The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch.
        schema:
          type: string
        required: true
      - name: Sid
        in: path
        description: The Twilio-provided string that uniquely identifies the ModelBuild resource to fetch.
        schema:
          type: string
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/autopilot.v1.assistant.model_build'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: FetchModelBuild
      x-maturity:
      - Preview
    post:
      description: ''
      tags:
      - Assistants
      parameters:
      - name: AssistantSid
        in: path
        description: The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to update.
        schema:
          type: string
        required: true
      - name: Sid
        in: path
        description: The Twilio-provided string that uniquely identifies the ModelBuild resource to update.
        schema:
          type: string
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/autopilot.v1.assistant.model_build'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: UpdateModelBuild
      x-maturity:
      - Preview
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/UpdateModelBuildRequest'
    delete:
      description: ''
      tags:
      - Assistants
      parameters:
      - name: AssistantSid
        in: path
        description: The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to delete.
        schema:
          type: string
        required: true
      - name: Sid
        in: path
        description: The Twilio-provided string that uniquely identifies the ModelBuild resource to delete.
        schema:
          type: string
        required: true
      responses:
        '204':
          description: The resource was deleted successfully.
      security:
      - accountSid_authToken: []
      operationId: DeleteModelBuild
      x-maturity:
      - Preview
  /v1/Assistants/{AssistantSid}/ModelBuilds:
    servers:
    - url: https://autopilot.twilio.com
    description: 'TODO: Resource-level docs'
    x-twilio:
      defaultOutputProperties:
      - sid
      - unique_name
      - status
      - date_created
      pathType: list
      parent: /Assistants/{Sid}
    get:
      description: ''
      tags:
      - Assistants
      parameters:
      - name: AssistantSid
        in: path
        description: The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to read.
        schema:
          type: string
        required: true
      - name: PageSize
        in: query
        description: How many resources to return in each list page. The default is 50, and the maximum is 1000.
        schema:
          type: integer
          minimum: 1
          maximum: 1000
      - name: Page
        in: query
        description: The page index. This value is simply for client state.
        schema:
          type: integer
          minimum: 0
      - name: PageToken
        in: query
        description: The page token. This is provided by the API.
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListModelBuildResponse'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: ListModelBuild
      x-maturity:
      - Preview
    post:
      description: ''
      tags:
      - Assistants
      parameters:
      - name: AssistantSid
        in: path
        description: The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the new resource.
        schema:
          type: string
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/autopilot.v1.assistant.model_build'
          description: Created
      security:
      - accountSid_authToken: []
      operationId: CreateModelBuild
      x-maturity:
      - Preview
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/CreateModelBuildRequest'
  /v1/Assistants/{AssistantSid}/Queries/{Sid}:
    servers:
    - url: https://autopilot.twilio.com
    description: 'TODO: Resource-level docs'
    x-twilio:
      defaultOutputProperties:
      - sid
      - query
      - status
      - language
      pathType: instance
      parent: /Assistants/{Sid}
    get:
      description: ''
      tags:
      - Assistants
      parameters:
      - name: AssistantSid
        in: path
        description: The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch.
        schema:
          type: string
        required: true
      - name: Sid
        in: path
        description: The Twilio-provided string that uniquely identifies the Query resource to fetch.
        schema:
          type: string
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/autopilot.v1.assistant.query'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: FetchQuery
      x-maturity:
      - Preview
    post:
      description: ''
      tags:
      - Assistants
      parameters:
      - name: AssistantSid
        in: path
        description: The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the paren

# --- truncated at 32 KB (112 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/twilio/refs/heads/main/openapi/twilio-assistants-api-openapi.yml