Law Ruler Technical Reference

Law Ruler Technical Reference

This page is for admins and developers who need the full technical detail behind the Law Ruler integration. If you are setting up the integration for the first time, start with the user guides:

Webhook URL Parameters

You can append optional query parameters to the Kayse webhook URL pasted into the Law Ruler webhook API URL field:

ParameterWhat it doesExample
list_idAttach synced records to a specific Kayse list (use the List ID from Lists)&list_id=123
list_nameSpecify a list by name instead of ID&list_name=Intake
list_actionControl the list operation: add, attach, detach, or remove&list_action=attach
remove_from_listSet to true to remove the record from the specified list&remove_from_list=true
campaign_idAssociate synced records with a specific Kayse campaign&campaign_id=42

These values are also surfaced in Kayse under Settings -> Integrations -> Law Ruler, so admins can copy the generated webhook URL and confirm which optional parameters they want to add.

You can also set action values in the Law Ruler Params tab instead of embedding everything in the URL:

  1. Open Params on the webhook
  2. Click Add
  3. Add either:
    • Key = list_action, Hardcoded Value = remove (or detach / add)
    • or Key = remove_from_list, Hardcoded Value = true
  4. Save the webhook

Law Ruler webhook Params tab showing custom parameter rows for list_action and remove_from_list

Auto-Add Rules In Kayse Lists

If you want to keep one general webhook and route records by rule, use Law Ruler Auto-Add inside each Kayse list:

Kayse list details page showing Law Ruler Auto-Add settings, optional first-sync toggle, and case type/status filters

You can find the List ID on the Lists page:

Kayse Lists page with the List ID column highlighted

How Data Flows

Inbound (Law Ruler -> Kayse)

Not all field changes trigger webhook updates. If a description or non-status field is edited, the webhook may not fire. In that case, click Send via Webhook in Law Ruler to push the record manually.

What Kayse Imports

Once the integration is on, Kayse can import:

Kayse stores the imported record with the matching external source ID, typically the Law Ruler Lead ID, so future webhook updates map back to the correct case and client.

Outbound (Kayse -> Law Ruler)

When the matching toggle is on, Kayse sends:

Messages and call records are stored as Notes in Law Ruler — not under SMS or Email tabs. Documents are uploaded separately.

The Send documents to LawRuler option sends files from Kayse out to the CRM. It does not download existing Law Ruler documents back into Kayse.

AI Call Campaign Payload

When a Voice AI campaign call completes, Kayse sends a structured payload to Law Ruler, linked to the matching Lead ID.

1. API Call

A backend request is made to the Law Ruler endpoint:

{client_root}/api-legalrcampaign.aspx

Common query parameters:

All values are converted to strings (booleans, integers, etc.).

2. Notes Sent To Law Ruler

Two notes are added under the Client Communications category:

Call Analysis Summary

Includes:

Full Call Transcript (successful calls only)

Formatted as:

[AGENT]: Hello, this is Kayse...
[CLIENT]: Yes, I'm listening...
...

3. Call Recording Upload

An audio recording is uploaded to Law Ruler in the /recordings folder and associated with the matching lead.

File name format:

Metadata sent with the upload:

Some Law Ruler tenants hide certain extensions even after a successful upload. Kayse normalizes audio uploads to .mp3 so they are accepted. If you see a missing recording, ask Law Ruler support to confirm which extensions their UI shows.

Lead Binding

API call, notes, and recording are all linked to the same Lead ID with exact timestamps so they appear in chronological order in Law Ruler.

Manual Case Import From Law Ruler

If you need to bulk import existing cases instead of waiting for webhooks:

  1. Export client + case data from Law Ruler
  2. In Kayse, go to Cases -> Import
  3. Paste or upload the export with at least:
    • Lead ID (used as the External Source ID)
    • Contact ID (required — without it, multiple cases with the same name can collide)
    • Case Type, Status, and any custom fields you want to map

Kayse uses these IDs to match future webhook updates back to the correct cases and clients.

File Type Notes

FAQ

How often does data sync from Law Ruler? Webhook data (status-triggered) is real time. Notes and messages are synced hourly.

Can I trigger an update manually? Yes — change the case status, or click Send via Webhook in Law Ruler.

Where do messages from Kayse appear in Law Ruler? Under the Notes tab, in the Client Communications category.

Can I change the webhook later (case types, statuses)? Yes — adjust case types and statuses any time in Law Ruler without breaking the connection.

Need Help?

If you need help, contact support@kayse.ai.

Keywords: LawRuler, Law Ruler, technical reference, webhook parameters, AI campaign payload