- 59 typed API operations
- 13 synced entities (
categories,customers,discounts,employees,items,merchant, and 7 more) for fast.search()/.list()
Setup
1
Install
2
Add the plugin
corsair.ts
corsair.withTenant(id). See Quick start for KEK + Hub keys, and Multi-tenancy for account isolation.3
Choose authentication
- OAuth 2.0 (Recommended)
Open hub.corsair.dev, navigate to your project, and enter the client ID and client secret from your Loyverse OAuth app.More: OAuth 2.0
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
categories.get
categories.delete
Query synced data
Synced entities supporttenant.loyverse.db.<entity>.search() and .list(): categories, customers, discounts, employees, items, merchant, modifiers, paymentTypes, posDevices, stores, suppliers, taxes, variants.
See Database for filters and operators.
What’s next
API reference
Every
loyverse.api.* operation with input and output types.Database
Synced entities, search filters, and operators.
Connect / OAuth
createLink, Hub delivery, and tenant connect flows.
Use with agents
Expose this plugin’s operations as MCP tools.