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

# Lista las tareas programadas de un negocio



## OpenAPI

````yaml /generated/specs/sales.json get /api/v1/opportunities/{opportunityId}/tasks
openapi: 3.0.0
info:
  title: Raul API - Ventas
  description: >-
    Cotizaciones, pipeline, outreach comercial, equipos cotizables y ventas de
    equipamiento.
  version: 2.0.0
  contact: {}
servers:
  - url: https://api.raul.ugps.io
    description: Production
security: []
tags: []
paths:
  /api/v1/opportunities/{opportunityId}/tasks:
    get:
      tags:
        - Opportunity Tasks
      summary: Lista las tareas programadas de un negocio
      operationId: OpportunityTasksController_list
      parameters:
        - name: opportunityId
          required: true
          in: path
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OpportunityTaskListResponseDto'
      security:
        - bearerAuth: []
components:
  schemas:
    OpportunityTaskListResponseDto:
      type: object
      properties:
        items:
          description: >-
            Abiertas por vencimiento más cercano (hasta 100); después las 20
            completadas más recientes
          type: array
          items:
            $ref: '#/components/schemas/OpportunityTaskResponseDto'
        activity_types:
          description: Tipos de actividad activos para programar una tarea
          type: array
          items:
            $ref: '#/components/schemas/OpportunityTaskRefDto'
      required:
        - items
        - activity_types
    OpportunityTaskResponseDto:
      type: object
      properties:
        task_id:
          type: string
          format: uuid
        description:
          type: string
        due_date:
          type: string
          format: date-time
        status:
          type: string
          enum:
            - pending
            - overdue
            - completed
        created_at:
          type: string
          format: date-time
        completed_at:
          type: string
          format: date-time
          nullable: true
        activity_type:
          nullable: true
          type: object
          allOf:
            - $ref: '#/components/schemas/OpportunityTaskRefDto'
        created_by:
          nullable: true
          type: object
          allOf:
            - $ref: '#/components/schemas/OpportunityTaskUserDto'
        assignee:
          nullable: true
          type: object
          allOf:
            - $ref: '#/components/schemas/OpportunityTaskUserDto'
        priority:
          type: string
          enum:
            - low
            - medium
            - high
          nullable: true
        version:
          type: number
          description: Versión para editar sin pisar cambios ajenos
      required:
        - task_id
        - description
        - due_date
        - status
        - created_at
        - completed_at
        - activity_type
        - created_by
        - assignee
        - priority
        - version
    OpportunityTaskRefDto:
      type: object
      properties:
        id:
          type: number
        name:
          type: string
      required:
        - id
        - name
    OpportunityTaskUserDto:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
      required:
        - id
        - name
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Token de sesión Better Auth para rutas de backoffice; las rutas de
        portal usan su token propio.

````

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