Keys, Billing & Bundles

Creating a key is the only part of account management exposed over the public REST API. Everything else — upgrading plans, adding bundles, managing passkeys, viewing usage — is done from your console, not via API call.

Create a key

POST /v1/keys/create — no auth required (this is how you get your first key). One key per email; the raw key is also emailed to you.

curl -X POST "https://api.cornerdatastore.com/v1/keys/create" \
  -H "Content-Type: application/json" \
  -d '{"email": "you@example.com"}'
Response
{
  "key": "cds_sk_3f9a1b2c4d5e6f7a8b9c0d1e2f3a4b5c",
  "key_prefix": "cds_sk_3f9a1b",
  "plan": "starter",
  "monthly_limit": 100
}

Confirmed exact shape; the key value itself is illustrative (yours will differ, and it's never shown again after this response — save it now). 409 if a key already exists for that email.

Check your quota

GET /v1/keys/quota

curl "https://api.cornerdatastore.com/v1/keys/quota" \
  -H "X-Api-Key: YOUR_API_KEY"
Response
{
  "plan": "starter",
  "monthly_limit": 100,
  "calls_used": 37,
  "calls_remaining": 63,
  "resets_at": "2026-11-01T00:00:00Z"
}

Confirmed exact shape; usage figures illustrative. 401 with {"error": "invalid_api_key"} if the key is wrong or inactive.

Over quota

Any gated route returns 429 once you exceed your plan's monthly limit:

429 response
{
  "error": "quota_exceeded",
  "message": "Monthly API quota exceeded on the starter plan.",
  "plan": "starter",
  "limit": 100,
  "calls_used": 100,
  "resets_at": "2026-11-01T00:00:00Z",
  "upgrade_url": "https://cornerdatastore.com/upgrade?key=cds_sk_3f9a1b..."
}

Confirmed exact shape.

Trial and bundles

Every account picks one bundle free at signup — 100 calls/month on that bundle, no time limit, stay there as long as you like. Adding any paid bundle tier ($4.99/mo for 1, up to $24.99/mo for all 9) both widens which bundles you can reach and raises your cap to 3,000 calls/month — one purchase, two effects, no separate plan to pick, no trial period on the payment itself (bills immediately via Stripe Checkout). Manage bundles from console/bundles.

GET https://auth.cornerdatastore.com/bundles lists the 9 active bundles (bundle_id, display_name, description) — public, no auth, used by the signup picker. There is no endpoint to query which bundles a given key can reach; an unentitled call returns a 403 naming the missing bundle instead.

All keys/billing endpoints

MethodEndpointDescription
POST/v1/keys/createCreate a free starter key (no auth)
GET/v1/keys/usageUsage detail for the authenticated key
GET/v1/keys/quotaPlan, limit, calls used/remaining, reset date
POST/v1/install/tokenGenerate a Claude Desktop install token
GET/v1/install/token/{token}Redeem a single-use install token