API reference

Developer API

Foundation Beta reference for API keys, Inkwell billing, rate limits, and the first 121 v1 endpoints.

Early access

Authentication

Create API keys from /app/developer. Keys have a name, a read_only or read_write scope, and a one-time plaintext reveal. After creation, the console shows only the last four characters.

curl https://www.121collaborative.ai/api/v1/me \
  -H "Authorization: Bearer 121_live_your_api_key"

Rate limits

TierRequests/minRequests/day
Free601000
PWYC1205000
Standard60050000
Patron1200250000

Responses include X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset.

Billing

API usage counts against the same Inkwell allowance ledger as hosted app usage. Spend events use raw_cost x 1.80 x 1.15 and round up to exact allowance units. If allowance is unavailable, endpoints return 402 Payment Required with a top-up URL.

Endpoints

MethodPathScopeDescription
GET/api/v1/meread_onlyReturn the authenticated peer profile, tier, allowance remaining, and subscription status.
GET/api/v1/usageread_onlyReturn the last 30 days of API usage, grouped by UTC day.
GET/api/v1/tierspublicReturn public Inkwell tier pricing and the raw-cost pricing formula.
POST/api/v1/inkwell/spendread_writeRecord an Inkwell spend event and decrement the peer's daily allowance.
GET/api/v1/research/papersread_onlyList the 121 research bundle papers exposed through the research MCP surface.
GET/api/v1/declarationread_onlyReturn the current public Declaration text, status, version, and canonical URL.

Spend example

curl https://www.121collaborative.ai/api/v1/inkwell/spend \
  -H "Authorization: Bearer 121_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"provider":"external-integration","raw_cost_cents":12,"metadata":{"job_id":"example"}}'

Errors

401
{ "error": "Invalid API key." }

402
{
  "error": "insufficient_allowance",
  "current_allowance_remaining": 0,
  "top_up_url": "https://www.121collaborative.ai/app/usage"
}

429
{ "error": "rate_limited", "reason": "minute" }

Coming soon

Webhooks are coming soon. SDKs are coming soon and will link to GitHub when ready.