Skip to guide
AvailKit/ developers
Browse documentation

Match the client to its authority.

Workspace credentials, account sessions, public page IDs and private customer capabilities are different forms of access.

Choose authority for the code’s execution location
ClientAuthentication and environmentCan doRestrictions
Trusted backendScoped workspace bearer key; server binds workspace and test/live.Catalog/hours/offerings, availability, booking lifecycle, customers, webhooks, events and usage, within granted permissions.Keep the key server-side. No account/passkey ceremonies or browser-session substitution.
Anonymous browserPublic published page ID; page chooses environment. No account cookie or workspace key.Read page/offerings/availability; create a booking with freshly generated private booking and contact tokens.Only published-page API; page ID grants no workspace administration.
Customer with private capabilityAuthorization: Booking TOKEN for that page/booking.Read, move and cancel that booking, subject to current page/privacy rules.Does not grant another booking, catalog/customer access or an account session. Keep private links out of logs.
Signed-in dashboardSame-origin secure session at app.availkit.com, CSRF and explicit dashboard scope; choose test/live.Authorized account/workspace operations, passkeys, keys and ordinary booking management.No cross-origin account/passkey API. Bearer keys cannot replace the session. Recent passkey checks remain.
Native/mobilePublic page and per-booking capability, or your own narrowly authorized backend.Open the hosted booking flow; call supported public endpoints or ask your backend for authorized private operations.No embedded workspace keys. No native AvailKit account flow or account-cookie support is promised. Native clients enforce TLS and protect capabilities in platform secure storage.
Developer explorerExplicit in-memory bearer key; API key selects environment. Cookies omitted.Execute workspace and health operations against canonical API; inspect every schema.Account/passkey and public booking endpoints are reference-only. Mutations are real; no automatic retry.

Keep credentials distinct

Public page identifier
Locates a published catalog and its environment. It is safe to share and does not grant workspace administration or private booking reads.
Private booking capability
A customer-held secret for one booking. Use the Booking authorization scheme; management links carry it in a URL fragment consumed before other assets load.
Contact-reuse proof
A separate secret used for the original guest contact flow; it grants no workspace or independent booking access.
Account session
Same-origin secure dashboard cookie plus CSRF/scope controls. Passkey ceremonies remain at app.availkit.com.
Workspace credential
Integration bearer key with exact workspace/environment and explicit minimum permissions; trusted server only.

Select environments deliberately

A workspace credential belongs to one workspace and one test or live environment. The credential selects the actual environment on the server; the SDK’s environment value records your intended scope. Issue a matching key in the dashboard. Changing a client label cannot move data between environments.

For these booking examples grant Read and Book.

Other permissions

Catalog writes additionally need Edit catalog; customer/webhook administration needs Manage customers and webhooks. Linking a contact to a booking requires both Book and Manage customers and webhooks. Erasure and history pruning require Privacy plus customer management; expired-receipt pruning needs Privacy.