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

# Listar atividades

> Retorna uma lista paginada de atividades do workspace.

<Accordion title="Escopo necessário">
`activities:read`
</Accordion>



## OpenAPI

````yaml /pt/api-reference/openapi.json get /v1/activities
openapi: 3.1.0
info:
  title: OAuth 2.1
  description: Endpoints para registrar aplicativos e gerenciar tokens OAuth 2.1.
  version: 1.0.0
  contact:
    name: Suporte Vendaze
    email: suporte@vendaze.com
servers:
  - url: https://api.vendaze.com
    description: Produção
security:
  - bearerAuth: []
tags:
  - name: OAuth
  - name: Pessoas
  - name: Empresas
  - name: Negócios
  - name: Pipelines
  - name: Tarefas
  - name: Tipos de Tarefas
  - name: Atividades
  - name: Produtos
  - name: Tags
  - name: Listas
  - name: Campos Adicionais
  - name: Webhooks
paths:
  /v1/activities:
    get:
      tags:
        - Atividades
      summary: Listar atividades
      description: |-
        Retorna uma lista paginada de atividades do workspace.

        <Accordion title="Escopo necessário">
        `activities:read`
        </Accordion>
      operationId: listActivities
      parameters:
        - name: page
          in: query
          schema:
            type: integer
            minimum: 1
            default: 1
          description: Número da página.
        - name: per_page
          in: query
          schema:
            type: integer
            default: 50
            minimum: 1
            maximum: 100
          description: 'Quantidade de registros por página. Máximo: 100.'
        - name: order_by
          in: query
          schema:
            type: string
            enum:
              - created_at
              - updated_at
            default: created_at
          description: Campo de ordenação.
        - name: order
          in: query
          schema:
            type: string
            enum:
              - asc
              - desc
            default: desc
          description: Direção da ordenação.
        - name: entity
          in: query
          required: true
          schema:
            type: string
            enum:
              - people
              - companies
              - deals
          description: >-
            Tipo da entidade vinculada. Deve ser `people`, `companies` ou
            `deals`.
        - name: id
          in: query
          required: true
          schema:
            type: string
            format: uuid
          description: UUID da entidade informada em `entity`.
        - name: created_after
          in: query
          schema:
            type: string
            format: date-time
          description: Retorna atividades criadas a partir desta data ISO 8601.
        - name: created_before
          in: query
          schema:
            type: string
            format: date-time
          description: Retorna atividades criadas até esta data ISO 8601.
      responses:
        '200':
          description: Atividades retornadas com sucesso.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActivitiesListResponse'
              example:
                data:
                  - id: a1b2c3d4-e5f6-7890-abcd-ef1234567890
                    entity: people
                    entity_id: c3d4e5f6-a7b8-9012-cdef-123456789012
                    content_html: >-
                      <p>Reunião realizada. Cliente confirmou interesse no plano
                      Enterprise.</p>
                    attachments_count: 1
                    owner:
                      id: d4e5f6a7-b8c9-0123-defa-234567890123
                      name: João Silva
                      email: joao@empresa.com.br
                    created_at: '2026-06-01T10:30:00Z'
                    updated_at: '2026-06-01T10:30:00Z'
                meta:
                  total: 12
                  page: 1
                  per_page: 50
                  has_more: false
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/InsufficientScope'
        '422':
          $ref: '#/components/responses/ValidationError'
        '429':
          $ref: '#/components/responses/RateLimitExceeded'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  schemas:
    ActivitiesListResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/ActivitySummary'
        meta:
          $ref: '#/components/schemas/PaginationMeta'
    ActivitySummary:
      type: object
      description: >-
        Atividade retornada em respostas de listagem. Anexos representados
        apenas por contagem.
      properties:
        id:
          type: string
          format: uuid
          description: Identificador único da atividade.
        entity:
          type: string
          nullable: true
          enum:
            - people
            - companies
            - deals
          description: Tipo da entidade vinculada à atividade.
          example: people
        entity_id:
          type: string
          format: uuid
          nullable: true
          description: UUID da entidade vinculada.
          example: c3d4e5f6-a7b8-9012-cdef-123456789012
        content_html:
          type: string
          description: Conteúdo da atividade em HTML.
          example: >-
            <p>Reunião realizada. Cliente confirmou interesse no plano
            Enterprise.</p>
        attachments_count:
          type: integer
          description: Quantidade de arquivos anexados à atividade.
          example: 2
        owner:
          $ref: '#/components/schemas/Owner'
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
          nullable: true
    PaginationMeta:
      type: object
      properties:
        total:
          type: integer
          example: 1
        page:
          type: integer
          example: 1
        per_page:
          type: integer
          example: 50
        has_more:
          type: boolean
          example: false
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            request_id:
              type: string
              format: uuid
    ValidationErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: validation_error
            message:
              type: string
              example: Validation failed.
            fields:
              type: object
              additionalProperties:
                type: string
            request_id:
              type: string
              format: uuid
    Owner:
      type: object
      nullable: true
      description: >-
        Membro do workspace responsável pela atividade. `null` quando nenhum
        responsável está atribuído.
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
          example: João Silva
        email:
          type: string
          format: email
          example: joao@empresa.com.br
  responses:
    Unauthorized:
      description: >-
        Token ausente, inválido ou expirado. Códigos possíveis: `unauthorized`,
        `token_expired`.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              code: unauthorized
              message: Missing or invalid Authorization header.
              request_id: 550e8400-e29b-41d4-a716-446655440000
    InsufficientScope:
      description: 'Token sem o escopo necessário. Código de erro: `insufficient_scope`.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              code: insufficient_scope
              message: This endpoint requires the 'webhooks:read' scope.
              request_id: 550e8400-e29b-41d4-a716-446655440000
    ValidationError:
      description: >-
        Validação de entrada falhou. Código: `validation_error`. O objeto
        `fields` mapeia cada campo inválido para uma descrição do problema.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ValidationErrorResponse'
          example:
            error:
              code: validation_error
              message: Validation failed.
              fields:
                url: url must use HTTPS.
                events: At least one event is required.
              request_id: 550e8400-e29b-41d4-a716-446655440000
    RateLimitExceeded:
      description: 'Rate limit excedido. Código: `rate_limit_exceeded`.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              code: rate_limit_exceeded
              message: Rate limit exceeded. Try again in 60 seconds.
              request_id: 550e8400-e29b-41d4-a716-446655440000
    InternalError:
      description: 'Erro interno inesperado. Código: `internal_error`.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              code: internal_error
              message: An unexpected error occurred.
              request_id: 550e8400-e29b-41d4-a716-446655440000
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Access token OAuth 2.1.

````