Skip to content
Trackshon

Developers

HTTP API for your own systems

Trackshon stays a product you use in the browser. The API is a paid parallel door: mint a key in Settings, call the same value loop from your site or backend, and stay inside your Solo / Team / Studio meters. Nothing is posted or messaged for you.

1. Get a key

  1. Subscribe to Solo or above at /start.
  2. Open Settings → API keys as a workspace admin. Create a key. Copy the plaintext once.
  3. Send Authorization: Bearer tk_live_… on every request. The workspace is taken from the key, so never send a workspace id in the body.

2. Endpoints

Base URL: https://www.trackshon.com (use the www host). JSON in, JSON out. Field names are camelCase and unknown fields are rejected, so a typo fails loudly instead of being ignored.

MethodPathScopeNotes
POST/api/v1/eventsevents:writeAppend ledger events. Each event needs idempotencyKey.
GET/api/v1/eventsevents:readPaginated ledger read (?limit=&before=).
GET/api/v1/treetree:readKPI tree with Wilson rates and criteria.
POST/api/v1/armsarms:writeRegister a tracked post; get code + short /r/{code} link.
POST/api/v1/analyzeanalyzeRun a page/idea audit. Same monthly/hourly caps as the app.
POST/api/v1/scoutscoutRun a deep scout. Same weekly allowance as the app.
GET/api/v1/opportunitiesopportunities:readRead matches and drafts (?drafted=1).
POST/api/v1/searchsearchSearch the open web. Several engines, fused and re-ranked; optionally returns the text of the top pages.
POST/api/v1/extractsearchReadable text and metadata for up to five public URLs.

3. Log an outcome

curl -X POST https://www.trackshon.com/api/v1/events \
  -H "authorization: Bearer $TRACKSHON_API_KEY" \
  -H "content-type: application/json" \
  -d '{"events":[{"type":"conversation.dm","person":{"handle":"amara"},"note":"asked about self-host","idempotencyKey":"dm:amara:1"}]}'

outreach.sent is always stored with props.outcome=false so activity never inflates conversation counts. Retries with the same idempotencyKey are safe.

4. Search and read the web (beta)

Search and page reading come with your plan, on the same key as the rest of the API. It is a metasearch, not an index of our own: one call asks general web engines and several smaller sources (Hacker News, Stack Exchange, GitHub, Wikipedia), merges duplicates, re-ranks on how well each result covers your words, and can return the readable text of the top pages.

Know the limits before you build on it. Capacity is small and shared by every customer: the general web engines give our server a few fresh queries a minute. The same request repeated within 15 minutes is served from cache. When those engines are busy you still get an answer from the smaller sources, marked meta.limited: true. Expect 2 to 20 seconds a call. It suits a handful of lookups inside an agent or a nightly job. For bulk or low-latency search, use a dedicated search API.

curl -X POST https://www.trackshon.com/api/v1/search \
  -H "authorization: Bearer $TRACKSHON_API_KEY" \
  -H "content-type: application/json" \
  -d '{"query":"looking for a tool to track which replies turned into customers","mode":"discussions","maxResults":8}'
{
  "query": "looking for a tool to track which replies turned into customers",
  "results": [
    { "title": "…", "url": "https://…", "domain": "news.ycombinator.com", "snippet": "…",
      "publishedAt": "2026-11-28", "score": 0.82, "engines": ["ddg", "hackernews"] }
  ],
  "meta": { "tookMs": 3140, "cached": false, "limited": false, "relaxedQuery": null,
            "contentFetched": 0, "engines": [{ "name": "ddg", "ok": true, "hits": 10 }] },
  "usage": { "dailyLimit": 100, "charged": 1, "used": 7, "remaining": 93 }
}
curl -X POST https://www.trackshon.com/api/v1/extract \
  -H "authorization: Bearer $TRACKSHON_API_KEY" \
  -H "content-type: application/json" \
  -d '{"urls":["https://example.com/pricing"],"maxChars":6000}'
  • Search fields: query (2 to 400 characters), maxResults (1 to 20, default 10), mode (auto, web, discussions, code, news), sinceDays, includeDomains and excludeDomains (up to 10 hostnames each, like example.com), includeContent, contentTop (1 to 8, default 5), maxContentChars (200 to 12,000, default 4,000).
  • sinceDays is best effort: results the engines return without a date are kept.
  • With includeContent, each result that could be read also carries content and contentChars.
  • Extract takes 1 to 5 http(s) URLs and maxChars (200 to 20,000, default 8,000). It always answers 200: check pages[i].ok and pages[i].error. HTML and plain text only: no PDFs, and no pages that need JavaScript to show their text. Internal and private addresses are refused.
  • Daily allowance by plan: Solo 100, Team 400, Studio 1,500 (UTC day). A search counts 1, a search that reads pages counts 3, each URL sent to extract counts 1. A request either fits in what is left or is refused whole. Calls we could not answer (a 5xx) are not counted; limited and cached answers are.
  • Every response reports usage.used and usage.remaining, so you can see the allowance before you hit it.

5. SDK

One TypeScript file with no dependencies. Download trackshon-client.ts into your project and import it. Prefer fire-and-forget on user-critical paths.

import { createTrackshon } from "./trackshon-client";

const tk = createTrackshon({
  apiKey: process.env.TRACKSHON_API_KEY!,
  baseUrl: "https://www.trackshon.com",
});

void tk.log({
  type: "lead.waitlist",
  person: { email },
  idempotencyKey: `waitlist:${email.toLowerCase()}`,
}).catch(() => undefined);

const tree = await tk.tree();
const matches = await tk.opportunities({ drafted: true });

const found = await tk.search({ query: "open source crm for agencies", includeContent: true, contentTop: 3 });
for (const r of found.results) console.log(r.score, r.title, r.url);

6. Limits and safety

  • Same plan entitlements as the app: analyze caps, scout weekly allowance, product slots, hosted spend.
  • Per-key rate limits, counted per endpoint: ledger, tree and opportunities 60 a minute, search 30, extract 20, arms 30, analyze 12, scout 6 per 10 minutes.
  • Errors are { error, code }. 400 bad_request names the field. 401 is a missing or invalid key. 403 scope_denied means the key lacks the scope (mint a new key; scopes cannot be edited). 402 plan_required means upgrade or buy an add-on, often with upgradeHref.
  • 429 rate_limited means wait a minute; 429 daily_quota means the search allowance is used until 00:00 UTC. Both send retry-after. 503 search_unavailable means retry in 30 seconds.
  • The API sends no CORS headers: call it from a server, not from a browser.
  • Revoking a key takes effect immediately. At most 10 active keys per workspace.
  • Do not put API keys in browsers or public repos. Server-side only.

Questions: open Settings → API keys or the in-app support widget. MCP access remains next.