npm SDK

Official @reachase/sdk package with full type coverage for the Reachase ingest API.

Installation

The SDK lives in the Reachase monorepo under sdk/ and is published as@reachase/sdk. It works in Node.js 22+ and edge runtimes with fetch.

terminalInstall
npm install @reachase/sdk

Usage

Initialize the client with your API key and the ingest base URL. Use resource methods to list forms, submit data, list bookings, and book meetings.

client.tsUsage
import { Reachase } from "@reachase/sdk";

const reachase = new Reachase({
  apiKey: process.env.REACHASE_API_KEY!,
  baseUrl: "http://localhost:3001",
});

const forms = await reachase.forms.list();
const submission = await reachase.forms.submitByApiUuid(forms[0].apiUuid, {
  name: "John Doe",
  email: "[email protected]",
  message: "Enterprise inquiry",
});

Resources

  • reachase.forms.list() — list forms for the authenticated organization.
  • reachase.forms.submitBySlug(orgSlug, formSlug, fields) — public embed-style submit.
  • reachase.forms.submitByApiUuid(apiUuid, fields) — authenticated API submit.
  • reachase.bookings.list(params) — list bookings with optional filters.
  • reachase.schedule.availability(orgSlug, eventSlug) — open scheduling slots.
  • reachase.schedule.book(orgSlug, eventSlug, input) — create a booking.

Webhook verification

Use verifyWebhookSignature to validate X-Reachase-Signature on incoming webhook requests.

verify.tsVerify
import { verifyWebhookSignature } from "@reachase/sdk";

const isValid = verifyWebhookSignature(
  rawBody,
  request.headers.get("x-reachase-signature") ?? "",
  process.env.WEBHOOK_SECRET!
);