Skip to main content
Use Storerocket through Corsair: one client, typed API calls. Tokens are created at storerocket.io/app/api-tokens and authenticate with the Bearer scheme; the docs say not to use an X-API-Key header or a token in the URL. Token permissions select what works: location:read for reads, location:create, location:update and location:delete for writes, and location operations also require the project’s API access (Business plan). The shared limit is 1,000 requests per minute; a 429 carries Retry-After and this plugin waits it out. Location POST, PATCH and PUT have no idempotency contract (the docs warn a retried POST can create a second location), so only reads are replayed on a 5xx; special-hours POST and PATCH accept an Idempotency-Key header. Location list reads paginate with page and limit (1 to 100) and return links.next plus meta totals; keep the same filters and include flags on every page. List filters use bracket notation (city[eq]=Seattle) and only the documented field/operator combinations are accepted. The legacy V1 location and lead API is not covered; this plugin builds against the current v2 contract. What you get:
  • 13 typed API operations

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 locations of a project
Create a location with a full week of hours
See the full list on the API page.

What’s next

API reference

Every storerocket.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.