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

# Patient Booking

> Book only after verified-email identity and explicit current scoped consent.



## OpenAPI

````yaml /openapi.json post /api/v1/patient/workspace/professionals/{professional_id}/bookings
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/patient/workspace/professionals/{professional_id}/bookings:
    post:
      tags:
        - Pacientes
      summary: Patient Booking
      description: >-
        Book only after verified-email identity and explicit current scoped
        consent.
      operationId: >-
        patient_booking_api_v1_patient_workspace_professionals__professional_id__bookings_post
      parameters:
        - in: path
          name: professional_id
          required: true
          schema:
            format: uuid
            title: Professional Id
            type: string
        - in: header
          name: Idempotency-Key
          required: true
          schema:
            maxLength: 200
            minLength: 1
            title: Idempotency-Key
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatientBookingIn'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                additionalProperties: true
                title: >-
                  Response Patient Booking Api V1 Patient Workspace
                  Professionals  Professional Id  Bookings Post
                type: object
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - BearerAuth: []
components:
  schemas:
    PatientBookingIn:
      properties:
        consent_version:
          title: Consent Version
          type: string
        modality:
          enum:
            - in_person
            - virtual
          title: Modality
          type: string
        quoted_currency:
          pattern: ^[A-Z]{3}$
          title: Quoted Currency
          type: string
        quoted_price_minor:
          minimum: 0
          title: Quoted Price Minor
          type: integer
        starts_at:
          format: date-time
          title: Starts At
          type: string
      required:
        - starts_at
        - modality
        - consent_version
        - quoted_price_minor
        - quoted_currency
      title: PatientBookingIn
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      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.