company logo

Salesforge Helpdesk

Go to Salesforge
Agent FrankLeadsforge - Search Engine For LeadsPrimeforge - Google & MS365Mailforge - Distributed Email InfrastructureInfraforge - Private Email InfrastructureWarmforge - Email Deliverability Center
All collectionsAPI & DevelopersLeadsforge Public API

Leadsforge Public API

Leadsforge public API: what you can do, free monthly search quota, credits, access without a subscription, error codes and rate limits

Full developer documentation: developer.salesforge.ai/leadsforge-api. Endpoint reference: https://api.leadsforge.ai/public/swagger/index.html

The Leadsforge public API gives you programmatic access to lead sourcing and enrichment, so you can use Leadsforge directly in your own workflows, scripts and tools. The base URL is https://api.leadsforge.ai/public/v1. Get your API key in Leadsforge under Settings > API & MCP and send it as-is in the Authorization header.

What you can do with the API

  • Search leads: use the same ICP filters as the app, with cursor pagination. The output matches the CSV download (locations are split into city and country). You can skip contacts you already own with the exclusion filters excludeEmails, excludeDomains and excludeLinkedInURLs, or target specific companies with companyDomains.include. POST /search/count returns how many leads match a filter set without paginating.

  • Enrich contacts: find work emails, phone numbers and LinkedIn URLs. Single lookups (/enrichment/email and /enrichment/phone) answer in the same response, but can take tens of seconds. Bulk jobs (/enrichment/emails, /phones and /linkedin) run in the background. A LinkedIn URL is only returned if you enrich for it.

  • Lookalike companies: give up to 10 company domains and get similar companies. /lookalikes/preview returns company data only. To get people, pass a returned domain into POST /search with companyDomains.include.

  • Company followers: start a background search for the people who follow a company on LinkedIn, then fetch the job status and results.

  • Maps discovery: find local businesses from Google Maps by category and radius, then look up their owners (/maps-discovery/enrich-owners, up to 200 businesses from one search job).

  • Filter values and balance: the /filters endpoints list the accepted values for controlled filters such as industries, seniorities and locations. They are free. Use the exact values they return, because some are case-sensitive. GET /balance returns your credit balance.

Search and paging

  • Each person has an ID that stays the same across searches. Enrichment skips IDs of people who were removed from the database.

  • limit ranges from 1 to 2000. While more results exist, the response includes a cursor.

  • A cursor is valid for 20 minutes after each page. After 1,000 people have been returned, the next cursor page returns 410. Refine your filters to reach other people.

  • Fixed-value filters (industry, seniority, department and so on) have free /search/filters endpoints that list the accepted values.

API access and credits

  • API key: the key works at account level and uses the credits of the whole account.

  • No subscription needed: your API key works whether your subscription is active or cancelled, as long as you have credits. If you bought credits and only need the API now and then, you don't have to keep a plan running.

  • Credits: same credit balance as in the app. Prices can be set per account and per result type, so read yours from GET /balance. It returns your available credits, your reserved credits and the current price of each action. The prices below are currently the same for all accounts, and GET /balance always shows the ones that apply to yours.

  • Reserved credits: operations that can spend a lot reserve credits first and then charge only for what was actually returned. The rest of the reservation is released. If your available credits minus your reserved credits don't cover the reservation, the request fails with 402 and nothing starts. Available minus reserved estimates what you can spend right now.

  • Free re-lookups: if your account already got a person's email, phone number or LinkedIn URL in the last 30 days, enrichment returns it again for free, with no reservation. This applies in the app, CSV upload, Chrome extension and API. Older values are looked up again and charged if found. Getting the same value again doesn't extend the 30 days.

  • Failed requests: failed requests aren't charged and reserved credits are released. The exceptions are a request cut off by the server timeout and a job start that fails with a 5xx. The job may still have started and will keep running, and you are charged for the values it returns. Retry with the same Idempotency-Key, or look the job up by its clientRequestID, so you don't start it twice.

Free monthly requests

Search, count and lookalike preview are free up to a monthly allowance. Each one has its own independent pool. The allowance is counted per account across all its API keys and resets at the start of each UTC calendar month. After it is used up, each successful call costs credits. Failed requests, including rate-limited ones, don't count. GET /balance doesn't show how much of the allowance is left.

  • POST /search: 1,000 free requests, then 1 credit per request. Every cursor page counts as one request.

  • POST /search/count: 1,000 free requests of its own, separate from search, then 1 credit per request.

  • POST /lookalikes/preview: 300 free requests, then 1 credit per request.

Light and regular use usually stays within the free allowance. The limits keep search fast and reliable for everyone.

What else costs credits

  • Enrichment: charged per value found, as in the app. A single email lookup costs 1 credit when an email is found and nothing when it isn't. A single phone lookup costs 10 credits when a number is found. A bulk job reserves credits for every person who needs a lookup and, when it finishes, charges only for the values found.

  • Lookalike search: 1 credit per company returned. Credits are reserved for a full page before the search and charged for the actual results.

  • Company followers: charged per follower collected. Credits are reserved for the smaller of your limit and the page's follower count, then settled when the job finishes.

  • Maps discovery: charged per business found, with credits reserved for your limit. Owner enrichment is charged per owner email and phone found: 10 credits per owner email and 10 credits per owner phone. The reservation for owner enrichment isn't a ceiling: owners already found recently for the same places in your account are reused without a reservation, but their missing email or phone is still charged, so a job can cost more than it reserved.

Jobs and webhooks

Email, phone and LinkedIn enrichment, company followers search, Maps discovery and Maps owner enrichment run as background jobs. Starting one returns 202 Accepted with the jobID, a statusURL and a resultsURL. Poll the job until its status is final, then page through the results with offset and limit. Search, lookalike companies and single email or phone lookups answer in the same response.

  • Job statuses are in_progress, completed and failed. Company followers and Maps jobs can also end as no_results. For enrichment, each person's result is succeeded, not_found or failed. If an enrichment job fails, people it didn't reach have no result, so start a new job for them.

  • To find a job again, use the list endpoint for that job type. It returns your jobs newest first and can filter by status, creation time and clientRequestID, your own reference of up to 128 characters that you set when you start the job.

Enrichment jobs

  • A bulk job accepts up to 500 people. If you send more, the API returns 400. Leadsforge doesn't queue the rest for you, so split bigger lists into several requests of 500 or fewer.

  • Send either personIDs from a search, or a people list with a LinkedIn URL, or first name, last name and company. A company domain matches more reliably than a company name. If a LinkedIn URL is invalid, Leadsforge matches by name and company when you sent them.

  • Add your own externalID (up to 128 characters) to match results to your records. Duplicate people (same LinkedIn URL, same name and company, or entries that match the same person) get one result, which carries the externalID of the first matching entry. They count once in the job total, so send each person once.

  • IDs that match nobody are skipped and not counted in the total.

Webhooks

Add a webhookURL when you start a job to be notified. Webhooks supplement polling, they don't replace it.

  • Enrichment: one webhook per person, sent when that person's result is recorded. There is no job-level webhook, so poll the job for its final status. Failed deliveries are retried immediately and then in the background for up to 24 hours.

  • Company followers: one webhook when the job ends, with the same retry rules as enrichment.

  • Maps discovery and owner enrichment: one webhook when the job ends, with up to 3 attempts close together and no later redelivery.

  • Reply with a 2xx quickly. Each attempt waits up to 8 seconds. Retries happen on 5xx, 429 and network errors. Other 4xx responses are final, and redirects are not followed.

  • Use the X-Webhook-Delivery-Id header to ignore duplicates. Enrichment uses one ID per person. Company followers and Maps use the jobID.

  • webhookURL must be a public http or https URL with a domain name, not an IP address, or the request fails with 400. Use https, because enrichment results contain personal data.

Idempotency keys

Send an Idempotency-Key header on job starts and lookalike company searches, so a network error doesn't lead to duplicate work or a second charge. Use a new key for each distinct request.

  • Enrichment, company followers and Maps jobs: a repeated key in your account (per channel for enrichment) returns the existing job, whatever its status or request body, for as long as that job exists. The body must still be valid.

  • Lookalike company search: keys are remembered for 10 minutes. A repeat returns the original result and doesn't charge credits again. A repeat while the first request is still running returns 409 idempotency_conflict.

Common errors

Failed requests return an HTTP status and a JSON body with message, code and sometimes data. Branch on code, because it is stable and the message can change.

  • 400 bad_request: the body or a parameter is invalid. Fix the request instead of retrying it unchanged.

  • 401: missing_api_key (no Authorization header), invalid_api_key (unknown or revoked key) or unauthorized (the account is blocked, contact support).

  • 402 insufficient_credits: your available credits minus reserved credits don't cover the request, or a monthly free allowance is used up and your credits don't cover the next call. Top up your credits and try again. For enrichment and other per-result operations you can also request a smaller limit or page.

  • 403 account_frozen: credit spending is paused on the account. Contact support through the chat.

  • 404 not_found: the job or resource isn't in your account. Check the ID.

  • 409: conflict means the operation clashes with another, for example an owner lookup is already running for that Maps search or a concurrent start used the same Idempotency-Key. Retry later with the same request and key. idempotency_conflict means a lookalike search with the same key is still running.

  • 410 gone on search: the cursor expired or is invalid, or the search reached its maximum number of results. Start a new search with narrower filters.

  • 429 rate_limited: too many requests (see the rate limits below), too many active jobs, or the service is temporarily busy. Retry later and honor the Retry-After header when it is set.

  • 500 internal, 502 bad_gateway and 503 service_unavailable: temporary errors. Retry with backoff. For a single email or phone lookup that returns 503 because the synchronous lookup isn't available, start an asynchronous job instead. A server timeout returns 503 with an empty body and the request may still have completed, so for job starts retry with the same Idempotency-Key.

Rate limits for public endpoints

  • POST /public/v1/search – 20 requests per minute per account (i.e. per accountID), not per API key.

  • POST /public/v1/search/count – 20 requests per minute per accountID, in its own bucket, separate from /search.

  • GET /public/v1/balance – 60 requests per minute per API key.

  • GET /public/v1/search/filters/* (industries, seniorities, departments, company-types, funding-types, revenue-ranges) – 60 requests per minute per API key.

  • GET /public/v1/enrichment/jobs (list), /jobs/{jobID} and /jobs/{jobID}/results – 60 requests per minute per API key.

  • POST /public/v1/enrichment/email and POST /public/v1/enrichment/phone (synchronous, single-record lookups) – 120 requests per minute per API key.

  • POST /public/v1/enrichment/{emails|phones|linkedin} (asynchronous bulk jobs) – 120 requests per minute per API key on each of the three endpoints separately. There is also a cap on active jobs: by default an account can have up to 10 active enrichment jobs at the same time, counted together across email, phone and LinkedIn. If you exceed it, the API returns 429 "active enrichment jobs limit reached". Company followers and Maps discovery jobs have their own counters with the same default.

  • POST /public/v1/company-followers/search – 10 requests per minute per accountID (the lowest limit in the API).

  • GET /public/v1/company-followers/jobs, /jobs/{id}, /jobs/{id}/results – 60 requests per minute per API key.

  • GET /public/v1/company-followers/filters/* (countries, states, job-titles, departments, levels) – 60 requests per minute per API key.

  • POST /public/v1/lookalikes/search – 20 requests per minute per accountID.

  • POST /public/v1/lookalikes/preview – 60 requests per minute per API key.

  • GET /public/v1/lookalikes/filters/* (seniorities, departments, employee-ranges, locations) – 60 requests per minute per API key.

Rate limits for the Maps discovery endpoints aren't listed here. Check the Swagger docs above for the latest details. When a per-minute rate limit is triggered, the X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset and Retry-After headers are returned. The active-enrichment-jobs 429 is different. It comes from the per-account concurrency check, not the rate limiter, so it doesn't include these headers.

For more detail, see the developer docs on credits, search and enrichment, asynchronous jobs and errors. For limits across all Forge products, see Forge API & MCP: Rate Limits, Authentication & Known Gaps.

Did this answer your question?
😞
😐
😁