@seshn/sdk
v0.1.1
Published
TypeScript SDK for the Seshn booking API
Downloads
172
Maintainers
Readme
@seshn/sdk
TypeScript SDK for the Seshn booking API — headless booking infrastructure for service businesses.
Install
npm install @seshn/sdkQuickstart
import { Seshn } from "@seshn/sdk";
const seshn = new Seshn("sk_test_...", {
baseUrl: "https://api.seshn.net",
});
// Check availability
const slots = await seshn.availability.list({
serviceId: "svc_...",
date: "2026-04-01",
});
// Book a slot
const booking = await seshn.bookings.create({
serviceId: "svc_...",
resourceId: "res_...",
contactId: "con_...",
startTime: "2026-04-01T10:00:00Z",
endTime: "2026-04-01T11:00:00Z",
seats: 1,
});Resources
The SDK covers every Seshn API resource:
seshn.availability— Check slot availabilityseshn.bookings— Create, update, cancel bookingsseshn.bookingSeries— Manage recurring bookingsseshn.contacts— Customer recordsseshn.services— Service types and configurationseshn.resources— Staff, rooms, equipmentseshn.locations— Business locationsseshn.payments— Stripe payment flowsseshn.entitlements— Credit/package managementseshn.waitlist— Waitlist with auto-promotionseshn.webhooks— Webhook endpoint managementseshn.apiKeys— API key managementseshn.auditLog— Activity audit trailseshn.users— User/team managementseshn.organizations— Org setup
Sandbox mode
Use a sk_test_ key to work in sandbox mode — no real charges, seeded test data.
Docs
Full API documentation: seshn.net/docs
License
MIT
