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

# Agenda Create Session

> Manually create one session (the console counterpart of WhatsApp booking).



## OpenAPI

````yaml /openapi.json post /api/v1/agenda/sessions
openapi: 3.1.0
info:
  description: >-
    Especificación pública de la API de ViVi. Incluye solo los endpoints del
    dominio de la práctica: agenda, pacientes, conversaciones, clínica y cuenta.
  title: ViVi
  version: 0.1.0
servers:
  - url: https://api.holavivi.app
security: []
tags:
  - name: Agenda
  - name: Pacientes
  - name: Conversaciones
  - name: Clínica
  - name: Cuenta y panel
paths:
  /api/v1/agenda/sessions:
    post:
      tags:
        - Agenda
      summary: Agenda Create Session
      description: >-
        Manually create one session (the console counterpart of WhatsApp
        booking).
      operationId: agenda_create_session_api_v1_agenda_sessions_post
      parameters:
        - in: header
          name: Idempotency-Key
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Idempotency-Key
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SessionCreate'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema: {}
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - BearerAuth: []
components:
  schemas:
    SessionCreate:
      properties:
        address:
          anyOf:
            - $ref: '#/components/schemas/AppointmentAddress'
            - type: 'null'
        appointment_type_id:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
          title: Appointment Type Id
        booking_options:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Booking Options
        currency:
          anyOf:
            - pattern: ^[A-Z]{3}$
              type: string
            - type: 'null'
          title: Currency
        location:
          anyOf:
            - maxLength: 500
              type: string
            - type: 'null'
          title: Location
        meet_policy:
          default: inherit
          enum:
            - inherit
            - enabled
            - disabled
          title: Meet Policy
          type: string
        modality:
          default: in_person
          enum:
            - in_person
            - virtual
          title: Modality
          type: string
        override_conflict:
          default: false
          title: Override Conflict
          type: boolean
        override_reason:
          anyOf:
            - maxLength: 500
              type: string
            - type: 'null'
          title: Override Reason
        patient_id:
          format: uuid
          title: Patient Id
          type: string
        room_id:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
          title: Room Id
        session_minutes:
          anyOf:
            - maximum: 240
              minimum: 15
              type: integer
            - type: 'null'
          title: Session Minutes
        starts_at:
          format: date-time
          title: Starts At
          type: string
      required:
        - patient_id
        - starts_at
      title: SessionCreate
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    AppointmentAddress:
      properties:
        city:
          maxLength: 100
          minLength: 1
          title: City
          type: string
        country:
          maxLength: 80
          minLength: 1
          title: Country
          type: string
        line1:
          maxLength: 140
          minLength: 1
          title: Line1
          type: string
        line2:
          default: ''
          maxLength: 100
          title: Line2
          type: string
        postal_code:
          default: ''
          maxLength: 24
          title: Postal Code
          type: string
      required:
        - line1
        - city
        - country
      title: AppointmentAddress
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    BearerAuth:
      description: >-
        La credencial de sesión del consultorio o del paciente, o una clave API
        del consultorio, como token Bearer.
      scheme: bearer
      type: http

````

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