> ## 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.

# Buscar contactos para flujos comerciales

> Busca contactos por nombre o correo con orden y paginación acotados, y devuelve sólo una proyección mínima.



## OpenAPI

````yaml /generated/specs/sales.json get /api/v1/sales/contacts
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/sales/contacts:
    get:
      tags:
        - Sales Contacts
      summary: Buscar contactos para flujos comerciales
      description: >-
        Busca contactos por nombre o correo con orden y paginación acotados, y
        devuelve sólo una proyección mínima.
      operationId: SalesContactSearchController_search
      parameters:
        - name: page
          required: false
          in: query
          schema:
            minimum: 1
            default: 1
            type: integer
        - name: limit
          required: false
          in: query
          schema:
            minimum: 1
            maximum: 100
            default: 20
            type: integer
        - name: search
          required: false
          in: query
          schema:
            type: string
            minLength: 1
            maxLength: 200
        - name: sort
          required: false
          in: query
          schema:
            default: created_at
            type: string
            enum:
              - created_at
              - contact_name
              - email
              - updated_at
        - name: order
          required: false
          in: query
          schema:
            default: desc
            type: string
            enum:
              - asc
              - desc
      responses:
        '200':
          description: Página de contactos con datos mínimos
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SalesContactSearchResponseDto'
      security:
        - bearerAuth: []
components:
  schemas:
    SalesContactSearchResponseDto:
      type: object
      properties:
        contacts:
          maxItems: 100
          type: array
          items:
            $ref: '#/components/schemas/SalesContactSearchItemResponseDto'
        pagination:
          $ref: '#/components/schemas/SalesContactSearchPaginationResponseDto'
      required:
        - contacts
        - pagination
    SalesContactSearchItemResponseDto:
      type: object
      properties:
        contact_id:
          type: string
          format: uuid
        name:
          type: string
          nullable: true
          maxLength: 100
        email:
          type: string
          nullable: true
          maxLength: 255
        phone:
          type: string
          nullable: true
          maxLength: 100
        position:
          type: string
          nullable: true
          maxLength: 255
      required:
        - contact_id
        - name
        - email
        - phone
        - position
    SalesContactSearchPaginationResponseDto:
      type: object
      properties:
        total:
          type: integer
          minimum: 0
        page:
          type: integer
          minimum: 1
        limit:
          type: integer
          minimum: 1
          maximum: 100
        total_pages:
          type: integer
          minimum: 0
        has_more:
          type: boolean
      required:
        - total
        - page
        - limit
        - total_pages
        - has_more
  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.