---
title: The Swarm API Integration on Truto
slug: theswarm
category: Sales Intelligence
canonical: "https://truto.one/integrations/detail/theswarm/"
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://truto.one/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# The Swarm API Integration on Truto



**Category:** Sales Intelligence  
**Status:** Beta

## Ways to use The Swarm with Truto

- **Proxy API** (every plan, including Free): call the The Swarm API 1-to-1 through Truto. Truto handles sign-in, token refresh and pagination.
- **MCP server** (every plan, including Free): 16 The Swarm tools for AI agents in Claude, ChatGPT, Cursor, Windsurf, VS Code, Cline, Zed or any MCP client, and custom agents. One customer account per server, with tool limits and expiry you set. For an agent you build, `GET https://api.truto.one/integrated-account/<id>/tools` returns every tool for the account with its description and JSON schema, for any LLM framework; LangChain.js has a ready toolset (`truto-langchainjs-toolset`, https://github.com/trutohq/truto-langchainjs-toolset). Tool descriptions and schemas are editable in your Truto account and update at once. Docs: https://truto.one/docs/guides/tools/overview/
- **Unified API** (add-on, $499 per category a month, 30-day trial on Free): a unified API gives every app in a category the same call and the same data shape. The Swarm is not mapped to one yet. There are two paths:
  - **Map it yourself (self-serve):** use the mapping editor, with version history. A mapping goes live for every connected account with no deploy. Your own unified models are in the Pro add-on, $499 a month. Start free at https://app.truto.one/signup
  - **Ask Truto:** tell Truto the The Swarm data you need, and Truto adds the mapping. https://truto.one/book-a-demo/
  - **Today, without a mapping:** the Proxy API already works for The Swarm on every plan, including Free.
- **Sync and webhooks**: sync The Swarm records to your webhook or data store on a schedule. Billing counts the record events delivered to you, not the calls a sync job makes.
- **Custom actions**: add any The Swarm endpoint or method with the Truto CLI, live for every connected account with no deploy.

## MCP-ready AI tools

Truto exposes 16 tools for The Swarm that AI agents can call directly.

- **list_all_the_swarm_profile_posts** — List a person's LinkedIn profile posts in The Swarm. Returns each post's urn, commentary, actor, url, and social_activity_counts. Requires one of linkedinID, linkedinName, or linkedinEntityID to identify the person. Costs 5 credits per call (live test); The Swarm returns 50 posts a page whatever page size is asked.
- **list_all_the_swarm_company_posts** — List LinkedIn posts published by a company via The Swarm. Returns: urn, actor, post_range, post_age, social_activity_counts, images, url, video, reshared_post, commentary, header, header_entity. Provide linkedinID or linkedinName to identify the company. Costs 5 credits per call (live test); The Swarm returns about 50 posts a page whatever page size is asked, and page 2 can repeat posts from page 1 (27 of 49 in the live test): de-duplicate by urn.
- **the_swarm_profiles_fetch** — Fetch profiles with their data from The Swarm by identifiers. Returns: id, lists, tags, profile_info, found_by. Costs 1 credit per record returned.
- **the_swarm_profiles_refresh** — Fetch an up-to-date (refreshed) profile from The Swarm for a single LinkedIn URL slug. Returns the refreshed ProfileInfo object: id, full_name, headline, current_title, current_company_name, work_email, skills, and more. Required: linkedinName. Costs 3 credits per call (live test).
- **the_swarm_companies_fetch** — Fetch companies with their data from The Swarm by UUIDs or LinkedIn identifiers. Returns: id, company_info, tags, found_by. Costs 1 credit per record returned.
- **list_all_the_swarm_company_search_results** — Search The Swarm company ids with an ElasticSearch/OpenSearch DSL query (free). Each row is a company id (UUID string) to pass to companies.fetch; the connector pages with pagination_token. Required: query. stable_pagination needs a page size of 1000.
- **create_a_the_swarm_connector** — Add one or more LinkedIn users as connectors to the team by their usernames (profile slugs or full profile URLs). Returns: usernames_not_found, users_added, users_exist. Required: linkedin_usernames. Processes asynchronously.
- **create_a_the_swarm_network_map** — Create a network mapping for a company in The Swarm. Returns mapping results; each item has the matched profile and its connections, including connector details and connection strengths per source (LinkedIn connections, work overlaps, education, shared investors, more). Requires query and mapping_company_website. Required: query, mapping_company_website.
- **the_swarm_network_maps_status** — Check the status of an asynchronous network mapping task in The Swarm. Returns the current task status — one of Unknown, MappingFailed, NotMapped, MappingInProgress, or Mapped. Required: task_id.
- **list_all_the_swarm_post_comments** — List comments on a LinkedIn post identified by its urn. Returns each comment with commentary, commenter, created_at, num_reactions, and reaction_type_counts. Required: urn. Max 100 per page. Costs 1 credit per call (live test); about 50 rows a page whatever page size is asked.
- **list_all_the_swarm_post_reactions** — List reactions on a LinkedIn post in The Swarm, identified by its urn. Returns: reaction_type, reactor. Required: urn. Max 100 per page. Costs 1 credit per call (live test); about 50 rows a page whatever page size is asked.
- **list_all_the_swarm_post_reshares** — List reshares of a LinkedIn post in The Swarm. Returns each reshare's urn, commentary, actor, reshared_post, and url. Required: urn. Max 100 per page. Costs 1 credit per call (live test); about 50 rows a page whatever page size is asked.
- **list_all_the_swarm_profile_search_results** — Search The Swarm profile ids with an ElasticSearch/OpenSearch DSL query (free). Each row is a profile id (UUID string) to pass to profiles.fetch; the connector pages with pagination_token. Required: query. stable_pagination needs a page size of 1000.
- **create_a_the_swarm_team** — Create a child team under the authenticated team in The Swarm. Returns: team_id. Required: team_name. company_website and company_linkedin_url are mutually exclusive.
- **list_all_the_swarm_credit_usage** — Get the credit usage for your team's current billing period in The Swarm. The team is identified from the API key, and the meter usage for the active billing period is reported. Returns: usage.
- **list_all_the_swarm_relationships** — Find profiles connected to your team in The Swarm by running an ElasticSearch/OpenSearch DSL query. Returns items with each match's profile and connections. Required: query. Max 1000 per page.

## How it works

1. **Link your customer's The Swarm account.** Use Truto's frontend SDK; we handle every OAuth and API key flow so you don't need to create the OAuth app.
2. **Authentication is automatic.** Truto refreshes tokens, stores credentials securely, and injects them into every API request.
3. **Call Truto's API to reach The Swarm.** The Proxy API is a 1-to-1 mapping of the The Swarm API.
4. **Get a unified response format.** Every response uses a single shape, with cursor-based pagination and data in the `result` field.

## Use cases

- **Embed warm intro paths inside CRMs** — CRM and sales platforms can offer users a 'See Connections' card on every Account and Contact record, surfacing who on their team can make a warm introduction without the user leaving the app.
- **Power relationship-based lead routing** — RevOps and lead routing tools can branch workflows based on relationship strength — routing high-intent inbound leads to the rep with the strongest personal tie, instead of round-robin.
- **Surface social buying signals for prospecting tools** — Intent data and prospecting platforms can ingest LinkedIn post engagement (comments, reactions, reshares) to detect ICP buyers who are actively engaging with competitor or category content.
- **Enable intro-led outbound in sales engagement** — Sequencers and outbound tools can check for warm connections before firing cold emails, swapping in AI-drafted forwardable intro requests when a mutual tie exists — raising reply rates and reducing spam.
- **Automate backdoor references in ATS platforms** — Applicant tracking systems can cross-reference candidates against the hiring company's employee network to flag shared work history, enabling instant, trusted reference checks.

## What you can build

- **Warm intro path widget** — Render a panel on any contact or company record showing exactly which teammates, investors, or advisors are connected to the target, with a relationship strength score.
- **Async network overlap mapping** — Kick off a network map job against a target company domain and poll its status to return a ranked list of intro paths with granular evidence like shared employers and schools.
- **LinkedIn engagement lead extraction** — Pull all commenters, reactors, and resharers of a given LinkedIn post URN to build lead lists from people who are actively engaging with category content.
- **Job-change and profile refresh triggers** — Trigger a profile refresh by LinkedIn handle to detect title or company changes in real time and fire downstream workflows for job-change plays.
- **Multi-tenant team provisioning** — Programmatically spin up child teams and attach LinkedIn connectors so each of your customers gets an isolated relationship graph seeded automatically during onboarding.
- **Relationship-scored lead enrichment** — Enrich inbound leads with a relationship score and matched connector profiles so routing engines can branch between warm-intro and cold-sequence paths.

## FAQs

### How do end users authenticate their The Swarm account?

Truto handles the full OAuth and credential exchange for The Swarm on your behalf. Your users connect their account through a Truto-hosted flow or your own embedded UI, and Truto manages token storage, refresh, and revocation.

### Which The Swarm operations are supported today?

The integration exposes tools for profiles (fetch, refresh, search), companies (fetch, search), posts (profile and company posts, comments, reactions, reshares), network maps (create and status), relationships, connectors, teams, and credit usage.

### How does network map generation work since it's asynchronous?

You call create_a_the_swarm_network_map with a target company website to kick off the job, then poll the_swarm_network_maps_status until the map is ready. Truto normalizes the job lifecycle so you can wire it to webhooks or background workers in your product.

### Can we provision isolated graphs for each of our customers?

Yes. You can call create_a_the_swarm_team to spin up a child team per customer and use create_a_the_swarm_connector to attach LinkedIn identities, giving each tenant their own relationship graph without manual onboarding.

### How fresh is the profile data returned?

Use the_swarm_profiles_fetch for the cached view and the_swarm_profiles_refresh to force an up-to-date pull of a profile's current title, company, and tags — useful for job-change detection and enrichment triggers.

### How are rate limits and credit usage handled?

The Swarm meters usage via credits. You can call list_all_the_swarm_credit_usage to monitor consumption per connected account, and Truto surfaces upstream rate-limit responses so you can back off or queue requests gracefully.

### Is there a unified Sales Intelligence API for The Swarm?

Not yet — The Swarm is available as a native passthrough integration with typed tools. You get direct, structured access to its endpoints through Truto without having to build a unified abstraction yourself.
