Developer docs menu

Other APIs

The team analytics API for BI tools, and the Custom Opportunities API for partners.

Team analytics API

Read-only outreach numbers for a whole team, per rep and over time, for BI tools such as Power BI, Looker Studio or a spreadsheet. Included with Teams on the Gold, Platinum and Managed plans.

Base URLhttps://production.crmcopilot.ai/api/team/v1
KeysTeam keys start with cpt_. A team owner or admin makes them on the Team page under API keys. Shown once; up to 25 per team; revoke any time.
AuthAuthorization: Bearer cpt_… (or X-API-Key: cpt_…)
Rate limit120 requests per minute per key, with the same X-RateLimit-* headers as the Agent API. Over it: 429 with Retry-After.
Errors{"error": "message"} with status 400 (bad parameter), 401 (no or revoked key), 403, 404 (user not on the team) or 429.

Common parameters

ParameterTypeDescription
fromYYYY-MM-DDStart date, inclusive. Default: 29 days before to.
toYYYY-MM-DDEnd date, inclusive. Default: today. A range can cover at most 366 days.
tzIANA time zoneSets day, week and month boundaries. Default: the team's time zone.
user_idintegerOnly this rep. Default: everyone currently on the team.

Only current team members are counted.

Get the team

GET/api/team/v1/teamscope analytics:read
Requestcurl "https://production.crmcopilot.ai/api/team/v1/team" \
  -H "Authorization: Bearer $CRMCOPILOT_TEAM_KEY"
Response{
  "team": {
    "id": 12,
    "name": "Northwind Sales",
    "timezone": "America/New_York"
  },
  "members": [
    {
      "id": 407,
      "name": "Priya Nair",
      "email": "[email protected]",
      "role": "owner"
    },
    {
      "id": 512,
      "name": "Sam Ortiz",
      "email": "[email protected]",
      "role": "member"
    }
  ]
}

Outreach per rep

GET/api/team/v1/outreach/usersscope analytics:read

One row per rep plus totals. Rates are percentages with one decimal, or null when there's nothing to divide by. open_rate counts only tracked emails. Video plays, finishes and clicks are lifetime totals for videos recorded in the range.

Requestcurl "https://production.crmcopilot.ai/api/team/v1/outreach/users?from=2026-11-01&to=2026-11-30" \
  -H "Authorization: Bearer $CRMCOPILOT_TEAM_KEY"
Response{
  "team": {
    "id": 12,
    "name": "Northwind Sales"
  },
  "range": {
    "from": "2026-11-01",
    "to": "2026-11-30",
    "timezone": "America/New_York"
  },
  "generated_at": "2026-12-05T15:10:02+00:00",
  "users": [
    {
      "user": {
        "id": 407,
        "name": "Priya Nair",
        "email": "[email protected]"
      },
      "emails_sent": 76,
      "one_to_one_emails": 61,
      "scheduled_emails": 0,
      "sequence_emails": 15,
      "video_emails": 31,
      "emails_opened": 40,
      "open_rate": 57.4,
      "videos_recorded": 33,
      "videos_viewed": 26,
      "video_view_rate": 78.8,
      "video_plays": 41,
      "videos_finished": 19,
      "avg_watch_percent": 72,
      "booking_clicks": 3,
      "sequence_enrollments": 18,
      "sequence_active": 9,
      "sequence_replied": 3,
      "sequence_completed": 5,
      "sequence_stopped": 1,
      "sequence_reply_rate": 16.7
    }
  ],
  "totals": {
    "emails_sent": 236,
    "…": "same keys"
  }
}

Outreach over time

GET/api/team/v1/outreach/summaryscope analytics:read
ParameterTypeDescription
intervalstringday (default), week (keyed by Monday) or month.

Every period is included, even empty ones. Takes the common parameters too.

Requestcurl "https://production.crmcopilot.ai/api/team/v1/outreach/summary?from=2026-11-01&to=2026-11-14&interval=week" \
  -H "Authorization: Bearer $CRMCOPILOT_TEAM_KEY"
Response{
  "team": {
    "id": 12,
    "name": "Northwind Sales"
  },
  "range": {
    "from": "2026-11-01",
    "to": "2026-11-14",
    "timezone": "America/New_York"
  },
  "generated_at": "2026-12-05T15:11:40+00:00",
  "interval": "week",
  "user_id": null,
  "totals": {
    "emails_sent": 110,
    "…": "same keys as above"
  },
  "series": [
    {
      "period": "2026-10-27",
      "emails_sent": 9,
      "…": "…"
    },
    {
      "period": "2026-11-03",
      "emails_sent": 58,
      "…": "…"
    }
  ]
}

Raw outreach events

GET/api/team/v1/outreach/eventsscope analytics:read

Row-level emails, videos or sequence enrollments, for loading into a warehouse. Page with after_id: pass the last next_after_id until has_more is false.

ParameterTypeDescription
typestringemails (default), videos or enrollments.
limitinteger1–500, default 100.
after_idintegerOnly rows with a higher id, oldest first.
from / to / tz / user_idAs above. With no from or to, there's no date filter.
Requestcurl "https://production.crmcopilot.ai/api/team/v1/outreach/events?type=emails&limit=500" \
  -H "Authorization: Bearer $CRMCOPILOT_TEAM_KEY"
Response{
  "team": {
    "id": 12,
    "name": "Northwind Sales"
  },
  "type": "emails",
  "data": [
    {
      "id": 88213,
      "user_id": 407,
      "user_email": "[email protected]",
      "type": "one_to_one",
      "sent_at": "2026-12-05T14:51:02+00:00",
      "to": "[email protected]",
      "subject": "Quick idea for Acme's SDR ramp",
      "lead_name": "Jordan Lee",
      "lead_company": "Acme Inc",
      "sequence_enrollment_id": null,
      "video_id": null,
      "tracked": true,
      "opens": 2,
      "first_opened_at": "2026-12-05T15:04:10+00:00",
      "last_opened_at": "2026-12-05T16:20:44+00:00"
    }
  ],
  "next_after_id": 88213,
  "has_more": true
}

videos rows: id, user_id, user_email, created_at, lead_name, lead_email, lead_company, duration_sec, plays, completions, max_percent, booking_clicks, view_url, first_viewed_at, last_viewed_at. enrollments rows: id, user_id, user_email, created_at, sequence_id, sequence_name, recipient_email, recipient_name, status, current_step, updated_at.

Team target accounts

GET/api/team/v1/accountsscope analytics:read

The team's shared target accounts, sorted by name, with the last 365 days of activity. status is target, working, customer or not_fit.

Requestcurl "https://production.crmcopilot.ai/api/team/v1/accounts" \
  -H "Authorization: Bearer $CRMCOPILOT_TEAM_KEY"
Response{
  "team": {
    "id": 12,
    "name": "Northwind Sales"
  },
  "accounts": [
    {
      "id": 31,
      "name": "Acme Inc",
      "domain": "acme.example",
      "industry": "Software",
      "employees": 240,
      "linkedin_url": "https://www.linkedin.com/company/acme-example",
      "status": "working",
      "notes": "Expanding SDR team",
      "owner_id": 407,
      "owner_name": "Priya Nair",
      "added_by": 512,
      "added_by_name": "Sam Ortiz",
      "source": "search",
      "fits": [],
      "created_at": "2026-11-02T13:00:00+00:00",
      "activity": {
        "emails": 6,
        "videos": 1,
        "sequences": 2,
        "opened": 3,
        "watched": 1,
        "replied": 1,
        "people": 2,
        "last": {
          "at": "2026-12-04T18:22:00+00:00",
          "kind": "email",
          "user_id": 407,
          "user_name": "Priya Nair",
          "name": "Jordan Lee"
        },
        "reps": [
          {
            "user_id": 407,
            "name": "Priya Nair",
            "touches": 7
          }
        ]
      }
    }
  ]
}

Custom Opportunities API

For partners who run their own opportunity-finding (for example a job-post or website-change scanner) and want the results worked inside CRMCoPilot. It's switched on per account on request; on other accounts every endpoint returns 404. Contact us to have it turned on.

Base URLhttps://production.crmcopilot.ai/api/v2/custom-opportunities
AuthX-API-Key: cpk_…, a key from Settings → API Tokens. Acts on the key owner's account.
Errors{"success": false, "message": "…"} with 400, 401 or 404.
EndpointWhat it does
POST /ingestSend up to 500 opportunities: {"opportunities": [ … ]}. Each is created or updated by source + external_id, and company is required. One bad item doesn't stop the rest. Returns created, updated, skipped (with reasons) and warnings for fields that were dropped as malformed.
GET /List opportunities, best first (tier, then score, then newest). page, per_page (1–100, default 25), type (signal category).
GET /schemaThe JSON Schema (draft 2020-12) of one opportunity, including every optional field. Build against this.
GET /dispositionsWhat reps did with your opportunities (dismiss, snooze, assign, restore, follow up, pushed to CRM), oldest first. source is required; since (ISO 8601), page, per_page (up to 500).
Requestcurl -X POST "https://production.crmcopilot.ai/api/v2/custom-opportunities/ingest" \
  -H "X-API-Key: $CRMCOPILOT_KEY" -H "Content-Type: application/json" \
  -d '{"opportunities":[{"source":"my_scanner","external_id":"job-12345","company":"Acme Inc","domain":"acme.example","score":86,"signal_category":"hiring","why_now":"Hiring two SDRs after a Series B.","source_url":"https://acme.example/careers/sdr"}]}' 
Response{
  "success": true,
  "created": 1,
  "updated": 0,
  "skipped": [],
  "warnings": []
}

Last checked against the live code on 5 December 2026.

Shopping cart