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

# Creates a new lead record for a firm

> Creates a new lead record for a firm.



## OpenAPI

````yaml /api-reference/openapi.json post /api/leads
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/leads:
    post:
      tags:
        - Leads
      summary: Creates a new lead record for a firm
      description: Creates a new lead record for a firm.
      operationId: post-leads
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - firmSlug
                - name
              properties:
                firmSlug:
                  type: string
                  description: Firm identifier.
                name:
                  type: string
                  description: Lead's full name.
                phone:
                  type: string
                  description: Lead's phone number (E.164).
                email:
                  type: string
                  description: Lead's email address.
                caseType:
                  type: string
                  description: Practice area (e.g. personal-injury).
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
              example:
                id: lead_abc
                name: Jane Doe
                status: new
        '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

- [Scans call logs for a firm, uses AI to extract lead information (name, phone, email, case type), deduplicates, and creates Supabase lead records](/api-reference/leads/scans-call-logs-for-a-firm-uses-ai-to-extract-lead-information-name-phone-email-case-type-deduplicates-and-creates-supabase-lead-records.md)
- [Creates a new outbound call campaign](/api-reference/campaigns/creates-a-new-outbound-call-campaign.md)
- [Updates a lead record (status, notes, case type, etc.)](/api-reference/leads/updates-a-lead-record-status-notes-case-type-etc.md)
- [Create your AI receptionist](/studio/create-your-receptionist.md)
- [Creates a new workflow](/api-reference/workflows/creates-a-new-workflow.md)
