Build on CL<SS>
CL<SS> is a platform, not just a website. People — and, increasingly, their AI agents — file claims, follow classes, file supporting evidence and track case movement through the same public API and MCP server the site itself is built on. We expect most filings to be made primarily by agents; this page is the whole integration story: one API key, three surfaces.
One key, every surface
A single scoped clss_… API key authenticates REST v1, webhook management and the MCP server. Scope it narrowly, revoke it instantly — revocation takes effect on the key's next request.
Agents act as their user
There is no separate agent identity in v1. Every write is recorded against the key's owner, and evidence additionally records which key filed it, so anything an agent does can be traced and undone.
Nothing is public on arrival
Evidence filed through the API or MCP starts as PENDING_REVIEW. It appears nowhere public — not on the claim page, not in search, not in the documents counter — until a human moderator approves it.
Same code, every surface
REST v1 and the MCP tools call the exact lib/ functions the website uses. Behaviour — dedup, counters, notifications, saved-search alerts — cannot drift between the site and the platform.
Get an API key
- Create an account. Sign up or log in. Keys belong to a user account and act with that account's identity. Log in or sign up
- Open Account → API Keys. Key management lives in your account, under the API Keys tab. It is session-only by design: an API key can never create or revoke keys. Open the API Keys tab
- Name the key and pick its scopes. Give the key a name your future self will recognise (“My assistant”) and grant only the scopes the integration needs. At most 10 live keys per account; an optional expiry can be set at creation.
- Copy the key — it is shown once. The full key (clss_… , 40 characters) is displayed exactly once at creation. Only its prefix and a SHA-256 hash are stored, so a lost key cannot be recovered — revoke it and mint a new one.
- Send it as a Bearer token. Every REST and MCP request carries the header Authorization: Bearer clss_… — no other scheme exists in v1.
REST API v1
- Base URL: the site origin + /api/v1. Every response carries CLSS-API-Version: 1 and X-RateLimit-Limit / X-RateLimit-Remaining / X-RateLimit-Reset headers.
- Errors share one shape on every surface: { "error": "<code>", "message": "<human-readable>" }, with a fields map on validation failures (400 invalid_input). v1 adds invalid_api_key and key_revoked (401), insufficient_scope and email_unverified (403), and rate_limited (429, with Retry-After in seconds).
- Pagination is cursor-based: ?cursor=<opaque>&limit=<1–100, default 25> returns { data: [...], nextCursor }. Cursors are signed and bound to the query; a tampered cursor is a 400.
- Dates are ISO-8601 UTC, money is decimal strings, IDs are cuids — identical to the web API. Within v1, changes are additive only; breaking changes ship as /api/v2.
# Search claims with your key (replace the host with this site's origin): curl "https://YOUR-HOST/api/v1/claims?q=blender" \ -H "Authorization: Bearer clss_YOUR_KEY" # Your classes and their latest updates: curl "https://YOUR-HOST/api/v1/me/updates" \ -H "Authorization: Bearer clss_YOUR_KEY"
| Endpoint | Scope | What it does |
|---|---|---|
| GET /api/v1/ping | claims:read | The smallest authenticated call — proves a key, its scopes and the rate-limit headers end to end. |
| GET /api/v1/claims | claims:read | Search and discover claims (q, liable, status, sort, minMembers), cursor-paginated. Anonymised summaries only — never individual filings or filer identity. |
| POST /api/v1/settlements/match | claims:read | Public (no key required; higher limit with key) structured eligibility matcher: pass non-PII brands, keywords, optional US state and timeframe to get ranked open settlements with deadlines and official claim links. |
| GET /api/v1/claims/[id] | claims:read | One claim's detail: summary, anonymised text, posts and news. Increments the view counter exactly as the web page does. |
| GET /api/v1/claims/[id]/charts | claims:read | The claim's damage-distribution and damages-by-date series (members scope). |
| GET /api/v1/claims/[id]/events | claims:read | The claim's event history from the ClaimEvent ledger, newest first. |
| GET /api/v1/events | claims:read | The public event feed across claims; filter by claimSummaryId and type, resume with since. |
| GET /api/v1/me/classes | me:read | The key owner's classes — claims they filed, joined or follow — with their relationships and lastEventAt. |
| GET /api/v1/me/updates | me:read | The personal update feed: events for the owner's classes. Pass since=<last event id> to resume with no duplicates or gaps. |
| GET /api/v1/me/deltas | me:read | “Since you last showed up” deltas. Documented loudly: this read advances the baseline (consume-once), exactly like the web endpoint. |
| GET /api/v1/me/evidence | evidence:write | The owner's own evidence rows and their moderation state, newest first. |
| POST /api/v1/claims | claims:write | File a claim (truthCertified must be literally true). A near-duplicate returns 409 possible_duplicate with the existing summaryId — offer to join instead. |
| POST /api/v1/claims/[id]/join | claims:write | Join an existing claim with the same filing fields as filing a new one. |
| POST /api/v1/claims/[id]/follow | follows:write | Follow a claim — the follow-first rule: webhook subscriptions only fire for claims in the owner's classes. |
| DELETE /api/v1/claims/[id]/follow | follows:write | Unfollow a claim. Idempotent. |
| POST /api/v1/claims/[id]/lawyer-interest | lawyer:interest | Signal a law firm's interest in representing a claim. Requires a verified account email; members of the claim are notified. |
| DELETE /api/v1/claims/[id]/lawyer-interest | lawyer:interest | Withdraw a previously submitted lawyer interest. |
| POST /api/v1/evidence/uploads | evidence:write | Start a DOCUMENT evidence upload: validates the declared type and size and returns a presigned PUT URL (15 minutes). Creates no evidence row. |
| POST /api/v1/claims/[id]/evidence | evidence:write | File evidence (DOCUMENT via uploadId, LINK via externalUrl, or a STATEMENT) against a claim. Lands PENDING_REVIEW — see the moderation principle above. |
| POST /api/v1/webhooks | webhooks:manage | Create a webhook subscription. The whsec_… signing secret is returned ONCE, in this response. |
| GET /api/v1/webhooks | webhooks:manage | List the owner's subscriptions. Secrets are never returned again. |
| GET /api/v1/webhooks/[id] | webhooks:manage | One subscription, with its recent deliveries and their statuses. |
| PATCH /api/v1/webhooks/[id] | webhooks:manage | Change a subscription's events, claim narrowing, or active state (re-activating also clears an auto-pause). |
| DELETE /api/v1/webhooks/[id] | webhooks:manage | Delete a subscription. |
| POST /api/v1/webhooks/[id]/rotate-secret | webhooks:manage | Rotate the signing secret. The new secret is shown once; the old one stops working immediately. |
Scopes
A request needing a scope the key lacks gets 403 insufficient_scope. Grant the minimum an integration needs — scopes are the whole permission model.
| claims:read | Discovery and search, claim detail, charts, and the public event feed. |
| me:read | The owner's own classes, update feed and since-last-visit deltas. |
| claims:write | File a claim and join a claim, as the owner. |
| follows:write | Follow and unfollow claims. |
| lawyer:interest | Submit and withdraw lawyer interest (the account email must be verified). |
| evidence:write | Submit evidence and read back the owner's own evidence and its moderation state. |
| webhooks:manage | Create, list, change and delete webhook subscriptions. |
Rate limits
Per key, fixed windows. Every response carries the X-RateLimit-* headers; over the limit is 429 rate_limited with Retry-After.
- Reads: 300 per minute — claims:read and me:read calls.
- Writes: 30 per minute — claims:write, follows:write and lawyer:interest calls.
- Evidence: 10 per hour — evidence:write calls (plus the pending-review caps: at most 10 pending items per claim and 50 submissions per day, per user).
- Webhooks: 30 per minute — webhooks:manage calls.
MCP server — for agents
The MCP server (Streamable HTTP, JSON-RPC) exposes the same operations as tools, over the same code. Connect in five steps — these are the exact steps verified against the live server design:
- Create an API key in Account → API Keys with the scopes your agent needs (keys are shared with REST — there is no separate MCP credential).
- Point your MCP client at POST <this site's origin>/mcp and configure the header Authorization: Bearer clss_… on every request. The endpoint is stateless: no session handshake state is kept server-side.
- Send an initialize request (protocol 2025-03-26 or 2024-11-05); the server answers as “clss” version 1 with tools-only capabilities. Clients that only need discovery can read GET /.well-known/mcp — no key required — for the endpoint, auth scheme and this page's URL.
- Call tools/list: it returns the full tool set below (names, descriptions and input schemas; scopes are enforced per call, never listed).
- Call tools/call with a tool name and its arguments. A key missing the tool's scope gets a clean insufficient_scope tool error naming the scope — never a crash. Tool errors carry the REST error code verbatim, with one exception: file_claim's dedup hit is a normal result ({ possibleDuplicate: true, summaryId }) so the agent can offer join_claim.
{
"jsonrpc": "2.0",
"id": 1,
"method": "initialize",
"params": {
"protocolVersion": "2025-03-26",
"capabilities": {},
"clientInfo": { "name": "your-agent", "version": "1.0" }
}
}{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "search_claims",
"arguments": { "q": "blender", "limit": 10 }
}
}| Tool | Scope | What it does |
|---|---|---|
| search_claims | claims:read | Search and discover claims (the v1 read API's GET /api/v1/claims). Public (no API key required). Returns anonymised claim summaries only — never individual filings or filer identity. |
| get_claim | claims:read | One claim's detail (GET /api/v1/claims/[id]) — summary, anonymised text, recent posts and news — plus its members chart summary. Public (no API key required). |
| match_settlements | claims:read | Check which open class-action settlements a user may qualify for (POST /api/v1/settlements/match). Public (no API key required). Pass ONLY non-PII attributes (brands/companies, keywords/categories, 2-letter US state, approximate years) — never pass the user's name, email, address, or account numbers. |
| list_my_classes | me:read | The key owner's classes (GET /api/v1/me/classes): claims they filed, joined or follow, newest activity first. Requires Bearer API key. |
| get_my_updates | me:read | The key owner's personal update feed (GET /api/v1/me/updates): ClaimEvents for their classes, newest first. `since` resumes from the last event id seen (or an ISO timestamp). Requires Bearer API key. |
| file_claim | claims:write | File a new claim as the key's owner (POST /api/v1/claims). Requires Bearer API key and explicit user confirmation (truthCertified: true). On a dedup hit this RETURNS { possibleDuplicate: true, summaryId } as a normal result — offer join_claim instead. |
| join_claim | claims:write | Join an existing claim as the key's owner (POST /api/v1/claims/[id]/join), with the same filing fields as file_claim. Requires Bearer API key. |
| follow_claim | follows:write | Follow a claim as the key's owner (POST /api/v1/claims/[id]/follow). Requires Bearer API key. |
| unfollow_claim | follows:write | Unfollow a claim as the key's owner (DELETE /api/v1/claims/[id]/follow). Idempotent. Requires Bearer API key. |
| request_evidence_upload | evidence:write | Start a DOCUMENT evidence upload (POST /api/v1/evidence/uploads): returns a presigned PUT URL (15 min). PUT the bytes there, then call file_evidence with the uploadId. Creates no evidence row. Requires Bearer API key. |
| file_evidence | evidence:write | File evidence against a claim (POST /api/v1/claims/[id]/evidence). Everything filed lands PENDING_REVIEW — nothing is public until a human moderator approves it. Requires Bearer API key. |
| get_evidence_status | evidence:write | The key owner's own evidence and its moderation state (GET /api/v1/me/evidence). With evidenceId, returns that one row; otherwise lists their rows, newest first. Requires Bearer API key. |
| register_webhook | webhooks:manage | Create a webhook subscription (POST /api/v1/webhooks). The signing secret is returned ONCE, in this result. Subscriptions fire for events on the owner's classes. Requires Bearer API key. |
| list_webhooks | webhooks:manage | List the key owner's webhook subscriptions (GET /api/v1/webhooks). Secrets are never returned. Requires Bearer API key. |
| delete_webhook | webhooks:manage | Delete one of the key owner's webhook subscriptions (DELETE /api/v1/webhooks/[id]). Requires Bearer API key. |
Machine-readable discovery: GET /.well-known/mcp returns the endpoint, the auth scheme and this page.
Webhooks
Subscribe (REST, or the register_webhook MCP tool) to claim events instead of polling: CLAIM_CREATED MEMBER_JOINED LAWYER_INTEREST STATUS_CHANGED NEWS_ADDED EVIDENCE_APPROVED
- A subscription receives events only for claims in its owner's classes (filed, joined or followed) — follow a claim first if you want its events — narrowed further by the subscription's claimSummaryIds when set, and only for the event types it listed.
- Delivery is at-least-once and ordering is best-effort: dedupe on the payload's id (the ClaimEvent id, also sent as the CLSS-Event-Id header). The event feed (GET /api/v1/events) is the authoritative ordered record.
- Retries: a failed delivery retries after +1 minute, +5 minutes, +30 minutes, +2 hours, +12 hours and +24 hours (7 attempts total), then is DEAD. A 4xx response (except 408/429) is permanent and goes straight to DEAD. Three consecutive DEAD deliveries auto-pause the subscription and notify the owner in-app.
- Receivers must answer 2xx within 10 seconds. Subscription URLs must be https with a public host; loopback and private addresses are rejected at creation and again at delivery.
Every delivery is a POST with headers CLSS-Event-Id, CLSS-Event-Type and CLSS-Signature, and a body like:
{
"id": "cm…",
"type": "STATUS_CHANGED",
"apiVersion": "1",
"createdAt": "2026-10-20T14:03:00Z",
"claim": { "id": "cm…", "claimText": "…", "liable": "…",
"status": "REPRESENTED", "totalMembers": 12,
"totalDamages": "1250.00" },
"data": { "from": "GATHERING", "to": "REPRESENTED" }
}Verify a delivery before trusting it:
- Read the CLSS-Signature header: it has the form t=<unix seconds>,v1=<hex>. Keep the RAW request body — verification runs over the exact bytes received.
- Reject the delivery if the timestamp is more than 5 minutes from your clock (replay window).
- Compute v1 = HMAC-SHA256(your subscription secret, "<t>" + "." + <raw body>), hex-encoded. The secret is the whsec_… value shown once when the subscription was created (or last rotated).
- Compare your v1 with the header's v1 using a constant-time comparison. Equal means the delivery is genuine and untampered.
See also: How ranking works (the open ranking algorithm) · Discover claims · Your API keys