> ## 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 workspace tickets

> List agent issues across every agent in the workspace, ordered by most recently created first. Use this to build a workspace-wide view (for example, issues assigned to the caller). Supports the same filters, sorting and search as the per-agent endpoint. Issues for agents the caller cannot access are omitted.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/convai/triage-tickets
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/triage-tickets:
    get:
      summary: List workspace tickets
      description: >-
        List agent issues across every agent in the workspace, ordered by most
        recently created first. Use this to build a workspace-wide view (for
        example, issues assigned to the caller). Supports the same filters,
        sorting and search as the per-agent endpoint. Issues for agents the
        caller cannot access are omitted.
      operationId: list_workspace_conversation_tickets_route
      parameters:
        - name: page_size
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            description: How many agent issues to return. Can not exceed 100.
            default: 100
            title: Page Size
          description: How many agent issues to return. Can not exceed 100.
        - name: agent_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Only issues for this agent.
            title: Agent Id
          description: Only issues for this agent.
        - name: status
          in: query
          required: false
          schema:
            anyOf:
              - $ref: '#/components/schemas/AgentConversationTicketStatus'
              - type: 'null'
            description: Filter agent issues by status.
            title: Status
          description: Filter agent issues by status.
        - name: sources
          in: query
          required: false
          schema:
            anyOf:
              - type: array
                items:
                  $ref: '#/components/schemas/AgentConversationTicketSource'
              - type: 'null'
            description: >-
              Filter agent issues by how they were raised (qa, agent, manual).
              Repeat the parameter to filter by multiple sources.
            title: Sources
          description: >-
            Filter agent issues by how they were raised (qa, agent, manual).
            Repeat the parameter to filter by multiple sources.
        - name: priorities
          in: query
          required: false
          schema:
            anyOf:
              - type: array
                items:
                  $ref: '#/components/schemas/AgentConversationTicketPriority'
              - type: 'null'
            description: >-
              Filter agent issues by priority. Repeat the parameter to filter by
              multiple priorities.
            title: Priorities
          description: >-
            Filter agent issues by priority. Repeat the parameter to filter by
            multiple priorities.
        - name: sort_by
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/AgentConversationTicketSortBy'
            description: >-
              Order by most recently created, by priority (most urgent first,
              then most recently created), or by most recently reported (the
              newest report merged into the agent issue, else its creation).
            default: created_at
          description: >-
            Order by most recently created, by priority (most urgent first, then
            most recently created), or by most recently reported (the newest
            report merged into the agent issue, else its creation).
        - name: owner_user_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Filter agent issues by creator. Use 'agent' for agent-raised
              issues.
            title: Owner User Id
          description: Filter agent issues by creator. Use 'agent' for agent-raised issues.
        - name: assignee_user_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Filter agent issues by assignee. Use 'unassigned' for issues with
              no assignee.
            title: Assignee User Id
          description: >-
            Filter agent issues by assignee. Use 'unassigned' for issues with no
            assignee.
        - name: label
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter agent issues by an exact label.
            title: Label
          description: Filter agent issues by an exact label.
        - name: merged_into_ticket_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter agent issues merged into this issue.
            title: Merged Into Ticket Id
          description: Filter agent issues merged into this issue.
        - name: search
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                maxLength: 200
              - type: 'null'
            description: >-
              Case-insensitive free-text search across the agent issue's title,
              description, comments, and turn comments.
            title: Search
          description: >-
            Case-insensitive free-text search across the agent issue's title,
            description, comments, and turn comments.
        - 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/GetAgentConversationTicketsPageResponseModel
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    AgentConversationTicketStatus:
      type: string
      enum:
        - open
        - in_progress
        - resolved
        - cancelled
        - merged
      title: AgentConversationTicketStatus
    AgentConversationTicketSource:
      type: string
      enum:
        - qa
        - agent
        - manual
      title: AgentConversationTicketSource
    AgentConversationTicketPriority:
      type: string
      enum:
        - low
        - medium
        - high
        - urgent
      title: AgentConversationTicketPriority
    AgentConversationTicketSortBy:
      type: string
      enum:
        - created_at
        - priority
        - last_reported
      title: AgentConversationTicketSortBy
    GetAgentConversationTicketsPageResponseModel:
      properties:
        agent_conversation_tickets:
          items:
            $ref: '#/components/schemas/AgentConversationTicketResponseModel'
          type: array
          title: Agent Conversation Tickets
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Cursor
        has_more:
          type: boolean
          title: Has More
      type: object
      required:
        - agent_conversation_tickets
        - has_more
      title: GetAgentConversationTicketsPageResponseModel
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AgentConversationTicketResponseModel:
      properties:
        agentqa_ticket_id:
          type: string
          title: Agentqa Ticket Id
        workspace_id:
          type: string
          title: Workspace Id
        owner_user_id:
          type: string
          title: Owner User Id
        agent_id:
          type: string
          title: Agent Id
        needs_clustering:
          type: boolean
          title: Needs Clustering
        title:
          anyOf:
            - type: string
            - type: 'null'
          title: Title
          description: >-
            One-line headline for the agent issue. None only on issues created
            before titles existed.
        labels:
          items:
            type: string
          type: array
          title: Labels
        conversation_ids:
          items:
            type: string
          type: array
          title: Conversation Ids
        first_seen_unix_secs:
          anyOf:
            - type: integer
            - type: 'null'
          title: First Seen Unix Secs
        last_seen_unix_secs:
          anyOf:
            - type: integer
            - type: 'null'
          title: Last Seen Unix Secs
        qa_comment:
          anyOf:
            - type: string
            - type: 'null'
          title: Qa Comment
        ticket_comments:
          items:
            $ref: '#/components/schemas/TicketCommentResponseModel'
          type: array
          title: Ticket Comments
        turn_comments:
          items:
            $ref: '#/components/schemas/TurnCommentResponseModel'
          type: array
          title: Turn Comments
        status:
          $ref: '#/components/schemas/AgentConversationTicketStatus'
        priority:
          anyOf:
            - $ref: '#/components/schemas/AgentConversationTicketPriority'
            - type: 'null'
        priority_changes:
          items:
            $ref: '#/components/schemas/TicketPriorityChangeResponseModel'
          type: array
          title: Priority Changes
        status_changes:
          items:
            $ref: '#/components/schemas/TicketStatusChangeResponseModel'
          type: array
          title: Status Changes
        merged_into_ticket_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Merged Into Ticket Id
          description: >-
            The agent issue this one was merged into, set while its status is
            'merged'.
        source:
          $ref: '#/components/schemas/AgentConversationTicketSource'
        assignee_user_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Assignee User Id
        created_at_unix_secs:
          type: integer
          title: Created At Unix Secs
        updated_at_unix_secs:
          type: integer
          title: Updated At Unix Secs
        search_match:
          anyOf:
            - $ref: '#/components/schemas/TicketSearchMatchResponseModel'
            - type: 'null'
          description: Where the list's `search` query matched. Set only on searched lists.
      type: object
      required:
        - agentqa_ticket_id
        - workspace_id
        - owner_user_id
        - agent_id
        - needs_clustering
        - title
        - labels
        - conversation_ids
        - first_seen_unix_secs
        - last_seen_unix_secs
        - qa_comment
        - ticket_comments
        - turn_comments
        - status
        - priority
        - priority_changes
        - status_changes
        - source
        - assignee_user_id
        - created_at_unix_secs
        - updated_at_unix_secs
      title: AgentConversationTicketResponseModel
    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
    TicketCommentResponseModel:
      properties:
        comment:
          type: string
          title: Comment
        created_at_unix_secs:
          type: integer
          title: Created At Unix Secs
        owner_user_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Owner User Id
      type: object
      required:
        - comment
        - created_at_unix_secs
        - owner_user_id
      title: TicketCommentResponseModel
    TurnCommentResponseModel:
      properties:
        turn_index:
          type: integer
          title: Turn Index
        comment:
          type: string
          title: Comment
        created_at_unix_secs:
          type: integer
          title: Created At Unix Secs
        owner_user_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Owner User Id
      type: object
      required:
        - turn_index
        - comment
        - created_at_unix_secs
        - owner_user_id
      title: TurnCommentResponseModel
    TicketPriorityChangeResponseModel:
      properties:
        priority:
          anyOf:
            - $ref: '#/components/schemas/AgentConversationTicketPriority'
            - type: 'null'
        changed_by_user_id:
          type: string
          title: Changed By User Id
        changed_at_unix_secs:
          type: integer
          title: Changed At Unix Secs
      type: object
      required:
        - priority
        - changed_by_user_id
        - changed_at_unix_secs
      title: TicketPriorityChangeResponseModel
    TicketStatusChangeResponseModel:
      properties:
        status:
          $ref: '#/components/schemas/AgentConversationTicketStatus'
        changed_by_user_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Changed By User Id
        changed_at_unix_secs:
          type: integer
          title: Changed At Unix Secs
      type: object
      required:
        - status
        - changed_by_user_id
        - changed_at_unix_secs
      title: TicketStatusChangeResponseModel
    TicketSearchMatchResponseModel:
      properties:
        field:
          $ref: '#/components/schemas/TicketSearchMatchField'
          description: Which of the agent issue's texts matched.
        snippet:
          type: string
          title: Snippet
          description: >-
            Whitespace-collapsed excerpt around the match, with an ellipsis
            where it was cut.
        highlight_start:
          type: integer
          title: Highlight Start
          description: Offset of the match in `snippet`.
        highlight_end:
          type: integer
          title: Highlight End
          description: Exclusive end offset of the match in `snippet`.
        turn_index:
          anyOf:
            - type: integer
            - type: 'null'
          title: Turn Index
          description: The commented turn, set when `field` is 'turn_comment'.
      type: object
      required:
        - field
        - snippet
        - highlight_start
        - highlight_end
      title: TicketSearchMatchResponseModel
    TicketSearchMatchField:
      type: string
      enum:
        - title
        - description
        - comment
        - turn_comment
      title: TicketSearchMatchField

````

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