@tmterminal/http-client
v4.0.0
Published
Typed HTTP client for the Trademark Terminal API
Readme
Trademark Terminal HTTP Client
Typed access to Trademark Terminal search, identity lookup, listing-text screening, rich text matching, recent activity, account context, and service status.
Install
bun add @tmterminal/http-clientUse
import { createTmterminalClient } from "@tmterminal/http-client";
const client = createTmterminalClient({
apiKey: process.env.MERCHBASE_API_KEY!,
});
const results = await client.trademarks.search({
match: "both",
mode: "multi",
query: "terminal club",
status: "live",
});
const trademark = await client.trademarks.get({
serialNumber: "60146682",
});
const screened = await client.trademarks.screen({
text: "Terminal Club shirt",
type: "all",
});
const matches = await client.trademarks.match({
texts: [
{ id: "title", text: "Terminal Club shirt" },
{ id: "brand", text: "Quiet Supply" },
],
type: "all",
});Methods return promises directly. Named input and output types are derived from
the server router. screen returns each matching live trademark once; match
retains named documents and occurrence spans for richer applications.
TmterminalError is the stable error surface.
See the HTTP API reference for authorization, pagination, matching, screening, and error contracts.
