Lithos sandbox · RefinedCare Rx starter

Lithos sandbox

Webhooks

How your app hears that something changed: a decision, a prescription, a delivery. Every one received is in the webhook log.

Your endpoint

1 event delivered, signature verified, stored.

Done

Lithos tells your app when something changes, with a signed webhook your app verifies before re-reading the resource. Webhooks need a public HTTPS address: a deploy or a tunnel.

Your endpoint

Registered, and it reaches this app: https://refinedcarerx.com/api/webhooks/lithos

What Lithos sent — POST /api/webhooks/lithos · 200

Each event says what changed and which resource — not the new state. An integration re-reads that resource with a GET. Headers (including the signature) aren't stored, only the verified payloads.

{
  "data": [
    {
      "received_at": "2026-11-25T19:38:29.039Z",
      "id": "evt_test_01M8A3EX930QEQJKD2MY4ZS6GW",
      "type": "webhook.test",
      "created_at": "2026-11-25T19:38:28Z",
      "resource_id": "whe_test_01M8A3EE2A9CTGQ6ZRFTRJ1DTE"
    }
  ]
}

Code: src/app/api/webhooks/lithos/route.ts (receive + verify) · src/lib/setup/steps.ts → checkUpdates (verified deliveries) · src/app/(dev)/setup/actions.ts → registerWebhookAction, sendTestEventAction