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

# Create a viewing booking link for an enquiry

> Returns the self-serve viewing booking link for the enquiry, creating it if one does not exist yet. Optionally emails the link to the lead.



## OpenAPI

````yaml openapi-leads.json POST /v1/leads/enquiries/{id}/booking_link
openapi: 3.1.0
info:
  title: Yorlet Leads API
  description: APIs for managing enquiries, qualification configurations, and viewings.
  version: 1.0.0
servers:
  - url: https://api.yorlet.com
    description: Production
  - url: https://api.yorlet.io
    description: Sandbox
security: []
paths:
  /v1/leads/enquiries/{id}/booking_link:
    post:
      tags:
        - Leads Enquiries
      summary: Create a viewing booking link for an enquiry
      description: >-
        Returns the self-serve viewing booking link for the enquiry, creating it
        if one does not exist yet. Optionally emails the link to the lead.
      operationId: leads_enquiries_booking_link
      parameters:
        - schema:
            type: string
            description: The id identifier.
          required: true
          description: The id identifier.
          name: id
          in: path
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                notification:
                  type: object
                  properties:
                    type:
                      type: string
                      enum:
                        - email
                        - none
                      description: >-
                        The notification channel to use when sending the booking
                        link to the lead.
                  required:
                    - type
                  description: >-
                    Notification preferences when creating the booking link.
                    Defaults to no notification.
      responses:
        '200':
          description: Returns the booking link if the request succeeded.
          content:
            application/json:
              schema:
                type: object
                properties:
                  object:
                    type: string
                    enum:
                      - leads.viewing_booking_link
                  enquiry:
                    type: string
                    description: The ID of the enquiry the booking link belongs to.
                  url:
                    type: string
                    format: uri
                    description: The URL of the hosted booking page.
                required:
                  - object
                  - enquiry
                  - url
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: API Key authentication. Use "Bearer YOUR_API_KEY".

````