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

# Returns a standalone HTML page for testing the embeddable chat widget with configurable agent settings

> Returns a standalone HTML page for testing the embeddable chat widget with configurable agent settings.



## OpenAPI

````yaml /api-reference/openapi.json get /api/test-widget
openapi: 3.1.0
info:
  title: Lawtte API
  version: v2
  description: >-
    REST API behind the Lawtte dashboard: AI voice and chat calls, agent
    configuration, leads, campaigns, contacts, and automation workflows.
  contact:
    name: Lawtte support
    email: contact@lawtte.ai
    url: https://www.lawtte.ai
servers:
  - url: https://www.lawtte.ai
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Voice & Chat
    description: Manage AI voice calls and chat sessions powered by Donna AI.
  - name: Agent Config
    description: Read and update AI agent prompts, voices, and configurations.
  - name: Appointments
    description: Check availability and book appointments via Cal.com integration.
  - name: Webhooks
    description: Receive real-time events after calls end.
  - name: Leads
    description: Create, manage, and analyze leads captured by your AI agents.
  - name: Campaigns
    description: Create and launch outbound call campaigns to lists of leads.
  - name: Contacts
    description: >-
      Import and sync contacts from CSV, OpenPhone, RingCentral, and practice
      management systems.
  - name: Workflows
    description: >-
      Build and manage automation workflows using a visual node-based flow
      editor.
  - name: Utilities
    description: Helper endpoints for AI-powered data extraction and widget testing.
paths:
  /api/test-widget:
    get:
      tags:
        - Utilities
      summary: >-
        Returns a standalone HTML page for testing the embeddable chat widget
        with configurable agent settings
      description: >-
        Returns a standalone HTML page for testing the embeddable chat widget
        with configurable agent settings.
      operationId: get-test-widget
      responses:
        '200':
          description: HTML page with embedded widget and configuration panel.
          content:
            application/json:
              schema:
                type: object
        '401':
          description: Missing or invalid credentials
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Lawtte API key or session token: `Authorization: Bearer <token>`.'

````

## Related topics

- [Website widget](/guides/website-widget.md)
- [Put her on your website](/studio/website-widget.md)
- [Sends a message in an active chat session and returns the agent's reply](/api-reference/voice-&-chat/sends-a-message-in-an-active-chat-session-and-returns-the-agents-reply.md)
- [Test her, then go live](/studio/test-and-go-live.md)
- [Create your AI receptionist](/studio/create-your-receptionist.md)
