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
- Subscribe to Solo or above at /start.
- Open Settings → API keys as a workspace admin. Create a key. Copy the plaintext once.
- 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.
| Method | Path | Scope | Notes |
|---|---|---|---|
| POST | /api/v1/events | events:write | Append ledger events. Each event needs idempotencyKey. |
| GET | /api/v1/events | events:read | Paginated ledger read (?limit=&before=). |
| GET | /api/v1/tree | tree:read | KPI tree with Wilson rates and criteria. |
| POST | /api/v1/arms | arms:write | Register a tracked post; get code + short /r/{code} link. |
| POST | /api/v1/analyze | analyze | Run a page/idea audit. Same monthly/hourly caps as the app. |
| POST | /api/v1/scout | scout | Run a deep scout. Same weekly allowance as the app. |
| GET | /api/v1/opportunities | opportunities:read | Read matches and drafts (?drafted=1). |
| POST | /api/v1/search | search | Search the open web. Several engines, fused and re-ranked; optionally returns the text of the top pages. |
| POST | /api/v1/extract | search | Readable 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,includeDomainsandexcludeDomains(up to 10 hostnames each, likeexample.com),includeContent,contentTop(1 to 8, default 5),maxContentChars(200 to 12,000, default 4,000). sinceDaysis best effort: results the engines return without a date are kept.- With
includeContent, each result that could be read also carriescontentandcontentChars. - Extract takes 1 to 5 http(s) URLs and
maxChars(200 to 20,000, default 8,000). It always answers 200: checkpages[i].okandpages[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.usedandusage.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 }. 400bad_requestnames the field. 401 is a missing or invalid key. 403scope_deniedmeans the key lacks the scope (mint a new key; scopes cannot be edited). 402plan_requiredmeans upgrade or buy an add-on, often withupgradeHref. - 429
rate_limitedmeans wait a minute; 429daily_quotameans the search allowance is used until 00:00 UTC. Both sendretry-after. 503search_unavailablemeans 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.