# Tracker Quickstart: Bootstrap Guide for LLM Agents

> **Purpose:** Copy-paste this entire document into a fresh Claude Code, ChatGPT, or any LLM agent session. It will guide the agent through setting up Fiber Tracker end-to-end — from discovering rules to receiving live webhook signals. All testing is free.

---

## What is Tracker?

Fiber Tracker monitors companies and people on LinkedIn for specific changes. You define **rules** (what to watch for), add **entities** (who to watch), and Fiber delivers **signals** via webhook whenever a rule matches a detected change.

**Base URL:** `https://api.fiber.ai`  
**Auth:** Include `apiKey` in the request body (POST) or query string (GET).  
**Docs:** https://docs.fiber.ai/article/tracker  
**Interactive API docs:** https://api.fiber.ai/docs/#tag/tracker

---

## Step 1: Discover Available Rules

Call the rules catalog endpoint to see all available rule types, their schemas, and example payloads:

```bash
curl -s "https://api.fiber.ai/v1/tracker/rules?apiKey=YOUR_API_KEY" | jq
```

This returns all 52 rule types (25 company + 27 person) with:
- `type` — the slug you use in configs (e.g. `headcount_crossed_threshold`)
- `entityType` — `company` or `person`
- `description` — what the rule detects
- `useCase` — when you'd use it in a sales workflow
- `configFields` — required/optional fields for the config
- `exampleConfig` — a valid config you can use directly
- `exampleSignal` — what the signal payload looks like when this rule fires

**This endpoint is free and requires no setup.**

---

## Step 2: Preview Signal Payloads

Once you've identified rules you care about, preview the exact signal shape for any rule config:

```bash
curl -s -X POST "https://api.fiber.ai/v1/tracker/rules/preview-signal" \
  -H "Content-Type: application/json" \
  -d '{
    "apiKey": "YOUR_API_KEY",
    "config": {
      "type": "person_changed_company",
      "entityType": "person"
    }
  }' | jq
```

This shows you the exact `summary` and `changeData` shape without creating anything. **Free, no side effects.**

Try different configs to understand what data you'll receive for each rule type.

---

## Step 3: Set Up Your Webhook Endpoint

Tracker delivers signals via webhooks. You need an HTTPS endpoint that accepts POST requests.

**Webhook payload format:**

```json
{
  "success": true,
  "eventId": "evt_abc123",
  "occurredAt": "2026-06-02T12:00:00.000Z",
  "entity": {
    "type": "company",
    "identifiers": {
      "linkedinOrgId": "1441",
      "linkedinSlug": "google",
      "domain": "google.com",
      "linkedinUserId": null,
      "name": "Google"
    }
  },
  "subscription": {
    "id": "rule_xyz",
    "type": "headcount_crossed_threshold",
    "listId": "list_abc",
    "listName": "Target Accounts"
  },
  "signal": {
    "type": "headcount_crossed_threshold",
    "summary": "Headcount crossed 100: 87 → 104",
    "changeData": [{ "kind": "numeric", "previous": 87, "current": 104, "direction": "increased", "absoluteChange": 17, "percentChange": 19.5 }],
    "confidence": 1.0,
    "isDummy": false
  },
  "billing": {
    "creditsCharged": 0,
    "billingMethod": "per_check"
  }
}
```

**Key fields to parse:**
- `signal.type` — which rule fired
- `signal.summary` — human-readable description
- `signal.changeData` — structured data (shape depends on rule type)
- `signal.isDummy` — `true` for test signals, `false` for real ones
- `entity.identifiers` — who/what the signal is about
- `eventId` — use for deduplication

Configure your webhook URL in the Fiber dashboard under Tracker settings, or via the Svix portal.

---

## Step 4: Create a Tracker List with Dummy Rules

Create a list with rules marked `isDummy: true`. Dummy rules only fire via the test endpoint — they're never evaluated during normal monitoring.

**Company list example:**

```bash
curl -s -X POST "https://api.fiber.ai/v1/tracker/company-lists" \
  -H "Content-Type: application/json" \
  -d '{
    "apiKey": "YOUR_API_KEY",
    "name": "Integration Test List",
    "refreshIntervalDays": 7,
    "trackingRules": [
      {
        "type": "headcount_crossed_threshold",
        "entityType": "company",
        "threshold": 100,
        "direction": "above",
        "isDummy": true
      },
      {
        "type": "new_funding_round",
        "entityType": "company",
        "minAmountUsd": 5000000,
        "isDummy": true
      }
    ]
  }' | jq
```

**Person list example:**

```bash
curl -s -X POST "https://api.fiber.ai/v1/tracker/person-lists" \
  -H "Content-Type: application/json" \
  -d '{
    "apiKey": "YOUR_API_KEY",
    "name": "Champion Tracker Test",
    "refreshIntervalDays": 7,
    "trackingRules": [
      {
        "type": "person_changed_company",
        "entityType": "person",
        "isDummy": true
      },
      {
        "type": "person_got_promoted",
        "entityType": "person",
        "isDummy": true
      }
    ]
  }' | jq
```

Save the `id` from the response — you'll need it for the next step.

**Creating lists is free.**

---

## Step 5: Fire Test Signals

Call the fire-dummy endpoint with your list ID. This generates a synthetic signal for each dummy rule and dispatches a real webhook to your endpoint:

```bash
curl -s -X POST "https://api.fiber.ai/v1/tracker/fire-dummy/YOUR_LIST_ID?apiKey=YOUR_API_KEY" | jq
```

**What happens:**
- Each dummy rule on the list produces a synthetic signal
- If your list is empty (no entities), an example entity is auto-added (Google for companies, Bill Gates for people)
- If you have a webhook configured, a real HTTP request is sent to your endpoint with `signal.isDummy: true`
- The signal is persisted and visible via the API

**This is free and re-triggerable with no cooldown.** Call it as many times as you need while debugging your webhook handler.

---

## Step 6: Verify Your Webhook

Check that your webhook endpoint received the test signal. Key things to verify:

1. **HTTP 200 response** — Fiber retries on non-2xx responses
2. **Parse `signal.type`** — route to the correct handler
3. **Parse `signal.changeData`** — extract the structured data
4. **Check `signal.isDummy`** — filter out test signals in production logic
5. **Deduplicate on `eventId`** — webhooks may be retried

You can also poll signals via the API as a fallback:

```bash
curl -s "https://api.fiber.ai/v1/tracker/changes/YOUR_LIST_ID?apiKey=YOUR_API_KEY&includeDummy=true" | jq
```

---

## Step 7: Go Live

Once your webhook handler is working correctly:

1. **Convert dummy rules to real rules** — update the list and set `isDummy: false` (or create new rules without the flag):

```bash
curl -s -X PATCH "https://api.fiber.ai/v1/tracker/company-lists/YOUR_LIST_ID" \
  -H "Content-Type: application/json" \
  -d '{
    "apiKey": "YOUR_API_KEY",
    "trackingRules": [
      {
        "type": "headcount_crossed_threshold",
        "entityType": "company",
        "threshold": 100,
        "direction": "above"
      },
      {
        "type": "new_funding_round",
        "entityType": "company",
        "minAmountUsd": 5000000
      }
    ]
  }' | jq
```

1. **Add real entities** to track:

```bash
curl -s -X PUT "https://api.fiber.ai/v1/tracker/company-lists/YOUR_LIST_ID/companies" \
  -H "Content-Type: application/json" \
  -d '{
    "apiKey": "YOUR_API_KEY",
    "companies": [
      { "linkedinUrl": "https://www.linkedin.com/company/stripe" },
      { "domain": "notion.so" },
      { "linkedinSlug": "figma" }
    ]
  }' | jq
```

1. **Monitor costs** with the overview endpoint:

```bash
curl -s "https://api.fiber.ai/v1/tracker/overview?apiKey=YOUR_API_KEY" | jq
```

---

## Pricing Summary

| Action | Cost |
|--------|------|
| Creating lists | Free |
| Adding/removing entities | Free |
| Listing rules (`GET /v1/tracker/rules`) | Free |
| Previewing signals | Free |
| Firing dummy signals | Free |
| Reading signals/changes | Free |
| **Entity refresh (production monitoring)** | **2 credits per entity per refresh** |

The refresh cost is: `entity_count × 2 credits × (30 / refreshIntervalDays)` per month.

Example: 500 companies checked every 7 days = 500 × 2 × (30/7) = ~4,286 credits/month.

---

## API Quick Reference

| Operation | Method | Path |
|-----------|--------|------|
| List available rules | GET | `/v1/tracker/rules` |
| Preview signal payload | POST | `/v1/tracker/rules/preview-signal` |
| Create company list | POST | `/v1/tracker/company-lists` |
| Create person list | POST | `/v1/tracker/person-lists` |
| Add companies | PUT | `/v1/tracker/company-lists/:listId/companies` |
| Add people | PUT | `/v1/tracker/person-lists/:listId/people` |
| Fire test signals | POST | `/v1/tracker/fire-dummy/:listId` |
| List signals | GET | `/v1/tracker/changes/:listId` |
| Get overview | GET | `/v1/tracker/overview` |
| Update company list | PATCH | `/v1/tracker/company-lists/:listId` |
| Update person list | PATCH | `/v1/tracker/person-lists/:listId` |

---

## Tips for LLM Agents

- **Start with `GET /v1/tracker/rules`** to dynamically discover all rule types — don't hardcode rule lists from training data.
- **Use `preview-signal`** to understand changeData shapes before writing parsers.
- **Use `fire-dummy`** to test the full pipeline end-to-end without waiting for real changes.
- **All testing is free** — no credits are charged until you have real (non-dummy) rules on a list with entities being actively refreshed.
- **Webhook payload is self-contained** — you don't need to call back to Fiber to understand what happened.
- **`refreshIntervalDays`** controls cost: longer intervals = fewer checks = lower cost. Start with 7 days.
- **You can mix dummy and real rules** on the same list for gradual rollout.
