Agent APIHTS.EPI.ME API docsPricing llms.txt

Agent API guide

Base URL: https://hts.epi.me

This file is the single free/paid map for agents. The OpenAPI document at /openapi.json remains the machine-readable source.

1. Authentication and payment

ModeHeaderUse
No authnoneFree endpoints only
API keyX-API-Key: hts_live_... or Authorization: Bearer ...Paid endpoints without x402
x402PAYMENT-SIGNATURE (v2) or X-PAYMENT (v1)Pay-per-call in USDC
Workspace keyX-API-Key: ws_... on /v1/workspace/*Tenant-scoped workspace
Admin tokenX-Admin-TokenTenant, member, and key management

A paid request without a key or payment first receives 402 with an x402 challenge. Reuse the challenge's accepts entry, sign it, and retry with PAYMENT-SIGNATURE. USDC only: Base mainnet or Solana.

2. Free endpoints

MethodPathReturns
GET/healthService, mode, network, Stripe state, prices
GET/v1/hts/search?q=Up to 8 HTS candidates, no rates
GET/v1/hts/catalog63 demo product terms
GET/v1/hts/releasesCurrent USITC release and latest diff
GET/v1/classify/hints?q=Candidate classification hints
GET/v1/screen/hints?q=OFAC screening hints
GET/v1/cpsc and /v1/cpsc/hintsCPSC recall screening
GET/v1/uflpa and /v1/uflpa/hintsUFLPA entity screening
GET/v1/rulings?number=Official CBP CROSS ruling text
GET/v1/rulings?q=&code=Official CROSS search link or local import
GET/v1/policy-events?q=Federal Register titles and links
GET/v1/coverage?code=Which measure datasets cover an HTS8
GET/v1/data-versionsDataset dates and modes
GET/v1/plansPlans and quotas
GET/v1/accountKey holder's account (key required)
GET/v1/invoicesInvoices (key required)
GET/POST/DELETE/v1/watch*Change-feed webhooks (key required)
GET/v1/proofPublic settled-payment proof

Free rate limit: 30 requests/minute per client IP.

3. Paid endpoints

PriceMethodPathReturns
$0.005GET/v1/hts/{code}Exact HTS line, MFN/special/other rates, units
$0.005GET/v1/hts/{code}/dutyItemised duty + breakdown
$0.005GET/v1/measures301/232/AD-CVD metadata, periods, exclusions
$0.005GET/v1/measures/changesEffective-date events since a date
$0.010GET/v1/landed-costLanded cost with fees and freight
$0.020GET/v1/trade-actions301/232/AD-CVD/IEEPA status with citations
$0.010GET/v1/classifyClassification candidates and reasoning
$0.010GET/v1/screenOFAC/BIS screening; never a clearance
$0.010GET/v1/admissibilityCombined entity admissibility screen
$0.010GET/v1/market/statsCensus import/export values by HS6
$0.010POST/v1/origin/qualifyUSMCA questionnaire and evidence gaps
$0.005POST/v1/documents/checkInvoice/packing/origin field check
$0.003/rowPOST/v1/landed-cost/batchUp to 200 rows; min $0.01, max $0.60
$0.005/rowPOST/v1/screen/batchUp to 50 rows; min $0.01
$99GET/v1/datasetOne-time dataset bundle download

Duty parameters

/v1/hts/{code}/duty accepts:

value_usd             required
quantity, unit        for specific or compound rates
origin_country        two-letter code
as_of                 YYYY-MM-DD legal-date view
entry_type            auto | formal | informal | none
transport_mode        ocean | air | other
adcvd_rate_pct        caller-supplied exporter rate
product_description   Section 301 exclusion scoring
exporter              AD/CVD company-rate lookup
metal_content_pct     Section 232 15% threshold
copper_content_pct    copper content for multi-list aggregate
aluminum_content_pct  aluminum content for multi-list aggregate
steel_content_pct     steel content for multi-list aggregate
us_content_pct        copper cable 85% U.S. content tier
parts_use             agricultural/fixed/mobile industrial equipment
column1_rate_pct      column 1 rate for 9903.82.23-.26

Unknown inputs are returned as missing, never as zero.

4. Trial rules

/v1/hts/{code}/duty, /v1/landed-cost, /v1/trade-actions, /v1/classify, /v1/screen.

search_hts, screen_uflpa, search_cpsc_recalls, get_hts_release.

get_trade_actions, classify_product, screen_sanctions, estimate_landed_cost_batch, get_measures, get_measure_changes.

5. Workspace

Tenant-scoped reads with X-API-Key: ws_...:

GET /v1/workspace/skus
GET /v1/workspace/scenarios
GET /v1/workspace/reports
POST /v1/workspace/skus
POST /v1/workspace/scenarios
POST /v1/workspace/reports

Admin token required:

POST   /v1/workspace/tenants
POST   /v1/workspace/members
POST   /v1/workspace/members/role   {tenant_id, member_id, role}
GET    /v1/workspace/members?tenant_id=
GET    /v1/workspace/keys?tenant_id=[&member_id=]
GET    /v1/workspace/audit?tenant_id=[&limit=]
POST   /v1/workspace/keys/rotate   {tenant_id, member_id}
POST   /v1/workspace/keys/revoke   {tenant_id, fingerprint}
DELETE /v1/workspace/members/<id>?tenant_id=

Keys are shown once at issue or rotation. The listing returns only a 16-character fingerprint.

6. Agent decision table

GoalCall
Find an HTS candidatefree /v1/hts/search
Exact current ratepaid /v1/hts/{code}
Duty for one shipmentpaid /v1/hts/{code}/duty
Total landed costpaid /v1/landed-cost
Why a duty appliespaid /v1/trade-actions or /v1/measures
Rules on a past datepaid /v1/measures?as_of= or /duty?as_of=
What changed recentlypaid /v1/measures/changes?since=
Section 301 exclusion candidate/duty with product_description
Sanctions/admissibilityfree hints, then paid /v1/screen or /v1/admissibility
CBP ruling textfree /v1/rulings?number=
Market sizepaid /v1/market/stats
Batch pricing/v1/landed-cost/batch

7. Errors and guards

The API never treats a missing measure as zero. Applied measures carry a source, effective dates or missing; AD/CVD is not auto-added without an explicit rate; screening never returns "cleared".