Start documenting free. no card required

OUR APPS

CrashDiary

For victims and their attorneys

Every document, photo and expense on one timeline, built to withstand insurer denials.

CrashInspect

For inspections and damage capture

Professional-grade vehicle inspections that produce reports ready for claims and court.

Not sure which app fits your case?

Compare all apps

DEVELOPERS

CrashLens API

Connect a law firm’s CRM or case management system to CrashLens. Create an inspection from a case, we email the client the capture link, and the finished, certified report comes back to your system. The firm never has to open the CrashLens dashboard.

How it works

1. Your system creates an inspection with POST /inspections, passing the client and your own case id.

2. CrashLens emails the client the capture link. The link is also in the response as capture_url.

3. The client completes the inspection on their phone. You receive inspection.started, then inspection.completed with the report links.

4. Download the certified PDF with your API key, or link the web report. If the report is amended later, you receive inspection.amended.

Authentication

Create a key in the CrashLens dashboard under Settings → Integrations. It is shown once. Send it on every request:

Authorization: Bearer clk_live_…

A key acts as the user who created it: inspections created with it appear on that user’s dashboard and count toward the company’s plan. Keep keys on your server, never in a browser or mobile app. Base URL:

https://www.crashlens.app/api/v1

Create an inspection

type is car (vehicle inspection) or document (document scan). client.email is required. loss_date defaults to today. Send an Idempotency-Key so a retried request never creates a second inspection.

curl -X POST https://www.crashlens.app/api/v1/inspections \
  -H "Authorization: Bearer $CRASHLENS_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: matter-48213-vehicle-1" \
  -d '{
    "type": "car",
    "client": { "name": "Jane Doe", "email": "jane@example.com", "phone": "+1 305 555 0100" },
    "loss_date": "2026-11-20",
    "external_reference": "MATTER-48213",
    "options": { "selfie_required": true, "geolocation_required": true }
  }'

Response 201, the Inspection object:

{
  "id": "6f1c2e0a-4b7d-4c1e-9a53-2d8f0c7b9e14",
  "type": "car",
  "status": "pending",
  "external_reference": "MATTER-48213",
  "protocol_number": "2026-482913",
  "loss_date": "2026-11-20",
  "created_at": "2026-11-23T14:02:11.482Z",
  "completed_at": null,
  "client": { "name": "Jane Doe", "email": "jane@example.com", "phone": "+1 305 555 0100" },
  "capture_url": "https://crashinspect.com/#/inspection?token=K7QP2M",
  "report_url": null,
  "verify_url": null,
  "pdf_url": null,
  "report_version": null,
  "email_sent": true
}

The email uses the account’s default invite template and, when the company has white-label branding active, its brand and domains. Pass "use_brand": false to send as CrashLens. If email_sent is false, call resend.

Read inspections

# One inspection
curl https://www.crashlens.app/api/v1/inspections/6f1c2e0a-4b7d-4c1e-9a53-2d8f0c7b9e14 \
  -H "Authorization: Bearer $CRASHLENS_API_KEY"

# Everything for one case in your CRM
curl "https://www.crashlens.app/api/v1/inspections?external_reference=MATTER-48213" \
  -H "Authorization: Bearer $CRASHLENS_API_KEY"

# Reports finished since your last sync (paginate with next_cursor)
curl "https://www.crashlens.app/api/v1/inspections?completed_after=2026-11-23T00:00:00Z&limit=100" \
  -H "Authorization: Bearer $CRASHLENS_API_KEY"

Filters: status (pending, in_progress, completed), external_reference, created_after, completed_after, limit (up to 100) and cursor.

Download the report

curl -o report.pdf \
  https://www.crashlens.app/api/v1/inspections/6f1c2e0a-4b7d-4c1e-9a53-2d8f0c7b9e14/report.pdf \
  -H "Authorization: Bearer $CRASHLENS_API_KEY"

Available once status is completed. Add ?version=N for an earlier version of an amended report. The first download can take up to about 30 seconds while the PDF is issued.

Resend and delete

# Email the capture link again (up to 3 resends per 24 hours)
curl -X POST https://www.crashlens.app/api/v1/inspections/6f1c2e0a-4b7d-4c1e-9a53-2d8f0c7b9e14/resend \
  -H "Authorization: Bearer $CRASHLENS_API_KEY"

# Delete: closes the capture link and frees the quota
curl -X DELETE https://www.crashlens.app/api/v1/inspections/6f1c2e0a-4b7d-4c1e-9a53-2d8f0c7b9e14 \
  -H "Authorization: Bearer $CRASHLENS_API_KEY"

Webhooks

Add an HTTPS URL to your key in Settings → Integrations. We send events for inspections created through the API with that key:

EventWhen
inspection.startedThe client opened the link and began the capture.
inspection.completedThe report is finished. report_url, verify_url and pdf_url are set.
inspection.amendedThe finished report was amended. report_version is the new version.
pingA test event sent from the dashboard.
POST https://your-crm.example.com/crashlens
X-CrashLens-Event: inspection.completed
X-CrashLens-Delivery: 0d3e6b1f-58a2-4f0e-b7c4-6a9d2e1f3c80
X-CrashLens-Signature: t=1795442531,v1=5f2b9c…

{
  "id": "0d3e6b1f-58a2-4f0e-b7c4-6a9d2e1f3c80",
  "type": "inspection.completed",
  "created_at": "2026-11-23T15:22:11.003Z",
  "data": {
    "id": "6f1c2e0a-4b7d-4c1e-9a53-2d8f0c7b9e14",
    "status": "completed",
    "external_reference": "MATTER-48213",
    "report_url": "https://crashlens.app/report/6f1c2e0a-4b7d-4c1e-9a53-2d8f0c7b9e14",
    "verify_url": "https://crashlens.app/verify/6f1c2e0a-4b7d-4c1e-9a53-2d8f0c7b9e14",
    "pdf_url": "https://www.crashlens.app/api/v1/inspections/6f1c2e0a-4b7d-4c1e-9a53-2d8f0c7b9e14/report.pdf",
    "report_version": 1,
    "...": "the rest of the Inspection object"
  }
}

Verify the signature

v1 is the HMAC-SHA256 of <t>.<raw body> keyed with your webhook signing secret. Reject anything that does not match or is older than five minutes. Use id to ignore a delivery you have already processed.

import crypto from "node:crypto";

// rawBody: the request body exactly as received (a string or Buffer), before JSON.parse.
export function verifyCrashLens(rawBody, signatureHeader, secret) {
  const parts = Object.fromEntries(signatureHeader.split(",").map((p) => p.split("=")));
  const t = Number(parts.t);
  if (!t || Math.abs(Date.now() / 1000 - t) > 300) return false; // older than 5 minutes
  const expected = crypto.createHmac("sha256", secret).update(`${t}.${rawBody}`).digest("hex");
  const given = Buffer.from(parts.v1 ?? "", "hex");
  const want = Buffer.from(expected, "hex");
  return given.length === want.length && crypto.timingSafeEqual(given, want);
}
import hashlib, hmac, time

def verify_crashlens(raw_body: bytes, signature_header: str, secret: str) -> bool:
    parts = dict(p.split("=", 1) for p in signature_header.split(","))
    t = int(parts.get("t", "0"))
    if abs(time.time() - t) > 300:  # older than 5 minutes
        return False
    expected = hmac.new(secret.encode(), f"{t}.".encode() + raw_body, hashlib.sha256).hexdigest()
    return hmac.compare_digest(expected, parts.get("v1", ""))

Delivery

Answer with any 2xx within 10 seconds. A failed delivery is retried twice within a few seconds and then shown as failed in the dashboard, where it can be resent. Redirects are not followed. To be safe against an outage on your side, reconcile periodically with GET /inspections?completed_after=….

Errors

Every error has the same body:

{ "error": { "code": "quota_exceeded", "message": "The plan's inspection limit (500) has been reached." } }
Status · codeMeaning
401 unauthorizedMissing, invalid or revoked API key.
402 quota_exceededThe company’s plan limit for inspections has been reached.
404 not_foundNo such inspection for this key, or it was deleted.
409 not_completedThe report is not finished yet.
409 already_completedResend is not available after completion.
422 invalid_requestA field is missing or invalid. The message says which.
422 email_blockedThe client’s email is blocked on this account.
429 rate_limitedOver 120 requests per minute per key, or too many resends. See Retry-After.
502 pdf_unavailableThe PDF could not be generated right now. Retry shortly.

OpenAPI

The full contract is available as an OpenAPI 3.1 description. Ask us for it, or for a sandbox account, at contact@crashlens.app.