- 30 typed API operations
- 6 database entities synced for fast
.search()/.list()queries
Setup
1
Install
2
Add the plugin
- Solo
- Multi-Tenant
corsair.ts
3
Get credentials
Follow Get Credentials if you need help getting keys.
4
Store credentials
- Solo
- Multi-Tenant
api_key=, bot_token=, or OAuth client fields).Authentication
Each tab shows how to register the plugin for that authentication method. The defaultauthType from the plugin does not need to appear in the factory call.
- OAuth 2.0 (Default)
- API Key
corsair.ts
pnpm corsair setup --plugin=spotify (see Get Credentials for field names). For OAuth, you typically store integration keys at the provider level and tokens per account or tenant.More: OAuth 2.0Query synced data
Synced entities supportcorsair.spotify.db.<entity>.search() and .list(). See Database for filters and operators.
Example API calls
Read-style (read):albums.get
player.addToQueue
pnpm corsair list --plugin=spotify and pnpm corsair schema <path> locally to inspect schemas.
Hooks
Usehooks on API calls and webhookHooks on incoming events to add logging, approvals, or side effects. See Hooks and Webhooks for routing and payload patterns.