> ## Documentation Index
> Fetch the complete documentation index at: https://docs.threetone.in/llms.txt
> Use this file to discover all available pages before exploring further.

# List analysis item versions

> List the published versions of an analysis item, newest first.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/convai/analysis-items/{analysis_item_id}/versions
openapi: 3.1.0
info:
  title: Threetone API
  description: >-
    APIs for the Threetone Agents Platform and shared workspace resources.
    Authenticate programmatic requests with an API key in the x-api-key header.
  version: '1.0'
servers:
  - url: https://api.threetone.in
    description: Production
security: []
paths:
  /v1/convai/analysis-items/{analysis_item_id}/versions:
    get:
      tags:
        - Agents Platform
      summary: List analysis item versions
      description: List the published versions of an analysis item, newest first.
      operationId: list_analysis_item_versions_route
      parameters:
        - name: analysis_item_id
          in: path
          required: true
          schema:
            type: string
            description: ID of the requested analysis item.
            title: Analysis Item Id
          description: ID of the requested analysis item.
        - name: page_size
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            description: >-
              How many documents to return at maximum. Can not exceed 100,
              defaults to 30.
            default: 30
            title: Page Size
          description: >-
            How many documents to return at maximum. Can not exceed 100,
            defaults to 30.
        - name: cursor
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Used for fetching next page. Cursor is returned in the response.
            title: Cursor
          description: Used for fetching next page. Cursor is returned in the response.
        - name: x-api-key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Your API key for programmatic access. Send it in the x-api-key
              header; you can create and manage keys from the Developers page.
            title: X-Api-Key
          description: >-
            Your API key for programmatic access. Send it in the x-api-key
            header; you can create and manage keys from the Developers page.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AnalysisItemVersionsResponseModel'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    AnalysisItemVersionsResponseModel:
      properties:
        versions:
          items:
            $ref: '#/components/schemas/AnalysisItemVersionResponseModel'
          type: array
          title: Versions
        current_version_id:
          type: string
          title: Current Version Id
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Cursor
        has_more:
          type: boolean
          title: Has More
      type: object
      required:
        - versions
        - current_version_id
        - has_more
      title: AnalysisItemVersionsResponseModel
      description: >-
        Published versions, newest first; current_version_id is the main that
        unpinned refs resolve to.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AnalysisItemVersionResponseModel:
      properties:
        id:
          type: string
          title: Id
        version_number:
          type: integer
          title: Version Number
        created_at_unix_secs:
          type: integer
          title: Created At Unix Secs
        definition:
          oneOf:
            - $ref: '#/components/schemas/UserEvaluationAnalysisItem'
            - $ref: '#/components/schemas/UserDataCollectionAnalysisItem'
          title: Definition
          discriminator:
            propertyName: kind
            mapping:
              data_collection: '#/components/schemas/UserDataCollectionAnalysisItem'
              evaluation: '#/components/schemas/UserEvaluationAnalysisItem'
      type: object
      required:
        - id
        - version_number
        - created_at_unix_secs
        - definition
      title: AnalysisItemVersionResponseModel
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    UserEvaluationAnalysisItem:
      properties:
        name:
          type: string
          title: Name
        source:
          type: string
          const: user
          title: Source
          default: user
        llm:
          anyOf:
            - $ref: '#/components/schemas/LLM'
            - type: 'null'
          description: >-
            LLM to use for this item. If unset, the attaching agent's
            analysis_llm default is used.
        kind:
          type: string
          const: evaluation
          title: Kind
          default: evaluation
        conversation_goal_prompt:
          type: string
          maxLength: 2000
          title: Conversation Goal Prompt
          description: The prompt used to evaluate the conversation.
        use_knowledge_base:
          type: boolean
          title: Use Knowledge Base
          description: >-
            Whether the attaching agent's knowledge base is used when evaluating
            this criterion.
          default: false
        scoring:
          oneOf:
            - $ref: '#/components/schemas/BinaryScoring'
            - $ref: '#/components/schemas/NumericUniformScoring'
          title: Scoring
          description: How this criterion is scored (binary or numeric_uniform).
          discriminator:
            propertyName: mode
            mapping:
              binary: '#/components/schemas/BinaryScoring'
              numeric_uniform: '#/components/schemas/NumericUniformScoring'
      type: object
      required:
        - name
        - conversation_goal_prompt
      title: UserEvaluationAnalysisItem
    UserDataCollectionAnalysisItem:
      properties:
        name:
          type: string
          title: Name
        source:
          type: string
          const: user
          title: Source
          default: user
        llm:
          anyOf:
            - $ref: '#/components/schemas/LLM'
            - type: 'null'
          description: >-
            LLM to use for this item. If unset, the attaching agent's
            analysis_llm default is used.
        kind:
          type: string
          const: data_collection
          title: Kind
          default: data_collection
        value_schema:
          $ref: '#/components/schemas/DataCollectionValueSchema'
          description: Type/description/enum describing the value to extract.
      type: object
      required:
        - name
        - value_schema
      title: UserDataCollectionAnalysisItem
    LLM:
      type: string
      enum:
        - gpt-4
        - gpt-5.1
        - gpt-5.2
        - gpt-5.2-chat-latest
        - gpt-5.4
        - gpt-5.4-mini
        - gpt-5.4-nano
        - gpt-5.5
        - gpt-5.6-sol
        - gpt-5.6-terra
        - gpt-5.6-luna
        - gpt-6-astra
        - gpt-6-sol
        - gpt-6-luna
        - gpt-6.1-sol
        - gpt-6.1-terra
        - gpt-6.2-astra
        - gpt-6.2-sol
        - gemini-1.5-pro
        - gemini-1.5-flash
        - gemini-2.5-flash-lite
        - gemini-2.5-flash
        - gemini-3-pro-preview
        - gemini-3-flash-preview
        - gemini-3.1-pro-preview
        - gemini-3.1-flash-lite-preview
        - gemini-3.1-flash-lite
        - gemini-3.5-flash
        - gemini-3.5-flash-lite
        - gemini-3.7-flash
        - gemini-3.8-flash
        - gemini-4-argon
        - gemini-4-hydrogen
        - gemini-4-neon
        - claude-opus-4-6
        - claude-opus-4-7
        - claude-opus-4-8
        - claude-opus-5
        - claude-opus-5-5
        - claude-sonnet-4-6
        - claude-sonnet-5
        - claude-sonnet-5-5
        - claude-haiku-4-5
        - claude-haiku-5-5
        - custom-llm
        - qwen3-4b
        - qwen3-30b-a3b
        - qwen36-35b-a3b
        - qwen35-397b-a17b
        - gpt-oss-20b
        - gpt-oss-120b
        - glm-45-air-fp8
        - glm-52
        - deepseek-v41-flash
        - nemotron-35-super-vl-nvfp4
        - gemini-2.5-flash-preview-09-2025
        - gemini-2.5-flash-lite-preview-09-2025
        - gemini-2.5-flash-preview-05-20
        - gemini-2.5-flash-preview-04-17
        - gemini-2.5-flash-lite-preview-06-17
        - gemini-1.5-flash-002
        - gemini-1.5-flash-001
        - gemini-1.5-pro-002
        - gemini-1.5-pro-001
        - claude-haiku-4-5@20251001
        - gpt-5.1-2025-11-13
        - gpt-5.2-2025-12-11
        - gpt-5.4-2026-03-05
        - gpt-5.4-mini-2026-03-17
        - gpt-5.4-nano-2026-03-17
        - gpt-5.5-2026-04-23
        - gpt-4-0613
        - gpt-4-0314
        - watt-tool-8b
        - watt-tool-70b
      title: LLM
    BinaryScoring:
      properties:
        mode:
          type: string
          const: binary
          title: Mode
          default: binary
      type: object
      title: BinaryScoring
    NumericUniformScoring:
      properties:
        mode:
          type: string
          const: numeric_uniform
          title: Mode
          default: numeric_uniform
        max_score:
          type: integer
          title: Max Score
        instructions:
          anyOf:
            - type: string
            - type: 'null'
          title: Instructions
      type: object
      required:
        - max_score
      title: NumericUniformScoring
    DataCollectionValueSchema:
      properties:
        type:
          anyOf:
            - type: string
              enum:
                - boolean
                - string
                - integer
                - number
            - items:
                type: string
              type: array
              maxItems: 2
              minItems: 2
          title: Type
        description:
          type: string
          title: Description
          description: >-
            The description of the property. When set, the LLM will provide the
            value based on this description. Mutually exclusive with
            dynamic_variable, is_system_provided, constant_value, and
            is_omitted.
          default: ''
        enum:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Enum
          description: List of allowed string values for string type parameters
        is_system_provided:
          type: boolean
          title: Is System Provided
          description: >-
            If true, the value will be populated by the system at runtime. Used
            by API Integration Webhook tools for templating. Mutually exclusive
            with description, dynamic_variable, constant_value, and is_omitted.
          default: false
        dynamic_variable:
          type: string
          title: Dynamic Variable
          description: >-
            The name of the dynamic variable to use for this property's value.
            Mutually exclusive with description, is_system_provided,
            constant_value, and is_omitted.
          default: ''
        allowed_values:
          anyOf:
            - $ref: '#/components/schemas/AllowedValues'
            - type: 'null'
          description: >-
            Server-side rejection guard for an LLM-provided value: the runtime
            rejects any value outside the permitted set this object names, and
            the set is not advertised to the LLM as an enum. Only supported when
            the value source is `description`; combining it with
            dynamic_variable, is_system_provided, constant_value, or is_omitted
            is rejected.
        constant_value:
          anyOf:
            - type: string
            - type: integer
            - type: number
            - type: boolean
            - type: 'null'
          title: Constant Value
          description: >-
            A constant value to use for this property. Mutually exclusive with
            description, dynamic_variable, is_system_provided, and is_omitted.
          default: ''
        is_omitted:
          type: boolean
          title: Is Omitted
          description: >-
            If true, this parameter will be completely omitted from the request.
            Only valid for optional parameters. Mutually exclusive with
            description, dynamic_variable, is_system_provided, and
            constant_value.
          default: false
      type: object
      required:
        - type
      title: DataCollectionValueSchema
      description: >-
        Schema property for literal JSON types. IMPORTANT: Only ONE of the
        following fields can be set: description (LLM provides value),
        dynamic_variable (value from variable), is_system_provided (system
        provides value), constant_value (fixed value), or is_omitted (parameter
        is omitted). These are mutually exclusive.
      example:
        description: A user-provided message
        type: string
    AllowedValues:
      properties:
        dynamic_variable:
          type: string
          minLength: 1
          title: Dynamic Variable
          description: >-
            Name of a dynamic variable that must resolve to a JSON array of
            permitted values, e.g. ["ws_alpha", "ws_beta"]. System variables
            work only if they resolve to a list.
      type: object
      required:
        - dynamic_variable
      title: AllowedValues

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.