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

# Listar Agendamentos

> Retorna os agendamentos da loja, com filtros e paginação.



## OpenAPI

````yaml GET /appointments
openapi: 3.1.0
info:
  title: Cordialy API
  description: >-
    API pública para integração com a plataforma Cordialy de atendimento via
    WhatsApp com IA.
  version: 1.0.0
  contact:
    email: suporte@cordialy.ai
servers:
  - url: https://api.cordialy.ai/integrations/v1
    description: Produção
security:
  - ApiKeyAuth: []
paths:
  /appointments:
    get:
      tags:
        - Agendamentos
      summary: Listar agendamentos
      description: Retorna os agendamentos da loja, com filtros e paginação.
      operationId: listAppointments
      parameters:
        - name: status
          in: query
          schema:
            type: string
            enum:
              - scheduled
              - done
              - cancelled
              - no_show
        - name: lead_id
          in: query
          schema:
            type: string
            format: uuid
        - name: from
          in: query
          description: Retorna agendamentos a partir desta data (ISO 8601)
          schema:
            type: string
            format: date-time
        - name: to
          in: query
          description: Retorna agendamentos até esta data (ISO 8601)
          schema:
            type: string
            format: date-time
        - $ref: '#/components/parameters/Page'
        - $ref: '#/components/parameters/Limit'
      responses:
        '200':
          description: Lista de agendamentos
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Appointment'
                  total:
                    type: integer
                  page:
                    type: integer
                  limit:
                    type: integer
components:
  parameters:
    Page:
      name: page
      in: query
      schema:
        type: integer
        default: 1
    Limit:
      name: limit
      in: query
      schema:
        type: integer
        default: 50
        maximum: 200
  schemas:
    Appointment:
      type: object
      properties:
        id:
          type: string
          format: uuid
        store_id:
          type: string
          format: uuid
        lead_id:
          type: string
          format: uuid
          nullable: true
        title:
          type: string
          description: Título/assunto do agendamento
        scheduled_at:
          type: string
          format: date-time
        duration_minutes:
          type: integer
        status:
          type: string
          enum:
            - scheduled
            - done
            - cancelled
            - no_show
        notes:
          type: string
          nullable: true
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Chave de API gerada na plataforma em Integrações → API Keys

````