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

# API overview

> One base URL, JSON in and out, bearer auth on every request.

Every feature in the Lawtte dashboard is powered by these REST endpoints. They all
accept and return JSON.

<CardGroup cols={2}>
  <Card title="Base URL" icon="globe">
    `https://www.lawtte.ai`
  </Card>

  <Card title="Auth" icon="key" href="/authentication">
    `Authorization: Bearer <token>` on every request.
  </Card>
</CardGroup>

## Conventions

* **Firm scoping.** Most endpoints take a `firmSlug` (for example `brackman-law`)
  in the body or query. Path segments shown as `{firm}` take the same slug.
* **IDs.** `agent_id` values come from telephony, `call_id` from the call that
  created them, and lead, campaign, and workflow IDs are Lawtte records.
* **Phone numbers.** Always E.164: `+12125550100`.
* **Timestamps.** ISO 8601 with an offset, localized to the firm's time zone where
  a caller sees them.

## Endpoint groups

<Columns cols={2}>
  <Card title="Voice & Chat" icon="microphone">
    Web calls, outbound calls, chat sessions, voices, and call history.
  </Card>

  <Card title="Agent Config" icon="robot">
    Read and update agent prompts, opening messages, and voices.
  </Card>

  <Card title="Appointments" icon="calendar">
    Availability, booking, and booking webhooks.
  </Card>

  <Card title="Webhooks" icon="bell">
    The `call_analyzed` receiver that drives intake.
  </Card>

  <Card title="Leads & Campaigns" icon="users">
    Lead CRUD, AI follow-up objectives, call scanning, and outbound campaigns.
  </Card>

  <Card title="Contacts & Workflows" icon="diagram-project">
    CSV and PMS sync, plus the node graph behind the flow builder.
  </Card>
</Columns>

<Info>
  These pages are generated from the same catalog the site's
  [API reference](https://www.lawtte.ai/api-reference) uses, so the two never drift.
</Info>


## Related topics

- [How to build an AI receptionist and intake system](/guides/build-an-ai-receptionist.md)
- [Updates the agent's system prompt and/or begin message via the API](/api-reference/agent-config/updates-the-agents-system-prompt-andor-begin-message-via-the-api.md)
- [Returns available appointment slots for the given firm within a 7-day window using the Cal.com API](/api-reference/appointments/returns-available-appointment-slots-for-the-given-firm-within-a-7-day-window-using-the-calcom-api.md)
- [Deletes a workflow permanently](/api-reference/workflows/deletes-a-workflow-permanently.md)
- [Permanently deletes a lead record](/api-reference/leads/permanently-deletes-a-lead-record.md)
