Skip to main content

Growth

Pipeline growth for Sales, BDR, and RevOps: mailbox list-build jobs, enrichment runs, live attribution, and agent runs.

Auth: all calls require a Bearer JWT plus the X-Workspace-Id header.

Mailbox Jobs

GET/api/growth/mailbox-jobsAuth required

List mailbox list-build jobs.

Query Parameters

FieldTypeRequiredNote
limitnumberNoDefault 50, max 200
statusstringNo—
providerstringNo—

Response

[
  {
    "id": 1,
    "workspace_id": 1,
    "provider": "apollo",
    "status": "done",
    "records_built": 1250,
    "created_at": "2026-03-28T10:00:00Z",
    "updated_at": "2026-03-28T11:00:00Z"
  }
]
POST/api/growth/mailbox-jobsAuth required

Queue a mailbox list-build job.

Request Body

FieldTypeRequiredNote
providerstringYes—
statusstringNoDefault "queued"
records_builtnumberNoDefault 0

Response

{
  "id": 2,
  "workspace_id": 1,
  "provider": "apollo",
  "status": "queued",
  "records_built": 0
}

Enrichment

GET/api/growth/enrichmentAuth required

List enrichment runs.

Query Parameters

FieldTypeRequiredNote
limitnumberNoDefault 50, max 200
statusstringNo—
providerstringNo—

Response

[
  {
    "id": 1,
    "workspace_id": 1,
    "provider": "clearbit",
    "status": "done",
    "fields_added": "title,company_size",
    "created_at": "2026-03-28T10:00:00Z",
    "updated_at": "2026-03-28T11:00:00Z"
  }
]
POST/api/growth/enrichmentAuth required

Queue an enrichment run.

Request Body

FieldTypeRequiredNote
providerstringYes—
statusstringNoDefault "queued"
fields_addedstringNo—

Response

{
  "id": 2,
  "workspace_id": 1,
  "provider": "clearbit",
  "status": "queued",
  "fields_added": null
}

Attribution

GET/api/growth/attributionAuth required

Live attribution: touch counts by channel, closed-won revenue in cents, and converting visitors (signup / demo-request touches).

Response

{
  "sources": { "email": 42, "paid_social": 18 },
  "total_revenue_cents": 2500000,
  "converting_visitors": 7
}

Agent Runs

Global recent-runs list plus single-run detail and manual run creation. Note: runs are not workspace-scoped; the list is global, latest first.

GET/api/agent-runs/runsAuth required

List recent agent runs, latest first.

Query Parameters

FieldTypeRequiredNote
limitnumberNoDefault 20, max 200

Response

{
  "runs": [
    {
      "id": 7,
      "agent_id": "outbound-bdr",
      "status": "done",
      "output": "Built 50-prospect list for fintech",
      "started_at": "2026-03-28T14:00:00Z",
      "trigger": "manual"
    }
  ],
  "total": 1
}
GET/api/agent-runs/runs/{run_id}Auth required

Get one agent run by id.

Response

{
  "id": 7,
  "agent_id": "outbound-bdr",
  "status": "done",
  "output": "Built 50-prospect list for fintech",
  "started_at": "2026-03-28T14:00:00Z",
  "trigger": "manual"
}
POST/api/agent-runs/runAuth required

Start a manual agent run. The team becomes the run's agent id and the goal becomes its output seed.

Request Body

FieldTypeRequiredNote
teamstringYesStored as agent_id
goalstringYesStored as output

Response

{
  "id": 8,
  "agent_id": "outbound-bdr",
  "status": "running",
  "output": "Enrich 100 new leads",
  "started_at": "2026-03-28T15:00:00Z",
  "trigger": "manual"
}