Law Ruler Integration Guide: 2 of 2 - The API Sync Setup Guide

Law Ruler Integration Guide: 2 of 2 - The API Sync Setup Guide

Welcome to the guide for integrating Law Ruler with our platform! This article will walk you through every step: from connecting your account to syncing cases, sending data back, and troubleshooting — all with clarity and confidence. Let’s go 🚀

Before you begin this step, it is important that you complete the previous step. Is it completed?

💡 Law Ruler Integration Guide 1 of 2: Creating Custom Field Templates by Case Type

Step 1: Connect Your Law Ruler Account to Kayse

Before using the integration, your Law Ruler account must be connected.

How to Connect:

  1. Go to Settings → Integrations in your dashboard
  2. Click Law Ruler to open the detail screen
  3. Enter the required credentials:
    • Username
    • Password
    • Client Root (the firm subdomain from your CRM URL, for example yourfirm from https://yourfirm.lawruler.com)
    • Client Secret
    • Key
  4. Click Connect to complete the connection

The connection dialog now includes helper text for each credential so admins can confirm which value belongs in each field before saving.

Integration Toggle Descriptions

Each toggle in the Law Ruler integration detail screen includes a short description explaining what it controls. For example:

Setup Checklist

The detail screen also includes a built-in checklist to help admins work through setup in the safest order:

  1. Open the CRM webhook screen from the link in Kayse and paste the generated webhook URL into API URL
  2. Add optional parameters such as list_id when you want one webhook to route records into a specific Kayse list
  3. Link case types in the CRM Mappings tab before relying on mapped field sync
  4. Turn on Enable Integration, Receive data, any needed outbound options, and Sync case statuses last

Sync Health And Field Preview

The detail screen shows:

If multiple case types are selected, use the CRM Mappings tab to review the full field list instead of the single-case-type preview.

Step 2: Set Up Webhook in Law Ruler

This webhook allows Law Ruler to push real-time case and client updates to our system. Here is a video walkthrough on setting up your Law Ruler webhook.

This needs to be performed inside your Law Ruler system in the Setup > Webhooks screen.

How to Configure:

  1. In Law Ruler, go to Setup > Webhooks
  2. Select the webhook row you want to use, or create a new one first
  3. Click Edit selected webhook
  4. Paste the webhook URL provided by our platform into API URL
  5. Select relevant options:
    • Choose Case Types and Statuses to sync
    • Fill out the webhook form: it must contain required fields like Lead ID, Contact ID, First Name, Last Name, Email, etc.
    • You may also see dropdowns or lists of fields — make sure to select and map the ones that are required by our system.
  6. Save your changes

Law Ruler webhooks page with the selected webhook row and Edit selected webhook button

When editing the webhook, the most important field is API URL. This is where the Kayse-generated webhook URL goes. You can also add query parameters such as list_id, list_action, or campaign_id directly in that URL.

Law Ruler webhook edit screen showing the API URL field and example query parameters

⚠️ All required fields must be provided. If even one field is missing, the request will be rejected.

Optional Webhook URL Parameters

You can append optional query parameters to the webhook URL to control how synced records are handled in Kayse:

These parameters can be found and configured in the Law Ruler integration detail screen under Settings → Integrations → Law Ruler.

If you prefer, you can also set action values in the Law Ruler Params tab instead of embedding every parameter directly in the webhook URL.

  1. Open Params
  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

✅ Once done, Law Ruler will begin sending updates for the selected case types and statuses via webhook.

Step 3: How Law Ruler < >Kayse Data Sync Works

Our system both receives and sends data to/from Law Ruler. Here’s how it works:

➕ Receiving Data from Law Ruler

There are two primary channels:

  1. Webhook Updates (Real-Time):
    • Triggered when case status changes in Law Ruler to update data in Kayse
    • Sends real-time updates including:
      • Case name, type, status
      • Client first/last name, email, phone
      • Linked IDs (external identifiers)
  2. Scheduled Note Sync (Hourly):
    • Syncs messages/notes related to cases
    • Happens every hour via background service (CRON job)

⚠️ Not all field changes trigger webhook updates.

If users change a description or field without status change, the webhook may not fire.

In such cases, users should click Send via Webhook in Law Ruler manually.

⬅️ What Data We Import

Once integrated, our system pulls in:

Imported data is stored in our system and associated with external source ID (typically the Lead ID from Law Ruler).

This ID allows us to match future webhook updates to the correct cases and clients.

Using list_id and Auto-Add Rules In Kayse

If you use list_id in the webhook URL, Kayse can route webhook records into a specific Kayse list. You can find that value in the List ID column on the Lists page.

Kayse Lists page with the List ID column highlighted

If you do not want one webhook per list, you can keep a general webhook and use Law Ruler Auto-Add rules inside each Kayse list instead. In that setup:

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

Before you rely on mapped-field sync or use the field preview in the Law Ruler detail screen, make sure the Law Ruler case type is linked to a Kayse case type in the CRM Mappings tab (Settings → Integrations → Law Ruler → CRM Mappings).

If a case type is not linked yet, Kayse will show a warning and the mapping setup for that case type will stay blocked until you finish the link.

CRM Mappings screen showing the Law Ruler case type selector, unlinked warning, Kayse case type field, and Link Case Type action

➡️ Sending Data to Law Ruler

The following actions in our platform automatically push data to Law Ruler:

📞After each successful AI Call > Kayse sends the following data to Law Ruler

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

⚠️ All outbound items are stored as notes, not in Communication tabs (SMS/Email).

This applies to messages, calls, documents.

Some document types (e.g. PNG, JPG) are fully supported. CSV and Cyrillic-named files may fail silently — these use cases are under review. If you find this happening, please contact Law Ruler support and advise them of the problematic file names that might not be accepted such as WAV. As a workaround,

💡Kayse renames MP3 files as WAV so they are accepted by Law Ruler, but there could be other disallowed file extensions.

Additional Data Sent After AI Call Campaigns

When an AI-driven call (Voice AI Campaign) is completed, our system automatically sends a structured data package to Law Ruler, linked to the corresponding Lead ID.

1️⃣ API Call

A backend request is made to the Law Ruler endpoint: [Law Ruler Endpoint]/api-legalrcampaign.aspx

Query Parameters include:

2️⃣ Notes Sent to Law Ruler

📝 Two notes are added to Law Ruler under the “Client Communication” category:

🟪 Call Analysis Summary

Includes:

🟪 Full Call Transcript (for successful calls only)

The full transcript is formatted as:

[AGENT]: Hello, this is Kayse…

[CLIENT]: Yes, I'm listening…

3️⃣ Call Recording Upload to Law Ruler

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

File Name format:

⏱️ Timestamps and Lead Binding

All data — including API call, notes, and recording — is linked to the specific Lead ID and includes exact timestamps for proper chronological ordering in Law Ruler.

Step 4: Importing Cases from Law Ruler (Manual)

You can also manually import case and client data:

  1. Export from Law Ruler:
    • Go to the export tool in Law Ruler and download client+case data
  2. In our platform:
    • Navigate to Cases > Import
    • Paste or upload:
      • ⚠️ Lead ID (used as External Source ID)
      • ⚠️ Contact ID (this is REQUIRED or can cause data concerns if it is not there if you have multiple cases with the same name)
      • ⚠️ Case Type, Status, and any additional case metadata such as custom fields.

Our system will use this to match and track future webhook updates.

️ Step 5: Troubleshooting Tips

Webhook not triggering after update?

Message not visible in Law Ruler’s Communication tab?

File uploaded but not visible?

Re-enabling Case Status Sync

If you previously had case status sync turned on, disabled it, and are now re-enabling it, a confirmation dialog will appear asking you to choose a resume mode:

This dialog only appears when the system detects that status sync was previously active and has since been turned off. If status sync has never been used before, the setting is applied immediately without a confirmation prompt.

Law Ruler status sync resume mode dialog with Non-Retroactive and Retroactive options

FAQ

Q: How often is data synced from Law Ruler?

A: Webhook data (status-triggered) is real-time. Notes/messages are synced hourly.

Q: Can I trigger an update manually?

A: Yes — either change the case status or click Send via Webhook in Law Ruler.

Q: Where do messages from our platform appear in Law Ruler?

A: Under the Notes tab only.

Q: Can I modify webhook settings later (e.g. case types)?

A: Yes — you can adjust case types/statuses at any time from Law Ruler without breaking the connection.

Need help? Contact our support team anytime ✨

Happy integrating!

Keywords: LawRuler, Law Ruler