bytemine

API Reference · Platform export

Company Tracking & Alerts API Reference

Platform documentation snapshot. Access, charging and provider requirements remain operation-specific; examples do not execute requests.

What it does

Subscribe to a company once and Bytemine keeps watching it: enrichment, live site crawl, technographics, hiring trends and job postings, funding and acquisitions, LinkedIn activity and identity-validated news, refreshed on your cadence. Every difference between runs is recorded as a change, changes are compounded into scored GTM signals with rationale and evidence, and each company carries a derived state (market motion, growth trajectory, hiring, pricing and tech posture, activity score). Signals, state transitions and completed runs are emitted as durable events you can poll or receive on signed webhooks with retries, dead-lettering and replay, plus filtered alert routing to an endpoint or Slack.

Use cases

  • Give an AI agent a live account state to reason over instead of a stale enrichment row, then act the moment a signal appears.
  • Wake up an account owner in Slack the day a target account raises, changes pricing, opens a new region or starts hiring a buying-committee role.
  • Track your full target account list and query, in one call, which companies are moving upmarket or expanding right now.
  • Keep a CRM continuously in sync with company reality by consuming change.detected and state.changed events over webhooks.
  • Build a defensible trigger-based outbound motion where every message cites a validated, timestamped source.

Parameters

ParameterTypeDescription
domainstringCompany domain to track (e.g. stripe.com). Required unless company_id is supplied.
company_idstringBytemine company identifier, as an alternative to domain
frequencyenumRefresh cadence: daily, every_3_days, weekly (default), monthly, manual
monitorobjectOptional monitor config controlling which surfaces are watched (pricing, careers, product, news)
run_nowbooleanRun the intelligence pass immediately on subscribe (default: true). Set false to schedule only.
tracker_refstringTracker reference returned by /company/tracking/subscribe
sincestringISO timestamp lower bound for changes, timeline and events (default: 30 days ago)
signal_typestringFilter to one compound signal type
signal_typesstring[]Filter the signal search to several signal types
min_scorenumberOnly return signals at or above this score (0-100)
urlstringWebhook receiver URL. Must be https.
eventsstring[]Event types the endpoint subscribes to. Empty means all: signal.created, signal.escalated, signal.decayed, state.changed, change.detected, run.completed, baseline.ready
webhook_refstringWebhook reference used by webhooks/update, webhooks/delete and webhooks/test
rotate_secretbooleanRotate the signing secret on webhooks/update. The new secret is returned once.
delivery_refstringDelivery reference to replay. Omit to replay every dead-lettered delivery.
rule_refstringAlert rule reference used by alerts/update and alerts/delete
targetstringAlert destination URL (https). Slack incoming webhooks are supported with channel: "slack".
limitintegerMax rows returned by list endpoints

Response Schema

Complete documented fields for this section, with nested notation preserved. Endpoint-specific envelopes, availability and additional fields are described under each endpoint below.

FieldNotes
— /company/tracking, /company/tracking/subscribe, /unsubscribe —
trackers[] → tracker_ref, frequency, monitor, status, last_run_at, next_run_at, runs_count, credits_spent, company → company_ref, canonical_domain, name
tracker_ref
frequency
credits_charged
estimated_monthly_credits
run
— /company/tracking/state —
company → company_ref, canonical_domain, name, attributes, last_run_at, effective_frequency
snapshot → captured_at, is_baseline, state
company_state → market_motion, growth_trajectory, hiring_posture, expansion_posture, pricing_posture, tech_posture, activity_score, top_signals, last_computed_at
signals[] → signal_ref, signal_type, status, score, confidence, summary, first_observed_at, last_observed_at
— /company/tracking/signals, /changes, /timeline, /sources —
signals[] → rationale, evidence, contributing_changes, expires_at
changes[] → change_ref, type, category, summary, confidence, before, after, evidence, detected_at
sources[] → source_ref, source_type, title, url, publisher, summary, published_at, discovered_at
— /company/intelligence/search —
results[] → domain, company_ref, name, top_score, activity_score, market_motion, growth_trajectory, signals[]
— /company/intelligence/webhooks —
webhooks[] → webhook_ref, url, description, events, is_active, last_status, last_delivery_at, created_at
secret (returned once at creation or rotation)
signature_header
timestamp_header
event_types[]
— /company/intelligence/events, /deliveries —
events[] → event_ref, type, payload, created_at, company → company_ref, canonical_domain, name
deliveries[] → delivery_ref, event_type, status (pending|delivered|failed|dead), attempt, response_status, error, next_retry_at, delivered_at, webhook → webhook_ref, url
replayed
delivered
— /company/intelligence/alerts —
rules[] → rule_ref, name, event_types, signal_types, min_score, channel, target, is_active, created_at

Illustrative Example Response (synthetic, not a complete endpoint schema):

Example
{
  "data": {
    "— /company/tracking, /company/tracking/subscribe, /unsubscribe —": "string",
    "tracker_ref": "string",
    "frequency": "string",
    "credits_charged": "string",
    "estimated_monthly_credits": "string",
    "run": "string",
    "— /company/tracking/state —": "string",
    "— /company/tracking/signals, /changes, /timeline, /sources —": "string",
    "— /company/intelligence/search —": "string",
    "— /company/intelligence/webhooks —": "string",
    "secret": "string",
    "signature_header": "string",
    "timestamp_header": "string",
    "event_types[]": "string",
    "— /company/intelligence/events, /deliveries —": "string",
    "replayed": "string",
    "delivered": "string",
    "— /company/intelligence/alerts —": "string",
    "trackers": [
      {
        "tracker_ref": "string",
        "frequency": "string",
        "monitor": "string",
        "status": "string",
        "last_run_at": "2025-06-01T12:00:00Z",
        "next_run_at": "2025-06-01T12:00:00Z",
        "runs_count": 0,
        "credits_spent": "string",
        "company → company_ref": "string",
        "canonical_domain": "string",
        "name": "string"
      }
    ],
    "company": {
      "company_ref": "string",
      "canonical_domain": "string",
      "name": "string",
      "attributes": "string",
      "last_run_at": "2025-06-01T12:00:00Z",
      "effective_frequency": "string"
    },
    "snapshot": {
      "captured_at": "2025-06-01T12:00:00Z",
      "is_baseline": false,
      "state": "CA"
    },
    "company_state": {
      "market_motion": "string",
      "growth_trajectory": "string",
      "hiring_posture": "string",
      "expansion_posture": "string",
      "pricing_posture": "string",
      "tech_posture": "string",
      "activity_score": 0,
      "top_signals": "string",
      "last_computed_at": "2025-06-01T12:00:00Z"
    },
    "signals": [
      {
        "rationale": "string",
        "evidence": "string",
        "contributing_changes": "string",
        "expires_at": "2025-06-01T12:00:00Z"
      }
    ],
    "changes": [
      {
        "change_ref": "string",
        "type": "string",
        "category": "string",
        "summary": "string",
        "confidence": "string",
        "before": "string",
        "after": "string",
        "evidence": "string",
        "detected_at": "2025-06-01T12:00:00Z"
      }
    ],
    "sources": [
      {
        "source_ref": "string",
        "source_type": "string",
        "title": "string",
        "url": "https://example.com",
        "publisher": "string",
        "summary": "string",
        "published_at": "2025-06-01T12:00:00Z",
        "discovered_at": "2025-06-01T12:00:00Z"
      }
    ],
    "results": [
      {
        "domain": "string",
        "company_ref": "string",
        "name": "string",
        "top_score": 0,
        "activity_score": 0,
        "market_motion": "string",
        "growth_trajectory": "string",
        "signals[]": "string"
      }
    ],
    "webhooks": [
      {
        "webhook_ref": "string",
        "url": "https://example.com",
        "description": "string",
        "events": "string",
        "is_active": false,
        "last_status": "string",
        "last_delivery_at": "2025-06-01T12:00:00Z",
        "created_at": "2025-06-01T12:00:00Z"
      }
    ],
    "events": [
      {
        "event_ref": "string",
        "type": "string",
        "payload": "string",
        "created_at": "2025-06-01T12:00:00Z",
        "company → company_ref": "string",
        "canonical_domain": "string",
        "name": "string"
      }
    ],
    "deliveries": [
      {
        "delivery_ref": "string",
        "event_type": "string",
        "status (pending|delivered|failed|dead)": "string",
        "attempt": "string",
        "response_status": "string",
        "error": "string",
        "next_retry_at": "2025-06-01T12:00:00Z",
        "delivered_at": "2025-06-01T12:00:00Z",
        "webhook → webhook_ref": "string",
        "url": "https://example.com"
      }
    ],
    "rules": [
      {
        "rule_ref": "string",
        "name": "string",
        "event_types": "string",
        "signal_types": "string",
        "min_score": 0,
        "channel": "string",
        "target": "string",
        "is_active": false,
        "created_at": "2025-06-01T12:00:00Z"
      }
    ]
  }
}

POST /company/tracking/subscribe — Track a Company

Start continuous intelligence on a company. Runs a baseline pass immediately (enrichment, live site crawl, technographics, hiring, funding and acquisitions, LinkedIn activity, validated news), then refreshes on your chosen cadence and records every change. Costs 10 credits per intelligence run; cache reads are free.

Example Request Body:

Example
{
  "domain": "stripe.com",
  "frequency": "weekly",
  "run_now": true
}

cURL Example:

Example
curl -X POST 'https://bvjmtgaxijpyasjtaqiv.supabase.co/functions/v1/api-gateway' \
  -H 'Content-Type: application/json' \
  -H 'x-amz-security-token: YOUR-API-KEY' \
  -d '{
  "path": "/company/tracking/subscribe",
  "method": "POST",
  "body": {
    "domain": "stripe.com",
    "frequency": "weekly",
    "run_now": true
  }
}'

GET /company/tracking — List Tracked Companies

List every company your workspace tracks, with cadence, status, run counts and credits spent. Free.

Example Request Body:

Example
{}

cURL Example:

Example
curl -X POST 'https://bvjmtgaxijpyasjtaqiv.supabase.co/functions/v1/api-gateway' \
  -H 'Content-Type: application/json' \
  -H 'x-amz-security-token: YOUR-API-KEY' \
  -d '{
  "path": "/company/tracking",
  "method": "GET",
  "body": {}
}'

POST /company/tracking/state — Current Company State

Read the latest canonical state for a tracked company: firmographics, most recent snapshot, derived company state (market motion, growth trajectory, hiring and pricing posture, activity score) and all live compound signals. Free.

Example Request Body:

Example
{
  "domain": "stripe.com"
}

cURL Example:

Example
curl -X POST 'https://bvjmtgaxijpyasjtaqiv.supabase.co/functions/v1/api-gateway' \
  -H 'Content-Type: application/json' \
  -H 'x-amz-security-token: YOUR-API-KEY' \
  -d '{
  "path": "/company/tracking/state",
  "method": "POST",
  "body": {
    "domain": "stripe.com"
  }
}'

POST /company/tracking/signals — Company Signals

Fetch compound GTM signals for one tracked company with rationale, evidence and contributing changes. Filter by signal_type, min_score, or include decayed signals. Free.

Example Request Body:

Example
{
  "domain": "stripe.com",
  "min_score": 50
}

cURL Example:

Example
curl -X POST 'https://bvjmtgaxijpyasjtaqiv.supabase.co/functions/v1/api-gateway' \
  -H 'Content-Type: application/json' \
  -H 'x-amz-security-token: YOUR-API-KEY' \
  -d '{
  "path": "/company/tracking/signals",
  "method": "POST",
  "body": {
    "domain": "stripe.com",
    "min_score": 50
  }
}'

POST /company/tracking/changes — Detected Changes

Every validated change detected for a tracked company since a timestamp, with before/after values and evidence. Use /company/tracking/timeline for the same data in chronological order. Free.

Example Request Body:

Example
{
  "domain": "stripe.com",
  "since": "2026-08-01T00:00:00Z",
  "limit": 200
}

cURL Example:

Example
curl -X POST 'https://bvjmtgaxijpyasjtaqiv.supabase.co/functions/v1/api-gateway' \
  -H 'Content-Type: application/json' \
  -H 'x-amz-security-token: YOUR-API-KEY' \
  -d '{
  "path": "/company/tracking/changes",
  "method": "POST",
  "body": {
    "domain": "stripe.com",
    "since": "2026-08-01T00:00:00Z",
    "limit": 200
  }
}'

POST /company/tracking/sources — Evidence Sources

The validated sources behind a company's intelligence: crawled pages, job postings, funding records and news articles that passed company-identity adjudication. Free.

Example Request Body:

Example
{
  "domain": "stripe.com",
  "limit": 100
}

cURL Example:

Example
curl -X POST 'https://bvjmtgaxijpyasjtaqiv.supabase.co/functions/v1/api-gateway' \
  -H 'Content-Type: application/json' \
  -H 'x-amz-security-token: YOUR-API-KEY' \
  -d '{
  "path": "/company/tracking/sources",
  "method": "POST",
  "body": {
    "domain": "stripe.com",
    "limit": 100
  }
}'

POST /company/tracking/unsubscribe — Stop Tracking

Pause tracking for a company by tracker_ref or domain. The temporal cache is retained and remains readable. Free.

Example Request Body:

Example
{
  "domain": "stripe.com"
}

cURL Example:

Example
curl -X POST 'https://bvjmtgaxijpyasjtaqiv.supabase.co/functions/v1/api-gateway' \
  -H 'Content-Type: application/json' \
  -H 'x-amz-security-token: YOUR-API-KEY' \
  -d '{
  "path": "/company/tracking/unsubscribe",
  "method": "POST",
  "body": {
    "domain": "stripe.com"
  }
}'

POST /company/intelligence/search — Search Signals Across Accounts

One call that answers "which of my tracked companies are moving right now". Returns one row per company with its top signals and derived state, filterable by signal types and minimum score. Free.

Example Request Body:

Example
{
  "signal_types": [
    "moving_upmarket",
    "expansion"
  ],
  "min_score": 60,
  "limit": 100
}

cURL Example:

Example
curl -X POST 'https://bvjmtgaxijpyasjtaqiv.supabase.co/functions/v1/api-gateway' \
  -H 'Content-Type: application/json' \
  -H 'x-amz-security-token: YOUR-API-KEY' \
  -d '{
  "path": "/company/intelligence/search",
  "method": "POST",
  "body": {
    "signal_types": [
      "moving_upmarket",
      "expansion"
    ],
    "min_score": 60,
    "limit": 100
  }
}'

POST /company/intelligence/webhooks — Create Webhook Endpoint

Register an https receiver for intelligence events. Each delivery is signed with HMAC-SHA256 over "{timestamp}.{body}" and carries x-bytemine-signature and x-bytemine-timestamp. Failed deliveries retry at 1, 5, 20, 60 and 240 minutes, then dead-letter. The signing secret is returned once. Free.

Example Request Body:

Example
{
  "url": "https://example.com/hooks/bytemine",
  "description": "Production agent receiver",
  "events": [
    "signal.created",
    "signal.escalated",
    "state.changed"
  ]
}

cURL Example:

Example
curl -X POST 'https://bvjmtgaxijpyasjtaqiv.supabase.co/functions/v1/api-gateway' \
  -H 'Content-Type: application/json' \
  -H 'x-amz-security-token: YOUR-API-KEY' \
  -d '{
  "path": "/company/intelligence/webhooks",
  "method": "POST",
  "body": {
    "url": "https://example.com/hooks/bytemine",
    "description": "Production agent receiver",
    "events": [
      "signal.created",
      "signal.escalated",
      "state.changed"
    ]
  }
}'

GET /company/intelligence/webhooks — List Webhook Endpoints

List registered receivers with subscribed event types, active state and the status of the last delivery. Free.

Example Request Body:

Example
{}

cURL Example:

Example
curl -X POST 'https://bvjmtgaxijpyasjtaqiv.supabase.co/functions/v1/api-gateway' \
  -H 'Content-Type: application/json' \
  -H 'x-amz-security-token: YOUR-API-KEY' \
  -d '{
  "path": "/company/intelligence/webhooks",
  "method": "GET",
  "body": {}
}'

POST /company/intelligence/webhooks/update — Update or Rotate Webhook

Change the URL, description, subscribed events or active state of an endpoint, or rotate its signing secret. A rotated secret is returned once in the response. Free.

Example Request Body:

Example
{
  "webhook_ref": "wh_1a2b3c4d5e6f",
  "events": [
    "signal.created"
  ],
  "rotate_secret": false
}

cURL Example:

Example
curl -X POST 'https://bvjmtgaxijpyasjtaqiv.supabase.co/functions/v1/api-gateway' \
  -H 'Content-Type: application/json' \
  -H 'x-amz-security-token: YOUR-API-KEY' \
  -d '{
  "path": "/company/intelligence/webhooks/update",
  "method": "POST",
  "body": {
    "webhook_ref": "wh_1a2b3c4d5e6f",
    "events": [
      "signal.created"
    ],
    "rotate_secret": false
  }
}'

POST /company/intelligence/webhooks/test — Send Test Event

Deliver a signed synthetic run.completed event so you can verify signature checking and your receiver end to end. Returns the response status from your endpoint. Free.

Example Request Body:

Example
{
  "webhook_ref": "wh_1a2b3c4d5e6f"
}

cURL Example:

Example
curl -X POST 'https://bvjmtgaxijpyasjtaqiv.supabase.co/functions/v1/api-gateway' \
  -H 'Content-Type: application/json' \
  -H 'x-amz-security-token: YOUR-API-KEY' \
  -d '{
  "path": "/company/intelligence/webhooks/test",
  "method": "POST",
  "body": {
    "webhook_ref": "wh_1a2b3c4d5e6f"
  }
}'

POST /company/intelligence/webhooks/delete — Delete Webhook Endpoint

Remove a receiver. Queued deliveries for that endpoint stop. Free.

Example Request Body:

Example
{
  "webhook_ref": "wh_1a2b3c4d5e6f"
}

cURL Example:

Example
curl -X POST 'https://bvjmtgaxijpyasjtaqiv.supabase.co/functions/v1/api-gateway' \
  -H 'Content-Type: application/json' \
  -H 'x-amz-security-token: YOUR-API-KEY' \
  -d '{
  "path": "/company/intelligence/webhooks/delete",
  "method": "POST",
  "body": {
    "webhook_ref": "wh_1a2b3c4d5e6f"
  }
}'

POST /company/intelligence/events — Event Log

The durable, idempotency-keyed event log for your workspace. Poll this instead of webhooks, or use it to reconcile after downtime. Filter by type and since. Free.

Example Request Body:

Example
{
  "type": "signal.created",
  "since": "2026-08-01T00:00:00Z",
  "limit": 100
}

cURL Example:

Example
curl -X POST 'https://bvjmtgaxijpyasjtaqiv.supabase.co/functions/v1/api-gateway' \
  -H 'Content-Type: application/json' \
  -H 'x-amz-security-token: YOUR-API-KEY' \
  -d '{
  "path": "/company/intelligence/events",
  "method": "POST",
  "body": {
    "type": "signal.created",
    "since": "2026-08-01T00:00:00Z",
    "limit": 100
  }
}'

POST /company/intelligence/deliveries — Delivery Log

Per-attempt delivery history including response status, error, next retry time and the dead-letter queue. Filter by status (pending, delivered, failed, dead). Free.

Example Request Body:

Example
{
  "status": "dead",
  "limit": 100
}

cURL Example:

Example
curl -X POST 'https://bvjmtgaxijpyasjtaqiv.supabase.co/functions/v1/api-gateway' \
  -H 'Content-Type: application/json' \
  -H 'x-amz-security-token: YOUR-API-KEY' \
  -d '{
  "path": "/company/intelligence/deliveries",
  "method": "POST",
  "body": {
    "status": "dead",
    "limit": 100
  }
}'

POST /company/intelligence/deliveries/replay — Replay Deliveries

Re-send one delivery by delivery_ref, or replay every dead-lettered delivery when no reference is supplied. Free.

Example Request Body:

Example
{
  "delivery_ref": "dlv_1a2b3c4d5e6f"
}

cURL Example:

Example
curl -X POST 'https://bvjmtgaxijpyasjtaqiv.supabase.co/functions/v1/api-gateway' \
  -H 'Content-Type: application/json' \
  -H 'x-amz-security-token: YOUR-API-KEY' \
  -d '{
  "path": "/company/intelligence/deliveries/replay",
  "method": "POST",
  "body": {
    "delivery_ref": "dlv_1a2b3c4d5e6f"
  }
}'

POST /company/intelligence/alerts — Create Alert Rule

Route only the events that matter to a destination: filter by event types, signal types and minimum score, then send to an https endpoint or a Slack incoming webhook. Free.

Example Request Body:

Example
{
  "name": "High-intent expansion signals",
  "event_types": [
    "signal.created",
    "signal.escalated"
  ],
  "signal_types": [
    "expansion",
    "moving_upmarket"
  ],
  "min_score": 70,
  "channel": "slack",
  "target": "https://hooks.slack.com/services/XXX/YYY/ZZZ"
}

cURL Example:

Example
curl -X POST 'https://bvjmtgaxijpyasjtaqiv.supabase.co/functions/v1/api-gateway' \
  -H 'Content-Type: application/json' \
  -H 'x-amz-security-token: YOUR-API-KEY' \
  -d '{
  "path": "/company/intelligence/alerts",
  "method": "POST",
  "body": {
    "name": "High-intent expansion signals",
    "event_types": [
      "signal.created",
      "signal.escalated"
    ],
    "signal_types": [
      "expansion",
      "moving_upmarket"
    ],
    "min_score": 70,
    "channel": "slack",
    "target": "https://hooks.slack.com/services/XXX/YYY/ZZZ"
  }
}'

GET /company/intelligence/alerts — List Alert Rules

List routing rules with their filters, destination and active state. Free.

Example Request Body:

Example
{}

cURL Example:

Example
curl -X POST 'https://bvjmtgaxijpyasjtaqiv.supabase.co/functions/v1/api-gateway' \
  -H 'Content-Type: application/json' \
  -H 'x-amz-security-token: YOUR-API-KEY' \
  -d '{
  "path": "/company/intelligence/alerts",
  "method": "GET",
  "body": {}
}'

POST /company/intelligence/alerts/update — Update Alert Rule

Change a rule's name, filters, destination, channel or active state. Free.

Example Request Body:

Example
{
  "rule_ref": "rule_1a2b3c4d5e6f",
  "min_score": 80,
  "is_active": true
}

cURL Example:

Example
curl -X POST 'https://bvjmtgaxijpyasjtaqiv.supabase.co/functions/v1/api-gateway' \
  -H 'Content-Type: application/json' \
  -H 'x-amz-security-token: YOUR-API-KEY' \
  -d '{
  "path": "/company/intelligence/alerts/update",
  "method": "POST",
  "body": {
    "rule_ref": "rule_1a2b3c4d5e6f",
    "min_score": 80,
    "is_active": true
  }
}'

POST /company/intelligence/alerts/delete — Delete Alert Rule

Remove a routing rule. Free.

Example Request Body:

Example
{
  "rule_ref": "rule_1a2b3c4d5e6f"
}

cURL Example:

Example
curl -X POST 'https://bvjmtgaxijpyasjtaqiv.supabase.co/functions/v1/api-gateway' \
  -H 'Content-Type: application/json' \
  -H 'x-amz-security-token: YOUR-API-KEY' \
  -d '{
  "path": "/company/intelligence/alerts/delete",
  "method": "POST",
  "body": {
    "rule_ref": "rule_1a2b3c4d5e6f"
  }
}'