Try it for free
REST API · Webhooks

First-party GTM data for your agentic workflows

AI agents are only as useful as the ground truth they can retrieve. Salespanel's REST API turns real visitor behavior, account intent, and attribution into structured JSON your agents can query, branch on, and act on.

REST + Webhooks
Stable JSON schema
First-party · GDPR-ready
GET /contacts/{id}/activities
GET /leads
Webhooks
// Fetch contact + activity context before agent action
GET https://api.salespanel.io/v1/contacts/{id}/activities

// Response
{
"contact": {
"email": "[email protected]",
"company": "Acme Corp",
"score": 91,
"segment": "high-intent-icp"
},
"activities": [
{ "type": "page_visit", "page": "/pricing", "count": 3 },
{ "type": "email_open", "campaign": "q2-nurture" },
{ "type": "demo_booked", "crm_synced": true }
]
}
200 OK · 38ms · agent context ready
Why It Matters

Agents decide better with real GTM ground truth

Generic model knowledge can't tell your automation who just hit pricing three times, which segment a prospect belongs to, or whether a record is already syncing to Salesforce.

Facts, not hallucinations

When agents ask "who is this?" the API returns verified first-party behavioral facts — reducing the risk of LLM-driven decisions built on guesses instead of ground truth.

Composable with any orchestrator

REST tool-calling fits naturally into LangChain, n8n, Make, and custom agent loops. Stable JSON schema means no brittle scraping or prompt-injected context windows.

Deterministic branching logic

Segment membership, CRM sync status, and lead score thresholds give agents crisp if/else guardrails — so playbooks execute predictably rather than probabilistically.

Capability Map

What your agents can query

Five resource groups cover every agent question — from real-time prioritization to CRM integrity checks.

Agent question

Who should we prioritize right now?

Pull ranked leads and visiting companies using real engagement signals — page visits, session depth, return frequency, and segment membership.

GET /leads GET /visiting-companies GET /segments
Agent question

What is the full story on this person or account?

Retrieve a complete contact profile plus their activity timeline — every page, email, and event your agent can summarize, score, or branch on.

GET /contacts/{id} GET /contacts/{id}/activities
Agent question

How did they arrive and what campaigns matter?

First-touch and multi-touch attribution answers tied to marketing reality — not modeled guesses. Know which ad, email, or organic channel drove intent.

GET /attribution GET /contacts/{id}/attribution
Agent question

Is this record aligned with CRM workflow?

Check sync status before writing to avoid conflicting actions downstream. Know exactly whether a lead has already been pushed — and to which CRM object.

GET /contacts/{id}/crm-status
Agent question

Can we enrich identity or encode custom milestones?

Identify anonymous visitors, write custom activities, update visitor attributes, and initialize sessions — progressive profiling that feeds scoring and segmentation in real time.

POST /identify POST /activities POST /visitor-attributes
Two Modes of Agent Timing

REST for reasoning · Webhooks for reacting

Choose the right trigger pattern for each step in your agent loop — pull when you need context, receive a push when something meaningful happens.

⬇ REST — Pull

Ask when you need context

The agent or orchestrator queries Salespanel mid-decision — before drafting an email, choosing a playbook, or routing to a rep.

SDR copilot fetches contact + activities before a call script
Prioritization bot pulls visiting companies on a schedule
RevOps agent checks CRM sync status before writing a record
PLG assistant queries custom milestones to choose next action
⬆ Webhooks — Push

React when something happens

Salespanel notifies your stack in near–real time when a meaningful event fires — so agents react instantly without polling.

Lead score crosses threshold → agent drafts outreach brief
Target account revisits pricing → Slack alert + CRM task
Form fill detected → lifecycle orchestrator fires
Segment membership changes → playbook branch updates
REST for reasoning steps · Webhooks for reactive agents
Agent Loop

How a complete agentic workflow runs

From trigger to action — REST pulls context at decision time, the agent reasons on facts, and the outcome syncs back to your stack.

Trigger

Webhook fires on key behavior or scheduled job

📡

REST Fetch

Agent pulls contact + activities + attribution

GET /contacts/{id}/activities
🧠

Agent Reasons

LLM builds brief on verified first-party facts

🔀

Branch Logic

Score ≥ 80 + ICP segment → priority playbook

GET /segments · /crm-status

Action + Sync

Slack alert, email draft, or CRM task created

Privacy-First · Future-Proof

Behavioral source of truth — not third-party lists bolted onto a prompt

Generic intent signals from purchased lists add noise to agent decisions. Salespanel's API exposes your own first-party data — actual visitor behavior on your site, real email engagement, and verified attribution — so agents reason from facts you own.

🔒

GDPR & CCPA compliant by design

First-party architecture from day one. No third-party cookie dependencies. Full data processing agreements available.

No data pipeline just to get usable JSON

The same data that powers your marketing ops and CRM sync is instantly agent-readable over REST — no warehouse exports or ETL jobs required.

🔌

Same integration pattern, AI orchestration on top

REST + Webhooks already power your sales and marketing stack. Agents extend that pattern — no new infrastructure required.

Webhook payload · score_threshold_crossed
// Webhook fires when lead score crosses threshold
// POST → your agent endpoint

{
"event": "score_threshold_crossed",
"contact_id": "cnt_8f3a2b",
"email": "[email protected]",
"score": 88,
"threshold": 80,
"segment": "high-intent-icp",
"trigger_page": "/pricing",
"crm_synced": true,
"timestamp": "2026-05-05T14:22:31Z"
}

// Agent next step: GET /contacts/cnt_8f3a2b/activities
// → draft personalized outreach brief
Example Workflows

Five agentic workflows powered by the API

Real patterns teams are building today — from SDR copilots to RevOps integrity checks.

01 — SDR Copilot

Pre-call intelligence brief

Before a call, the agent fetches contact + activities + attribution + segment membership and drafts a brief grounded in real pages visited and campaigns engaged — not boilerplate.

GET /contacts/{id} GET /contacts/{id}/activities GET /contacts/{id}/attribution
02 — Prioritization Bot

Ranked outbound queue

Scheduled job pulls visiting companies and leads, merges with segment logic and firmographic filters, and outputs a ranked queue for the SDR team's outbound day.

GET /visiting-companies GET /leads GET /segments
03 — Lifecycle Orchestrator

Webhook-triggered channel routing

A webhook fires on a key behavior event. The agent retrieves full context over REST, then chooses the right channel — Slack alert, email sequence, or CRM task — based on score and segment.

PUSH webhook event GET /contacts/{id}/activities
04 — RevOps Integrity

CRM conflict prevention

Before updating a CRM record, the agent checks sync status to prevent conflicting writes or duplicate objects. Clean data in, clean data out — no manual deduplication.

GET /contacts/{id}/crm-status GET /contacts/{id}
05 — PLG Assistant

Product-led scoring milestones

Uses custom activities and visitor attributes as milestones the team defined — the same signals used for lead scoring are now available to agents for automated expansion and upgrade triggers.

POST /activities POST /visitor-attributes
For Developers

Everything you need to build

API keys in-product, public docs, and Webhooks resources — start integrating in minutes.

📚

API Documentation

Full reference for every endpoint — contacts, leads, activities, attribution, segments, and webhooks — including request/response examples and pagination guides.

Read the docs →
🔑

API Keys

Generate and manage API keys directly from your Salespanel dashboard. Keys are scoped per account — no shared credentials across workspaces.

Go to dashboard →

Webhooks

Subscribe to events — score changes, segment membership updates, form fills, and more. Events are delivered with automatic retries for reliable agent notifications.

Webhooks guide →
🔄

Rate Limits & Retries

Plan for quotas and exponential backoff in your agent design. Rate limit headers are returned on every response for transparent usage tracking.

🔌

Integrations & Zapier

Native connectors for HubSpot, Salesforce, Pipedrive, Slack, ActiveCampaign, Intercom, and more. Plus Zapier to reach thousands of additional platforms — so your agent outputs land wherever your team works.

Browse integrations →
🏗️

API Access & Plans

REST API and Webhooks access is available on all Salespanel plans. Start with a 14-day free trial — no credit card required.

See pricing →
FAQ

Common questions from builders

The API uses API key authentication. Generate your key from the Salespanel dashboard and pass it as a header — Authorization: Bearer YOUR_API_KEY. Keys are scoped per workspace and can be rotated at any time.

Standard rate limit response headers are returned on every API response. Design your agent with exponential backoff and retry logic. Consult the docs or contact support for specific quota details on your plan.

REST API and Webhooks are available on all plans — Customer Data Platform ($99/mo), Account Reveal ($99/mo), and Agents ($499/mo). All plans include a 14-day free trial with no credit card required — so you can prototype your integration before committing.

Yes. Salespanel's tracking is built on first-party data with privacy-first architecture. Full data processing agreements are available. When passing customer data to LLMs or third-party orchestration tools, ensure your own data processing agreements with those vendors are in place.

Yes — POST /activities lets you write custom events (e.g., demo_completed, trial_activated) that feed into scoring and segmentation. POST /visitor-attributes enriches profiles with your own data fields. Both become available for agent reads through standard GET endpoints.

Yes. Salespanel's API follows standard REST conventions — HTTP verbs, JSON responses, Bearer auth, and pagination — so it integrates with any orchestration framework that supports HTTP tool calls. LangChain tool definitions, n8n HTTP nodes, and Make HTTP modules all work out of the box.

Get Started

Connect your agents to real GTM data

Start a 14-day free trial, explore the docs, or talk to the team about your agentic workflow use case.

No credit card required
REST API & Webhooks included on all plans
Full docs at salespanel.io/docs