- 3 typed API operations
Setup
1
Install
2
Add the plugin
corsair.ts
multiTenancy: true, scope calls with corsair.withTenant(id). See Quick start for KEK + Hub keys, and Multi-tenancy for account isolation.3
Choose authentication
- API Key (Recommended)
Store the Snowflake API key before the first call: More: API Key
pnpm corsair setup --plugin=snowflake --tenant=acme api_key=<your-key> (leave out --tenant without multiTenancy), or pass it as key in the plugin options. With Hub, each tenant enters their own key on the connect page. See API key auth.Statement calls also need the account host. Pass account here, or store it as the account credential. It is the identifier in https://<account>.snowflakecomputing.com, or that full URL. That is separate from corsair.withTenant().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
Fetch a result partitionWhat’s next
API reference
Every
snowflake.api.* operation with input and output types.Connect / OAuth
createLink, Hub delivery, and tenant connect flows.
Use with agents
Expose this plugin’s operations as MCP tools.