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

# Get reservation message settings

> Requires `reservations:read`. 



## OpenAPI

````yaml /openapi.json get /reservations/lifecycle/events
openapi: 3.0.3
info:
  title: Visito M2M API
  version: 1.0.0
  description: >-
    Tenant-scoped server-to-server API for channels, conversations, commerce,
    custom AI tools, and WhatsApp templates. Send operations are asynchronous
    and return queued acknowledgements. Expansion adds conversation controls,
    knowledge, sales opportunities, delivery status, reporting, and signed
    webhooks.
servers:
  - url: https://platform-api.visitoai.com/m2m/v1
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Channels
  - name: Conversations
  - name: Commerce
  - name: Custom tools
  - name: WhatsApp templates
  - name: Properties
  - name: Knowledge
  - name: Sales CRM
  - name: Delivery
  - name: Reporting
  - name: Webhooks
paths:
  /reservations/lifecycle/events:
    get:
      summary: Get reservation message settings
      description: 'Requires `reservations:read`. '
      operationId: get_reservation_message_settings
      parameters: []
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReservationLifecycleEventsSummaryResponse'
        default:
          $ref: '#/components/responses/Error'
components:
  schemas:
    ReservationLifecycleEventsSummaryResponse:
      type: object
      properties:
        masterEnabled:
          type: boolean
        events:
          type: array
          items:
            type: object
            properties:
              eventType:
                anyOf:
                  - type: string
                    enum:
                      - booking_confirmed
                  - type: string
                    enum:
                      - pre_checkin
                  - type: string
                    enum:
                      - post_checkout_review
              label:
                type: string
              attachedIntegrationCount:
                type: number
              enabledIntegrationCount:
                type: number
              disabledIntegrationCount:
                type: number
              allEnabled:
                type: boolean
              someEnabled:
                type: boolean
              health:
                anyOf:
                  - type: string
                    enum:
                      - healthy
                  - type: string
                    enum:
                      - attention
                  - type: string
                    enum:
                      - blocked
                  - type: string
                    enum:
                      - inactive
              metrics7d:
                type: object
                properties:
                  sent:
                    type: number
                  failed:
                    type: number
                  notSent:
                    type: number
                required:
                  - sent
                  - failed
                  - notSent
                additionalProperties: false
              senders:
                type: array
                items:
                  type: object
                  properties:
                    channelId:
                      type: string
                    phoneNumber:
                      type: string
                    name:
                      type: string
                    active:
                      type: boolean
                    respondEnabled:
                      type: boolean
                    integrationIds:
                      type: array
                      items:
                        type: string
                  required:
                    - channelId
                    - active
                    - respondEnabled
                    - integrationIds
                  additionalProperties: false
              integrations:
                type: array
                items:
                  type: object
                  properties:
                    provider:
                      anyOf:
                        - type: string
                          enum:
                            - cloudbeds
                        - type: string
                          enum:
                            - siteminder
                        - type: string
                          enum:
                            - mirai
                        - type: string
                          enum:
                            - guesty
                        - type: string
                          enum:
                            - hotelrunner
                        - type: string
                          enum:
                            - wix
                        - type: string
                          enum:
                            - simplebooking
                        - type: string
                          enum:
                            - p3
                        - type: string
                          enum:
                            - glofox
                        - type: string
                          enum:
                            - shopify
                        - type: string
                          enum:
                            - google_sheets
                    integrationId:
                      type: string
                    name:
                      type: string
                    propertyId:
                      type: string
                    propertyName:
                      type: string
                    eligible:
                      type: boolean
                    integrationActive:
                      type: boolean
                    integrationEligible:
                      type: boolean
                    eventEnabled:
                      type: boolean
                    senderStatus:
                      anyOf:
                        - type: string
                          enum:
                            - selected
                        - type: string
                          enum:
                            - default
                        - type: string
                          enum:
                            - missing
                        - type: string
                          enum:
                            - ambiguous
                        - type: string
                          enum:
                            - unavailable
                    selectedSender:
                      type: object
                      properties:
                        channelId:
                          type: string
                        phoneNumber:
                          type: string
                        name:
                          type: string
                        active:
                          type: boolean
                        respondEnabled:
                          type: boolean
                        integrationIds:
                          type: array
                          items:
                            type: string
                      required:
                        - channelId
                        - active
                        - respondEnabled
                        - integrationIds
                      additionalProperties: false
                    senderCandidates:
                      type: array
                      items:
                        type: object
                        properties:
                          channelId:
                            type: string
                          phoneNumber:
                            type: string
                          name:
                            type: string
                          active:
                            type: boolean
                          respondEnabled:
                            type: boolean
                          integrationIds:
                            type: array
                            items:
                              type: string
                        required:
                          - channelId
                          - active
                          - respondEnabled
                          - integrationIds
                        additionalProperties: false
                    senders:
                      type: array
                      items:
                        type: object
                        properties:
                          channelId:
                            type: string
                          phoneNumber:
                            type: string
                          name:
                            type: string
                          active:
                            type: boolean
                          respondEnabled:
                            type: boolean
                          integrationIds:
                            type: array
                            items:
                              type: string
                        required:
                          - channelId
                          - active
                          - respondEnabled
                          - integrationIds
                        additionalProperties: false
                  required:
                    - provider
                    - integrationId
                    - eligible
                    - integrationActive
                    - integrationEligible
                    - eventEnabled
                    - senderStatus
                    - senderCandidates
                    - senders
                  additionalProperties: false
              templatePreview:
                type: object
                properties:
                  locales:
                    type: array
                    items:
                      type: object
                      properties:
                        locale:
                          anyOf:
                            - type: string
                              enum:
                                - en_US
                            - type: string
                              enum:
                                - es_MX
                        body:
                          type: string
                        buttons:
                          type: array
                          items:
                            type: string
                      required:
                        - locale
                        - body
                        - buttons
                      additionalProperties: false
                required:
                  - locales
                additionalProperties: false
              metaTemplates:
                type: object
                properties:
                  total:
                    type: number
                  approved:
                    type: number
                  pending:
                    type: number
                  rejected:
                    type: number
                  paused:
                    type: number
                  rows:
                    type: array
                    items:
                      type: object
                      properties:
                        channelId:
                          type: string
                        phoneNumber:
                          type: string
                        locale:
                          anyOf:
                            - type: string
                              enum:
                                - en_US
                            - type: string
                              enum:
                                - es_MX
                        templateName:
                          type: string
                        templateId:
                          type: string
                        status:
                          anyOf:
                            - type: string
                              enum:
                                - pending
                            - type: string
                              enum:
                                - approved
                            - type: string
                              enum:
                                - rejected
                            - type: string
                              enum:
                                - paused
                        version:
                          type: number
                        lastFetchedAt:
                          type: string
                        lastCreatedAt:
                          type: string
                        lastProviderErrorCode:
                          type: string
                        rejectedReason:
                          type: string
                      required:
                        - channelId
                        - locale
                        - templateName
                        - status
                        - version
                      additionalProperties: false
                required:
                  - total
                  - approved
                  - pending
                  - rejected
                  - paused
                  - rows
                additionalProperties: false
            required:
              - eventType
              - label
              - attachedIntegrationCount
              - enabledIntegrationCount
              - disabledIntegrationCount
              - allEnabled
              - someEnabled
              - health
              - metrics7d
              - senders
              - integrations
              - templatePreview
              - metaTemplates
            additionalProperties: false
      required:
        - masterEnabled
        - events
      additionalProperties: false
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              example: M2M_AUTH_INSUFFICIENT_SCOPE
            message:
              type: string
            details:
              type: object
              additionalProperties: true
      example:
        error:
          code: M2M_AUTH_INSUFFICIENT_SCOPE
          message: M2M credential does not have required scope.
          details:
            requiredScopes:
              - conversations:write
            missingScopes:
              - conversations:write
  responses:
    Error:
      description: Structured error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Visito M2M API key
      description: Server-side tenant-scoped credential created from Build > API Keys.

````