Documentation

Needle

Needle helps agents search people and places, build lead lists, run multi-channel campaigns on LinkedIn and Instagram, keep suppressions, preview messages, and send from connected accounts.

Needle helps agents search people and places, build lead lists, run multi-channel campaigns on LinkedIn and Instagram, keep suppressions, preview messages, and send from connected accounts.

The same outbound engine is available as a REST API and as MCP tools. One API key unlocks both. Listing MCP tools does not require a key; calling tools and REST endpoints does.

Get started

No install. Get an API key, then pick a path. No account yet? Start with Try without an account below: it builds a first lead list right now, with nothing to set up.

This skill is the routing layer. After you know the path, use the API Reference or MCP catalog for schemas.

Try without an account

Use this to test Needle's lead list building, or to show the human what Needle does, before anyone creates an account. There is nothing to set up: no account, no API key, no sign-in and no OAuth.

It is a read-only subset of Needle, meant for demos:

  • needleListLinkedinSearchParameters / GET /linkedin/search/parameters: turn text such as Berlin or Head of Sales into filter ids
  • needleSearchLinkedinPeopleSalesNavigator / POST /linkedin/sales-navigator/people/search: find people with Sales Navigator filters, 25 per page
  • needleGetLinkedinProfile / GET /linkedin/profiles/{identity}: read a profile: work history, education, skills
  • needleSearchLinkedinCompaniesClassic / POST /linkedin/companies/search: find company pages by keywords
  • needleGetLinkedinCompany / GET /linkedin/companies/{identifier}: read a company page
  • needleListLinkedinCompanyJobs / GET /linkedin/companies/{identifier}/jobs: list a company's open jobs, a sign it is hiring
  • needleSearchLinkedinJobs / POST /linkedin/jobs/search: find jobs by keywords, company, location or title
  • needleGetLinkedinJob / GET /linkedin/jobs/{jobId}: read a job: description, applicants, hiring team
  • needleListLinkedinPosts / GET /linkedin/posts: list recent posts by a person or company
  • needleSearchLinkedinPosts / POST /linkedin/posts/search: find posts by keywords
  • needleGetLinkedinPost / GET /linkedin/posts/{postId}: read one post
  • needleListLinkedinPostComments / GET /linkedin/posts/{postId}/comments: see who commented on a post: warm leads
  • needleListLinkedinPostReactions / GET /linkedin/posts/{postId}/reactions: see who reacted to a post

Each IP gets a few free calls a day for each kind of call, shared between the keyless MCP and REST:

  • 5 people searches
  • 15 profile lookups
  • 10 company lookups
  • 5 company, job and post searches
  • 4 job lookups
  • 5 post lookups (posts, comments and reactions)
  • 10 filter lookups

Refused calls do not count. Every answer has an info object pointing to the full product; MCP results also carry freeCalls with what is left today for that kind of call.

Flow for a first lead list:

  1. needleListLinkedinSearchParameters with service: "sales_navigator" and a type such as REGION, JOB_TITLE or SALES_INDUSTRY, to get filter ids.
  2. needleSearchLinkedinPeopleSalesNavigator with those ids, such as locations and jobTitles, plus keywords if useful.
  3. needleGetLinkedinProfile for the few people worth a closer look.

Or start from a buying signal: find a post on the topic with needleSearchLinkedinPosts, see who engaged with needleListLinkedinPostComments and needleListLinkedinPostReactions, then read their profiles. Hiring is another: needleSearchLinkedinJobs or needleListLinkedinCompanyJobs show who is growing a team, and needleGetLinkedinJob names the hiring team.

Over REST, the same works with plain HTTP:

Terminal
curl https://needle.app/keyless-api/v1/linkedin/companies/microsoft

When the demo is not enough, move to the full API or MCP server. It has 124 tools instead of 13, at the limits of the human's own connected accounts instead of a few calls a day: save leads, run multi-channel campaigns, send messages, invitations and InMails, read replies, search places, and keep suppressions. The tools keep the same names, so switch the server URL to https://needle.app/mcp/v1 and continue. Getting a key takes a minute: see Path D.

Get credentials

Needle users create an API key in the dashboard:

If they do not have an account yet, send them to Path D.

Sending, following, and inviting require a connected LinkedIn or Instagram account. Connecting an account is dashboard-only at /accounts. The API and MCP can list, update, and delete connected accounts; they cannot start the OAuth connect flow.

Already have NEEDLE_API_KEY? Skip credential setup. Pick a path below.

Choose your path

All paths use the same API key. The difference is what you do next.

  • No account, and a few leads or a demo is enough → Try without an account
  • Need outbound during this session → Path A (MCP tools)
  • Need to add Needle to app code → Path B (REST in the product)
  • Need a finished outbound workflow → Path C (source, campaign, or one-off send)
  • Need more than one of the above → do them in sequence; one key covers everything
  • Need an account or API key → Path D
  • Do not want to connect MCP → Path E (REST directly)
PathQuestion it answersWhere the work runs
AWhich Needle tool should I call right now?In the agent session, over MCP
BHow do I add a Needle API call to this codebase?Inside the user's product code
CWhat is the finished outbound workflow?In the agent session, producing a result
DHow does the human get a key?Dashboard
EHow do I call Needle over HTTP?REST at /api/v1

Path A: Live MCP tools

Use this when you need outbound during your work: searching people, building leads, running campaigns, sending LinkedIn or Instagram messages, or checking suppressions.

Connect at https://needle.app/mcp/v1. Apps sign in with OAuth, with a published app identity (a client metadata document, such as Claude, Codex and ChatGPT) or by registering themselves (RFC 7591, such as Cursor and OpenCode): on first connect they open a Needle page in the browser; the user signs in and clicks Allow, and the app stays connected until the user disconnects it under Settings. An API key from https://needle.app/settings/api-keys works instead of signing in. Per-app steps: https://needle.app/docs/mcp/introduction#setup. Listing tools at https://needle.app/mcp/v1/tools requires no sign-in; calling them does.

Works with Claude Code, Cowork, Codex, Cursor, Hermes, or any MCP client.

Route by job:

  • Who am I bound to? → needleGetMe
  • Find a record you already have → needleSearchLeads, needleSearchCampaigns, needleSearchEnrollments, needleSearchConnectedAccounts, or needleSearchSuppressions
  • What can I send from? → needleListConnectedAccounts
  • Find people → needleSearchLinkedinPeopleClassic or needleSearchLinkedinPeopleSalesNavigator, then needleGetLinkedinProfile
  • Find companies and jobs → needleSearchLinkedinCompaniesClassic, needleGetLinkedinCompany, needleListLinkedinCompanyJobs, or needleSearchLinkedinJobs (searches all of LinkedIn unless you pass companies; resolve location, industry and title ids with needleListLinkedinSearchParameters). Read the full description and hiring team of one job with needleGetLinkedinJob (takes a job id or job URL)
  • Read LinkedIn posts → needleSearchLinkedinPosts, needleListLinkedinPosts, needleGetLinkedinPost, needleListLinkedinPostComments
  • Engage on a post → needleCommentOnLinkedinPost or needleReactToLinkedinPost
  • Read the LinkedIn inbox → needleListLinkedinConversations, then needleListLinkedinConversationMessages
  • Answer inbound requests → needleListLinkedinReceivedInvitations, then needleRespondToLinkedinInvitation
  • Find locations → needleSearchPlaces, then needleGetPlace
  • Build a list → needleCreateLeads / needleUpsertLead / needleCreateLead / needleListLeads
  • Do not contact → needleCheckSuppressions / needleCreateSuppressions
  • Preview campaign copy → needleGetMessagePreviewForStep for a step and one enrollment, or needleGetMessagePreviewForTask for a queued task
  • Write a message with the lead's context → needleComposePreview with any prompt, account, and profile
  • One-off LinkedIn → needleSendLinkedinInvitation or needleSendLinkedinMessage; from Sales Navigator, needleSendLinkedinSalesNavigatorMessage or needleSendLinkedinSalesNavigatorInMail; from Recruiter, needleSendLinkedinRecruiterMessage or needleSendLinkedinRecruiterInMail. Each message tool takes a conversationId to reply in a conversation, or an identity. Attach a file with needleCreateFileUpload first (upload bytes, or copy a public file with sourceUrl), or reuse one from needleListFiles.
  • One-off Instagram → needleFollowInstagramUser or needleSendInstagramMessage
  • Campaign → needleCreateCampaign, needleEnrollCampaignLeads, needleListDrafts

Default flow for live outbound:

  1. needleGetMe to confirm the user and workspace.
  2. needleListConnectedAccounts before any send. If none are connected, send the human to /accounts.
  3. Search people or places, then create leads.
  4. needleCheckSuppressions before outreach.
  5. Enroll in a campaign and check a few leads with needleGetMessagePreviewForStep, or for a one-off send, write the message with needleComposePreview first.
  6. Start the campaign, or send the one-off invitation/message.
  7. Watch needleGetCampaignStats / needleSearchEvents after a campaign is live.

If the task becomes "wire Needle into product code," switch to Path B.

MCP tools

Me

Connected accounts

Leads

Campaigns

Drafts

Events

LinkedIn

Instagram

Places

Compose

Files

Suppressions

Webhooks

Onboarding

Assistant chats

Docs

Path B: Integrate Needle into an app

Use this when you are building an application, agent, or workflow that calls Needle from code, meaning the integration will run inside the user's product rather than from this session's MCP client.

This is the key difference from Path A: Path A calls MCP tools during the current session. Path B writes code that keeps running after the agent stops, using NEEDLE_API_KEY from the project's .env or runtime config.

NEEDLE_API_KEY=sk-ndl-…

Base URL: https://needle.app/api/v1

Auth header: Authorization: Bearer sk-ndl-…

Smoke-test with GET /api/v1/me before writing feature code:

Terminal
curl https://needle.app/api/v1/me \
  -H "Authorization: Bearer sk-ndl-…" \
  -H "Content-Type: application/json"

Route the feature the same way as Path A, then call the matching REST endpoint from Path E. Sends still need a connected account in the workspace that owns the key.

If you do not have a key yet, do Path D first.

Path C: Repeatable outbound workflows

Use this when the goal is a finished outbound result (a lead list, a live campaign, a one-off send, or a suppression pass), not raw tool output and not product-code integration.

Source a list

  1. needleSearchLinkedinPeopleClassic or needleSearchLinkedinPeopleSalesNavigator (keywords, structured filters, or a matching search URL), or needleSearchPlaces. Resolve LinkedIn filter ids with needleListLinkedinSearchParameters using the matching service. For companies, posts and job listings, use needleSearchLinkedinCompaniesClassic, needleSearchLinkedinPosts, needleGetLinkedinCompany / needleListLinkedinCompanyJobs.
  2. needleGetLinkedinProfile / needleGetPlace when you need details.
  3. needleCreateLeads for the whole list at once, or needleUpsertLead per person (it reuses the lead if the person already is one; needleCreateLead refuses duplicates). Keep the lead ids that come back: enrolling needs them. LinkedIn identity accepts john-doe, /in/john-doe, https://www.linkedin.com/in/john-doe, or a user id (ACoAAA…). Instagram accepts john-doe, @john-doe, or https://www.instagram.com/john-doe.
  4. needleCheckSuppressions and drop anyone you should not contact.

Run a campaign

  1. Confirm at least one connected account (needleListConnectedAccounts).
  2. needleCreateCampaign with the sequence graph, schedule, limits, and the connected accounts to send from.
  3. needleEnrollCampaignLeads with the lead ids from the list you sourced.
  4. Before it goes live, needleGetMessagePreviewForStep for each message step with a few enrollment ids from needleListCampaignLeads, to check what the saved step sends. Use needleComposePreview instead to try prompt changes before saving them.
  5. needleListDrafts when a send is waiting for review; ask the user to review it in the Needle inbox.
  6. needleGetCampaignStats and needleSearchEvents to see what happened.

One-off outreach

  1. Get the profile.
  2. needleComposePreview for the message.
  3. LinkedIn: needleSendLinkedinInvitation, needleSendLinkedinMessage, or an InMail with needleSendLinkedinSalesNavigatorInMail or needleSendLinkedinRecruiterInMail (check credits with needleGetLinkedinSalesNavigatorInMailBalance or needleGetLinkedinRecruiterInMailBalance).
  4. Instagram: needleFollowInstagramUser or needleSendInstagramMessage.

Keep people off the list

needleCreateSuppressions for people or companies that should not be contacted. Campaigns honor the suppression policy you set on create/update.

If the request shifts to "wire Needle into product code," switch to Path B. If you only need a single tool call, stay on Path A.

Path D: Account or API key

Use this when the human still needs to sign up, sign in, or create a key.

  1. If they have no account, open https://needle.app/login and sign up.
  2. Create a key at https://needle.app/settings/api-keys. Save it as NEEDLE_API_KEY.
  3. To send, connect LinkedIn and/or Instagram at https://needle.app/accounts.
  4. Continue with Path A, B, C, or E.

Listing MCP tools at /mcp/v1/tools is public; every other call needs a key. To show the human what Needle finds before they sign up, use Try without an account.

Path E: REST API without MCP

Use this when you do not want to connect an MCP client. This works for both live work in this session and app integrations (Path B).

Base URL: https://needle.app/api/v1

Auth header: Authorization: Bearer sk-ndl-…

Terminal
curl https://needle.app/api/v1/me \
  -H "Authorization: Bearer sk-ndl-…" \
  -H "Content-Type: application/json"

Successful requests return 2xx. 401 means a missing or invalid key. 422 means an invalid payload.

REST endpoints

Me

Connected accounts

Leads

Campaigns

Drafts

Events

LinkedIn

Instagram

Places

Compose

Files

Suppressions

Webhooks

Onboarding

Assistant chats

Docs

References

Search docs

Search documentation, API reference, and MCP tools

We use cookies to enhance your experience on Needle and keep your data secure. Privacy Policy