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

# Generate WhatsApp link as qr code.



## OpenAPI

````yaml /openapi/chat-client.yaml get /marketing/whatsapp-qr-code
openapi: 3.0.3
info:
  version: 1.0.0
  title: HealviChat Client API
servers:
  - url: https://{tenant_domain}/third-party/v1
    variables:
      tenant_domain:
        default: your-tenant.onhealvi.com
        description: Your tenant domain
security:
  - bearerAuth: []
paths:
  /marketing/whatsapp-qr-code:
    get:
      tags:
        - marketing
      summary: Generate WhatsApp link as qr code.
      parameters:
        - in: query
          name: agent_id
          description: >-
            Optional ID of target agent. If none given, the first WhatsApp agent
            will be used.
          schema:
            type: integer
          required: false
      responses:
        '200':
          description: Success
          content:
            image/png:
              schema:
                type: string
                format: binary
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````