Using RulingLens where you already work

One account, one meter, many doors. Every integration below uses an API key from your RulingLens account (Account → API keys → New key; Starter plan and above). A key is shown once; copy it then. Revoking a key on the account page disconnects everything that used it.

Whatever the door, the answer is the same: the six-digit HS subheading (the measured answer), a ruling mark that says how many of the three most similar earlier CBP rulings carry that code, the three rulings with links, and the eight-digit U.S. line the description most likely supports, marked for your broker's review. Ten-digit statistical suffixes are listed from the tariff schedule and never chosen. Nothing here is a code to file; your licensed broker decides.

Each check costs one check from your plan, wherever it came from. History shows them all, with where they came from.

The web app

Check. Name + description → the result. Material, function and use matter most; leave out any tariff code you already have in mind (the service refuses text that states its own classification). Under the result: Watch this code and, when Watch is on, the Federal Register actions of the last 180 days that name the code or its heading.

History. Every finished check, newest first. Search, filter by mark or source, Open to see the result as it was that day, Re-check to run it again against today's rulings, Export CSV.

Audits. Upload a CSV, Excel sheet or CBP 7501 PDF of entries. If the columns are not obvious you are asked which is the description and which the code. Every line is re-classified and sorted: disagreements first, then lines to review, then agreements. Download the Excel, CSV or HTML report. Pro and Team plans include audit lines each month; the $299 one-off audit covers 2,000 lines for 90 days.

Watch. The codes you keep an eye on and what the last seven days brought for them. The Monday digest emails you only in weeks when something named a watched code.

Account. Plan and meters, the plans, API keys, webhooks, integrations, team seats, billing.

Slack

In any channel:

/hs cotton canvas tote bag with two straps, unlined

RulingLens says it is working, then replaces that with the result, visible to the channel. "Name: description" splits the two fields (/hs Canvas tote: cotton canvas tote bag…).

Once per workspace, someone with a RulingLens key links it: /hs link rl_live_… (only they see the reply; the key is never shown again). /hs unlink undoes it. Checks count against the account behind that key.

Your workspace needs the RulingLens app installed by an admin (the Slack App Directory listing, or the install link from RulingLens).

Discord

Slash commands in a server where the RulingLens app is installed:

In a direct message with the bot the link is per person. Add the app to a server with the invite link from RulingLens.

WooCommerce

A WordPress plugin. Install: download rulinglens-for-woocommerce.zip, Plugins → Add New → Upload, activate. Then WooCommerce → RulingLens → paste your API key.

Shopify

A standalone app. Install from the link RulingLens gives you (…/integrations/shopify/install?shop=your-store.myshopify.com), accept the two permissions (read and write products), then paste a RulingLens key on the app page once.

Google Sheets

A script you add to a spreadsheet (Extensions → Apps Script; the two files are in the RulingLens repository under integrations/google-sheets). Reload the sheet; a RulingLens menu appears; Set API key… once.

The key is kept with the sheet's script, not in a cell — anyone who can edit the script can read it, so share such a sheet as you would share the key.

Zapier

Search for RulingLens when adding a step (private integrations appear through the invite link RulingLens gives you). Connect with your API key.

n8n

Self-hosted n8n: Settings → Community Nodes → Install → n8n-nodes-rulinglens. Add a RulingLens node, create the credential with your key, pick Classify Product, Tariff Actions (Watch) or Usage. The classify output is flat fields you can map straight into the next node.

No install: import the workflow template classify-sheet-rows.json (in the repository under integrations/n8n/templates). It uses n8n's own HTTP Request node — create one Header Auth credential, name Authorization, value Bearer rl_live_… — and reads a Google Sheet, checks the rows that have no code yet, and writes six columns back.

Claude, Cursor and other MCP clients

Shell
pip install rulinglens-mcp        # or, without installing: uvx rulinglens-mcp

Claude Desktop (claude_desktop_config.json) or Cursor (.cursor/mcp.json):

JSON
{ "mcpServers": { "rulinglens": { "command": "rulinglens-mcp", "env": { "RULINGLENS_API_KEY": "rl_live_..." } } } }

Claude Code: claude mcp add rulinglens -e RULINGLENS_API_KEY=rl_live_... -- rulinglens-mcp

Then ask in plain words — "classify a cotton canvas tote bag with two straps", "audit this CSV of entries", "how many checks do I have left". Three tools: classify_product, audit_entries, usage.

The REST API

For your own systems. POST /v1/classify with {"name", "description"} and the key as a bearer token answers in about twenty seconds with the full result; POST /v1/checks starts one and GET /v1/checks/{id} collects it. Audits, reports, history, watch and your account are all there. The guide with every call is at /docs/api; the machine-readable description at /v1/openapi.json.

Webhooks

Account → Webhooks: add an https URL and pick the events. RulingLens POSTs JSON when a check finishes (the summary and the full result) or an audit finishes (counts and report links). Every delivery is signed with the secret shown when you added the endpoint; the page links to copy-paste verification code for Python and Node. Deliveries are retried twice; an endpoint that fails ten times in a row is paused until you add it again.

Team seats

Account → Team (Team plan): invite by email, send the one-use link, and the teammate's checks and audits draw from your plan. History shows who ran what. Keys and billing stay with you; a teammate can leave, you can remove them.

Good descriptions

What it is, what it is made of, what it is used for; size and how it is sold if they matter ("retail pack of 12", "for household use"). Fifteen to forty words is usually right. Leave out any code you already have in mind: the answer is measured on cold text, and a code in the description would be an answer handed to the model rather than earned.