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

# Criar Agendamento

> Cria um novo agendamento na conta autenticada.



## OpenAPI

````yaml /api-reference/openapi.json post /scheduling
openapi: 3.0.3
info:
  title: WavUps CRM API
  description: >-
    API pública da plataforma WavUps CRM — gerencie leads, produtos, categorias,
    atendimentos, agendamentos, conversas e pipelines de CRM.
  version: 1.0.0
servers:
  - url: https://crm.wavups.com/api/v1
    description: Servidor de produção
security:
  - Token: []
paths:
  /scheduling:
    post:
      tags:
        - Agendamentos
      summary: Criar Agendamento
      description: Cria um novo agendamento na conta autenticada.
      operationId: createScheduling
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateSchedulingBody'
      responses:
        '201':
          description: Agendamento criado com sucesso.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Scheduling'
        '500':
          $ref: '#/components/responses/Error500'
components:
  schemas:
    CreateSchedulingBody:
      type: object
      properties:
        leadId:
          type: string
          description: ID do lead vinculado ao agendamento.
        productId:
          type: string
          description: ID do produto vinculado ao agendamento.
        scheduledAt:
          type: string
          format: date-time
          description: Data e hora do agendamento (ISO 8601).
        status:
          type: string
          description: Status do agendamento.
        description:
          type: string
          description: Descricao ou observacoes do agendamento.
    Scheduling:
      type: object
      properties:
        id:
          type: string
        leadId:
          type: string
          nullable: true
        productId:
          type: string
          nullable: true
        scheduledAt:
          type: string
          format: date-time
          nullable: true
        status:
          type: string
        description:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
    ErrorMessage:
      type: object
      properties:
        error:
          type: string
          example: Recurso não encontrado.
  responses:
    Error500:
      description: Erro interno no servidor.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorMessage'
  securitySchemes:
    Token:
      type: apiKey
      in: header
      name: Token
      description: Token de autenticacao gerado na plataforma WavUps CRM.

````