Skip to main content
Use ScheduleOnce through Corsair: one client, typed API calls, and incoming webhooks. ScheduleOnce runs on the OnceHub platform, and the OnceHub API (api.oncehub.com/v2) needs an Enterprise plan or a free trial: a key from any lower plan answers 403 with the message “Your account plan does not support API access.” Create a key under Account Integrations, then APIs & Webhooks. Every request this plugin sends authenticates with an API-Key header carrying the raw key (no Bearer prefix). Accounts are allowed 5 requests per second; a 429 is retried three times with a 1, 2 and 4 second backoff. Lists page with a cursor. limit defaults to 10 and caps at 100; after and before take an object ID and cannot be combined; every list answer carries nextPageAfter, the ID to pass as the next after (null on an empty page). The same three fields appear on every list operation. Bookings take expand with owner, contact and/or conversation, on a single booking and on lists alike; any other field answers 400. A few fields are checked as enums, and the accepted members are exactly these: role_name on users takes Administrator, Member or Team Manager; contact status takes Qualified, Sales qualified, Marketing qualified or Disqualified, and any other value is refused before the request is sent; a booking’s location.type takes physical, virtual, virtual_static or guest_phone; availability locations take in_person_by_host, in_person_by_guest, online_dynamic_link, online_static_link or phone_by_guest; weekday names are the case-sensitive English names Monday through Sunday. bookingCalendars.oneTimeLink and masterPages.oneTimeLink return a single-use booking URL. Whoever holds the URL can book without signing in, so treat it as a credential: hand it to the guest and do not log it. Thirteen event paths are registered under bookings.* and conversations.*; bookings.booking and conversations.conversation take any event of their family that has no handler of its own. Webhooks are signed per endpoint: each registered webhook carries its own signing secret, returned as secret by webhooks.create, webhooks.get and webhooks.list (and under View secret in the dashboard), so treat those responses as credentials. Deliveries carry Oncehub-Signature: t=<unix seconds>,s=<hex>, the HMAC-SHA256 of <t>.<raw body> keyed with that secret (several s= values mean key rotation, and any one match is accepted). Set webhookSecret or store the secret under webhook_signature, and the plugin verifies the signature in constant time and answers any delivery that fails a check with a non-2xx status: a timestamp more than 300 seconds old (possible replay), a missing or malformed header, a signature that does not match, or a secret that is not configured. Verification needs the exact bytes OnceHub sent, so hand processWebhook the body from request.text(), never request.json(). What you get:
  • 38 typed API operations
  • 13 incoming webhook event types

Setup

1

Install

2

Add the plugin

corsair.ts
With multiTenancy: true, scope calls with corsair.withTenant(id). See Quick start for KEK + Hub keys, and Multi-tenancy for account isolation.
3

Choose authentication

4

Connect a tenant

Mint a connect link and send the tenant to it. Hub hosts the page and delivers the result to your app — see Connect / OAuth.

Example API calls

List recent bookings
Book a slot for a guest
See the full list on the API page.

Webhooks

Point the OnceHub webhook at your Corsair HTTP handler and pass webhookSecret (or store the secret under webhook_signature). Every delivery carries Oncehub-Signature: t=<unix seconds>,s=<hex>, the HMAC-SHA256 of <t>.<raw body> keyed with that endpoint’s secret; the plugin verifies it in constant time and rejects deliveries with a mismatching signature, a timestamp older than 300 seconds, or a missing or malformed header. Hand processWebhook the raw body from request.text(), not request.json(): a reparsed body can differ from the signed bytes.
Mount your framework handler once (see Frameworks), then point the provider at that URL. Full event list: Webhooks. Concepts: Webhooks, Hooks.

What’s next

API reference

Every scheduleonce.api.* operation with input and output types.

Webhooks

Event paths, payloads, and webhookHooks examples.

Connect / OAuth

createLink, Hub delivery, and tenant connect flows.

Use with agents

Expose this plugin’s operations as MCP tools.