# Get Remaining Credits Source: https://docs.preceptai.co.uk/api-reference/billing/get-remaining-credits /api-reference/combined.json get /v1/credits Retrieve the remaining credit balance for the authenticated user/organization. Use this endpoint to monitor your usage and programmatically check how many credits are available for search and enrichment requests. # Get Campaign Metrics Source: https://docs.preceptai.co.uk/api-reference/campaigns/get-campaign-metrics /api-reference/combined.json get /v1/campaigns Retrieve your LinkedIn outreach campaigns along with volume metrics, funnel counts, and acceptance/reply conversion rates. ### Scope & API Key Requirements - **Personal / User Scope (`GET /v1/campaigns`)**: Requires a **User API key**. Returns campaigns and aggregated performance metrics for that user. - **Organization Scope (`GET /v1/campaigns?scope=org`)**: Requires an **Organization Service API key**. Aggregates campaigns across all seats in the organization, includes a `byUser` performance breakdown, and attributes each campaign by team member name and email. If a User API key is used with `?scope=org`, or an Organization API key is used without `?scope=org`, the endpoint returns `403 Forbidden`. ### Pagination & Rollup Behavior - **`summary` and `byUser` are never truncated by `limit`**: They always compute the complete totals across **all** campaigns and team members matching your `status` and `startDate`/`endDate` filters. - **`limit` and `offset` paginate the `campaigns` array**: When `scope=org`, campaigns from all team members are merged into a single chronological list sorted newest-first (`createdAt` descending), and `limit` controls how many campaign items are returned per page. # Get Company Insights Source: https://docs.preceptai.co.uk/api-reference/companies/get-company-insights /api-reference/combined.json post /v1/companies/insights Retrieve detailed insights and enrichments for a list of companies. This endpoint enriches a list of companies with comprehensive data. You provide a list of companies, identified by either their website or LinkedIn URL, and specify the desired enrichments. The results are delivered to the `webhookUrl` you provide. Get company-level insights, such as: - Number of employees (by department) - Names and LinkedIn profiles of employees - Funding raised - Revenue - Strategic initiatives at the company - Latest news - Top problems the company is facing right now - **+42** more datapoints. You can also make custom queries about the company. To associate your own internal identifiers with each company, use the customData field. This data will be returned to you in the webhook response, allowing you to easily map the enrichment results back to your system. # Search Companies via Query Source: https://docs.preceptai.co.uk/api-reference/companies/search-companies-via-query /api-reference/combined.json post /v1/companies/search Search and enrich companies using natural language queries. This endpoint allows you to search for companies using natural language (e.g., "SaaS companies in London with 50-200 employees") and optionally enrich them with insights, decision makers, or custom queries. Results are delivered to the provided `webhookUrl`. # Get Job Status Source: https://docs.preceptai.co.uk/api-reference/jobs/get-job-status /api-reference/combined.json get /v1/jobs/{jobId} Retrieve the current status and results of an enrichment or search job. Use this endpoint to poll the status of jobs initiated via endpoints that return an `enrichment_id`. The response payload will contain the enrichment progress or results when completed. # Discover People from LinkedIn Posts Source: https://docs.preceptai.co.uk/api-reference/people/discover-people-from-linkedin-posts /api-reference/combined.json post /v1/leads/post-search Discover leads directly from authors who recently published LinkedIn posts matching specific keywords. Unlike `/v1/leads/search` (which searches by persona query), this endpoint discovers leads directly from content authors without requiring a persona query or running LLM query analysis. Each result is one post author (a lead), not a raw post. Results are returned via `GET /v1/jobs/{jobId}` (or your webhook) and include the lead's profile fields (`full_name`, `first_name`, `last_name`, `job_title`, `company_name`, `company_domain`, `linkedin`, `user_name`, `location`, `country`, `connections_count`, `followers`, `enrich_email`, `enrich_phone`) plus a `post` object: - `url`: link to the LinkedIn post - `content`: post text (truncated to 2000 characters) - `posted_at`: when the post was published - `likes_count`: number of likes/reactions - `comments_count`: number of comments With `findInsights: true`, results also include `summary`, `top_problems`, `internal_strategic_initiatives` and `public_appearances`. Use `sortBy: "likes"` or `sortBy: "comments"` to get the most-engaged posts instead of the default relevance order. Optionally enrich leads with verified contact details (emails/phones) and AI insights. # Search People via Query Source: https://docs.preceptai.co.uk/api-reference/people/search-people-via-query /api-reference/combined.json post /v1/leads/search Search and enrich leads using this endpoint. This endpoint searches for contacts in bulk using natural language queries and can enrich them with contact details and Personalized AI insights: - Verified email addresses. - Verified phone numbers. - Professional summary. - Top problems. - Internal strategic initiatives. - Public appearances. You can search for up to 1000 contacts in a single request by adjusting the limit parameter. To receive the results, you must provide a `webhookUrl`. # Start Contacts Enrichment Source: https://docs.preceptai.co.uk/api-reference/people/start-contacts-enrichment /api-reference/combined.json post /v1/leads/enrich Enrich your contacts using this endpoint. This endpoint enriches a list of contacts with contact details and Personalized AI insights: - Verified email addresses. - Verified phone numbers. - Professional summary. - Top problems. - Internal strategic initiatives. - Public appearances. - Tailored outreach messages for email (PIPE framework) and LinkedIn (SHIP framework) via `generateMessage`. To enrich a contact, you can provide either their LinkedIn profile URL or a combination of their first name, last name, and company name/domain. You can process up to 1,000 contacts in a single request. To associate your own internal identifiers with each lead, use the customData field. This data will be returned to you in the webhook response, allowing you to easily map the enrichment results back to your system. To receive the results, you must provide a `webhookUrl`. # Company Webhooks Source: https://docs.preceptai.co.uk/api-reference/webhooks/companies-webhooks combined.json webhook companyInsightsWebhook This webhook is called when the company search or company insights enrichment is complete. The payload contains the results of the request. If your webhook endpoint is unavailable or returns an error, we will retry the request up to 3 times with exponential backoff. ### Webhook Payload Examples ```json Standard Enrichments theme={null} { "enrichment_id": "a1b2c3d4-e5f6-7890-1234-567890abcdef", "results": [ { "company_website": "https://www.preceptai.co.uk", "company_linkedin": "https://www.linkedin.com/company/precept-ai", "custom_data": { "id": "12345", "crm_id": "01234" }, "company_data": { "id": 12345, "company_name": "Precept AI", "website": "https://www.preceptai.co.uk" } }, { "company_website": "https://www.unknown-company.com", "company_linkedin": "LinkedIn URL not found", "error": "Company not found" }, { "company_website": "https://www.preceptai.co.uk", "company_data": { "id": 12345, "company_name": "Precept AI", "website": "https://www.preceptai.co.uk" }, "enrichment_errors": { "queries": "Failed to retrieve information for the query: 'What is their annual revenue?'" } } ] } ``` ```json Decision Makers theme={null} { "enrichment_id": "a1b2c3d4-e5f6-7890-1234-567890abcdef", "results": [ { "company_website": "https://www.preceptai.co.uk", "company_linkedin": "https://www.linkedin.com/company/precept-ai", "custom_data": { "id": "0987", "crm_id": "6789" }, "company_data": { "id": 12345, "company_name": "Precept AI", "website": "https://www.preceptai.co.uk" }, "decision_makers": [ { "name": "Jane Smith", "job_title": "Sales Manager", "company_name": "Precept AI", "linkedin": "https://www.linkedin.com/in/janesmith", "department": "sales", "enrich_email": "[EMAIL_ADDRESS]", "enrich_phone": "+1234567890" } ], "query_responses": [ { "query": "What is their tech stack?", "text": "Precept AI uses React, Node.js, and Python." } ] } ] } ``` ```json Employee Count theme={null} { "enrichment_id": "a1b2c3d4-e5f6-7890-1234-567890abcdef", "results": [ { "company_website": "https://www.preceptai.co.uk", "company_linkedin": "https://www.linkedin.com/company/precept-ai", "custom_data": {}, "company_data": { "id": 12345, "company_name": "Precept AI", "website": "https://www.preceptai.co.uk" }, "employee_count": [ { "department": "engineering", "text": "25" }, { "department": "sales", "text": "10" } ] } ] } ``` ```json Revenue theme={null} { "enrichment_id": "a1b2c3d4-e5f6-7890-1234-567890abcdef", "results": [ { "company_website": "https://www.preceptai.co.uk", "company_linkedin": "https://www.linkedin.com/company/precept-ai", "custom_data": { "id": "123" }, "company_data": { "id": 12345, "company_name": "Precept AI", "website": "https://www.preceptai.co.uk" }, "revenue": "$10,000,000 estimated annual revenue as of 2024" } ] } ``` ```json Recent Funding theme={null} { "enrichment_id": "a1b2c3d4-e5f6-7890-1234-567890abcdef", "results": [ { "company_website": "https://www.preceptai.co.uk", "company_linkedin": "https://www.linkedin.com/company/precept-ai", "company_data": { "id": 12345, "company_name": "Precept AI", "website": "https://www.preceptai.co.uk" }, "company_recent_funding": "$25,000,000 raised on 2/1/2022" } ] } ``` ```json Technology Stack theme={null} { "enrichment_id": "a1b2c3d4-e5f6-7890-1234-567890abcdef", "results": [ { "company_website": "https://www.preceptai.co.uk", "company_linkedin": "https://www.linkedin.com/company/precept-ai", "company_data": { "id": 12345, "company_name": "Precept AI", "website": "https://www.preceptai.co.uk" }, "technology_stack": "Precept AI uses a modern tech stack including React, TypeScript, Node.js, and Firebase." } ] } ``` ```json Job Posting Insights theme={null} { "enrichment_id": "a1b2c3d4-e5f6-7890-1234-567890abcdef", "results": [ { "company_website": "https://www.preceptai.co.uk", "company_linkedin": "https://www.linkedin.com/company/precept-ai", "custom_data": { "id": "12345" }, "job_posting_insights": [ { "department": "engineering", "text": "**Job postings found: 12**.\n\nPrecept AI is actively hiring for its engineering team to scale its core infrastructure and develop new AI-driven features.\n\n**Unique company-specific problems:**\n- Optimizing high-throughput data pipelines for real-time lead processing.\n- Implementing advanced LLM orchestration for automated company research.\n- Ensuring zero-downtime deployments for global API consumers.\n\n**Current company goals and strategic initiatives:**\n- Scaling the platform to handle 10x more concurrent users by year-end.\n- Launching a secondary localized product suite for the European market.\n- Transitioning to a serverless edge architecture for lower latency.\n\n**Key technologies and tools:**\n- TypeScript and Node.js for backend services.\n- Google Cloud Platform and Firebase for infrastructure.\n- OpenAI and Anthropic APIs for AI capabilities." } ] } ] } ``` # People Webhooks Source: https://docs.preceptai.co.uk/api-reference/webhooks/leads-webhooks combined.json webhook leadEnrichmentWebhook This webhook is called when the lead search or lead enrichment is complete. The payload contains the results of the request and, in `cost`, what the job charged: the total `credits` and a `breakdown` of each charge, the same as `GET /v1/jobs/{jobId}` returns. If your webhook endpoint is unavailable or returns an error, we will retry the request up to 3 times with exponential backoff to ensure you receive the data. ### Webhook Payload Examples ```json Standard Enrichment theme={null} { "enrichment_id": "a1b2c3d4-e5f6-7890-1234-567890abcdef", "name": "Q3 Lead List", "status": "completed", "results": [ { "first_name": "John", "last_name": "Doe", "company_name": "Acme Corp", "summary": "John Doe is a Senior Software Engineer at Acme Corp with 10 years of experience...", "top_problems": "Scaling distributed systems, reducing latency...", "internal_strategic_initiatives": "Migrating to microservices, improving CI/CD...", "public_appearances": "Keynote speaker at TechConf 2023...", "enrich_email": "john.doe@example.com", "enrich_phone": "+1234567890", "custom_data": { "contact_id": "lead_123" } } ], "cost": { "credits": 13.9, "breakdown": [ { "item": "leads_with_contact_found", "count": 1, "credits": 0.5 }, { "item": "insights", "count": 1, "credits": 0.4 }, { "item": "emails", "count": 1, "credits": 3 }, { "item": "phones", "count": 1, "credits": 10 } ] } } ``` ```json With Generated Outreach Messages theme={null} { "enrichment_id": "a1b2c3d4-e5f6-7890-1234-567890abcdef", "name": "Q3 Lead Outreach", "status": "completed", "results": [ { "first_name": "Sarah", "last_name": "Connor", "company_name": "Cyberdyne Systems", "summary": "Sarah Connor is the Founder & CEO of Cyberdyne Systems...", "top_problems": "Inference latency, distributed agent orchestration...", "internal_strategic_initiatives": "Deploying agentic workflows, expanding US enterprise sales...", "enrich_email": "sarah@cyberdyne.io", "enrich_phone": "+14155552671", "email_subject": "quick thought on inference latency", "email_message": "Hi Sarah,\n\nSaw Cyberdyne's focus on autonomous AI workflows. Teams scaling agent clusters often run into high inference latency that spikes compute bills.\n\nWe helped Apex cut inference delays by 42% while trimming AWS GPU costs.\n\nOpen to seeing how we solved it?\n\nBest,\nAlex", "linkedin_message": "Hey Sarah - saw Cyberdyne's work deploying agentic workflows. Teams in your space usually wrestle with inference latency during scaling. Do you mind if I ask how you're handling model latency across clusters?", "message_templates": { "email": { "subject": "quick thought on inference latency", "body": "Hi Sarah,\n\nSaw Cyberdyne's focus on autonomous AI workflows. Teams scaling agent clusters often run into high inference latency that spikes compute bills.\n\nWe helped Apex cut inference delays by 42% while trimming AWS GPU costs.\n\nOpen to seeing how we solved it?\n\nBest,\nAlex", "problem": "Teams scaling agent clusters often run into high inference latency that spikes compute bills.", "impact": "Spiking compute bills and throttled throughput.", "proof": "We helped Apex cut inference delays by 42% while trimming AWS GPU costs.", "engage": "Open to seeing how we solved it?" }, "linkedin": { "message": "Hey Sarah - saw Cyberdyne's work deploying agentic workflows. Teams in your space usually wrestle with inference latency during scaling. Do you mind if I ask how you're handling model latency across clusters?", "signal": "Saw Cyberdyne's work deploying agentic workflows.", "hypothesis": "Teams in your space usually wrestle with inference latency during scaling.", "intro": "Do you mind if I ask how you're handling model latency across clusters?" } }, "custom_data": { "contact_id": "lead_123" } } ], "cost": { "credits": 13.9, "breakdown": [ { "item": "leads_with_contact_found", "count": 1, "credits": 0.5 }, { "item": "insights", "count": 1, "credits": 0.4 }, { "item": "emails", "count": 1, "credits": 3 }, { "item": "phones", "count": 1, "credits": 10 } ] } } ``` ```json With Post Search Signal theme={null} { "enrichment_id": "a1b2c3d4-e5f6-7890-1234-567890abcdef", "name": "AI Founders Post Search", "status": "completed", "results": [ { "first_name": "Sarah", "last_name": "Connor", "linkedinUrl": "https://www.linkedin.com/in/sarah-connor-ai", "company_name": "Cyberdyne Systems", "summary": "Sarah Connor is the Founder & CEO of Cyberdyne Systems specializing in autonomous AI architectures...", "top_problems": "Inference latency, distributed agent orchestration...", "internal_strategic_initiatives": "Deploying agentic workflows, expanding US enterprise sales...", "public_appearances": "Keynote Speaker at AI Summit 2026...", "enrich_email": "sarah@cyberdyne.io", "enrich_phone": "+14155552671", "post": { "url": "https://www.linkedin.com/feed/update/urn:li:activity:7123456789012345678", "content": "Excited to announce our open-source release of autonomous multi-agent pipelines for enterprise teams! Check out our benchmarks and let us know what you think.", "posted_at": "2026-09-08T14:30:00.000Z", "likes_count": 142, "comments_count": 28 }, "custom_data": { "campaign_id": "camp_ai_founders" } } ], "cost": { "credits": 14.1, "breakdown": [ { "item": "leads_with_contact_found", "count": 1, "credits": 0.5 }, { "item": "insights", "count": 1, "credits": 0.4 }, { "item": "posts", "count": 1, "credits": 0.2 }, { "item": "emails", "count": 1, "credits": 3 }, { "item": "phones", "count": 1, "credits": 10 } ] } } ``` ```json With Post Interaction Signal theme={null} { "enrichment_id": "a1b2c3d4-e5f6-7890-1234-567890abcdef", "name": "Fintech Leaders Interacting with AI", "status": "completed", "results": [ { "first_name": "Alex", "last_name": "Morgan", "linkedinUrl": "https://www.linkedin.com/in/alex-morgan-fintech", "company_name": "Apex Capital", "summary": "Alex Morgan is VP of Technology at Apex Capital focusing on automated fraud mitigation...", "top_problems": "Regulatory compliance, real-time transaction screening...", "internal_strategic_initiatives": "Adopting LLMs for AML compliance...", "public_appearances": "Speaker at Money20/20...", "enrich_email": "alex.morgan@apexcap.com", "enrich_phone": "+12125559834", "post_activity": "Engaged with post discussing automated fraud detection with LLMs in real-time transaction monitoring", "post_interactions": [ { "title": "Engaged with post discussing automated fraud detection with LLMs in real-time transaction monitoring", "url": "https://www.linkedin.com/posts/apex-capital_fraud-detection-activity-7359148670170071042-f-jT", "action": "like", "activity_date": "2026-10-14T09:09:29.000Z" } ], "custom_data": { "campaign_id": "camp_fintech_aml" } } ], "cost": { "credits": 14.4, "breakdown": [ { "item": "leads_with_contact_found", "count": 1, "credits": 0.5 }, { "item": "insights", "count": 1, "credits": 0.4 }, { "item": "post_activity", "count": 1, "credits": 0.5 }, { "item": "emails", "count": 1, "credits": 3 }, { "item": "phones", "count": 1, "credits": 10 } ] } } ``` ```json Partial Success theme={null} { "enrichment_id": "a1b2c3d4-e5f6-7890-1234-567890abcdef", "name": "Q4 Lead List", "status": "completed", "results": [ { "first_name": "Jane", "last_name": "Smith", "company_name": "Precept AI", "summary": "Jane Smith leads the marketing team...", "top_problems": "Lead generation, brand awareness...", "internal_strategic_initiatives": "Launching new product line...", "public_appearances": "Panelist at Marketing Summit...", "enrich_email": "jane.smith@example.com", "enrich_phone": "Not Found", "custom_data": { "contact_id": "lead_123" } }, { "error": "Contact not found", "customData": { "contact_id": "lead_456" } } ], "cost": { "credits": 3.9, "breakdown": [ { "item": "leads_with_contact_found", "count": 1, "credits": 0.5 }, { "item": "insights", "count": 1, "credits": 0.4 }, { "item": "emails", "count": 1, "credits": 3 } ] } } ``` ```json Streaming Progressive (streamingResults: true) theme={null} { "enrichment_id": "a1b2c3d4-e5f6-7890-1234-567890abcdef", "status": "in_progress", "type": "contact_enriched", "results": [ { "first_name": "John", "last_name": "Doe", "company_name": "Acme Corp", "company_domain": "acme.com", "job_title": "Senior Software Engineer", "enrich_email": "john.doe@example.com", "enrich_phone": "+1234567890", "custom_data": { "contact_id": "lead_123" } } ] } ``` # Authentication Source: https://docs.preceptai.co.uk/authentication All requests to the Precept API must be authenticated using an API key. You can generate and manage your API keys from the Developer Dashboard in your Precept account. ## Generating Your API Key 1. **Navigate to the Developer Page**: Log in to your Precept account and go to the [Developer](https://app.preceptai.co.uk/developer) page. 2. **Generate a New Key**: Click the "Generate New API Key" button. You can generate either: * **Personal (User) API Key**: Scoped to your individual seat (used for personal endpoints such as `GET /v1/campaigns`). * **Organization Service Key** *(Admins only)*: Scoped to your entire organization (required for organization-wide reporting such as `GET /v1/campaigns?scope=org`). > [!NOTE] > > **Important**: Your API key is a secret and should be treated like a password. > Do not share it publicly or commit it to version control. ## Making Authenticated Requests To authenticate your API requests, you must include your API key in the `Authorization` header of every request, using the `Bearer` authentication scheme. Here is an example of how to include the header in a `curl` request: ```bash theme={null} curl "https://api.preceptai.co.uk/v1/leads/enrich" \ -H "Authorization: Bearer YOUR_API_KEY" ``` Replace `YOUR_API_KEY` with the key you generated in the Developer Dashboard. > [!WARNING] > > Requests made without a valid API key, or with an incorrect key, will receive > a `401 Unauthorized` error response. ### Ready to start building? Create an account today to get free trial credits and start integrating our B2B data APIs. [Start Free Trial](https://app.preceptai.co.uk/auth) # Understanding Credits Source: https://docs.preceptai.co.uk/essentials/credits Learn how Precept's credit-based pricing works for company enrichment, contact search, and lead data. Detailed breakdown of costs per API call and enrichment type. At Precept, we use a credit-based system to give you the flexibility to pay only for the data you need. This page explains how credits are consumed for our main API features. ## Lead Enrichment & Search Credit costs for Leads are based on whether you are enriching existing leads or searching for new ones, and the level of data requested. * **Lead Search and Post Search** find people you didn't have. Each person costs **1 credit**, and AI insights are optional at **0.4 credits** per lead. * **Lead Enrichment** starts from people you supply. Each person costs the same **1 credit**. AI insights are on by default at **0.4 credits** per lead, and you can turn them off with `findInsights: false`. If we can't find someone, you aren't charged for them. ### Base Costs | Feature Type | Lead (Per Lead) | Insights (Per Lead) | Total With Insights | | :- | :- | :- | :- | | **Lead Enrichment** | 1 | +0.4 (default on) | **1.4** | | **Lead Search** | 1 | +0.4 (optional) | **1.4** | | **Post Search** | 1 + 0.2 post | +0.4 (optional) | **1.6** | ### Optional Contact Details If you request contact details (emails or phone numbers), two things happen: 1. For every lead where we **find an email or phone number**, that lead's 1 credit charge is discounted to **0.5 credits**. This applies on **Lead Search**, **Post Search**, **Lead Enrichment** and **Decision Maker** enrichment. Leads where nothing is found keep the full 1 credit. 2. Additional credits are charged **per lead** for successfully found contact details. | Scenario | Lead Cost | Contact Cost | Total Per Lead | | :- | :- | :- | :- | | **Lead Search — no contact details** | 1 | — | **1** | | **Lead Search — email found** | 0.5 | +3 | **3.5** | | **Lead Search — phone number found** | 0.5 | +10 | **10.5** | | **Lead Search — email + phone found** | 0.5 | +13 | **13.5** | | **Lead Search — nothing found** | 1 | — | **1** | With insights on, which is the default, each Lead Enrichment row adds 0.4. With `findInsights: false` it doesn't: | Scenario | Lead Cost | Insights | Contact Cost | Total Per Lead | | :- | :- | :- | :- | :- | | **Lead Enrichment — no contact details** | 1 | +0.4 | — | **1.4** | | **Lead Enrichment — email found** | 0.5 | +0.4 | +3 | **3.9** | | **Lead Enrichment — email + phone found** | 0.5 | +0.4 | +13 | **13.9** | | **Lead Enrichment — nothing found** | 1 | +0.4 | — | **1.4** | | **Lead Enrichment — person not found** | — | — | — | **0** | > [!NOTE] > > You are only charged for contact details that we successfully find and return. > The 0.5 discount applies automatically to every lead where we find an email or > phone number. ### Post Search `POST /v1/leads/post-search` is its own endpoint: it finds people who recently published LinkedIn posts matching your `keywords` and returns each author with their post, without a persona query. Each lead costs the 1 credit lead charge plus 0.2 for the post, so **1.2 credits per lead** (1.6 credits with insights). The contact details discount above applies to the lead charge in the same way. | Scenario | Lead Cost | Post Cost | Contact Cost | Total Per Lead | | :- | :- | :- | :- | :- | | **Post Search — no contact details** | 1 | +0.2 | — | **1.2** | | **Post Search — email + phone found** | 0.5 | +0.2 | +13 | **13.7** | ### Post Activity Filter (Lead Search) On `POST /v1/leads/search`, add `signal: { type: "post_interaction", keywords: [...] }` to only return people matching your persona query who recently engaged (posted, liked, commented) with relevant content. This adds **+0.5 credits per lead** to the Lead Search cost. *** ## Company Insights & Search Credit costs for Companies are based on a base insight fee plus any specific enrichments requested **per company**. ### Base & Enrichment Costs | Item | Credits per company | | :- | :- | | **Base Insight Cost** | 0.5 credits | | **Decision Makers** | 1 credit per decision maker per role | | **Job Postings Insights** | 3 credits per role | | **Revenue** | 5 credits | | **Recent Funding** | 5 credits | | **Department Ratio** | 0.5 credits per role | | **Employee Count Change** | 0.5 credits per role | | **Employee Count** | 0.5 credits per role | | **Technology Stack** | 2 credits | | **Custom Query** | 0.3 credits per query | ### Decision Maker Contact Details When requesting `decision_makers` with `includeContactDetails: true`, the same discount logic applies: | Scenario | Lead Cost | Contact Cost | Total Per Decision Maker | | :- | :- | :- | :- | | **Decision Makers — no contact details** | 1 | — | **1** | | **Decision Makers — email + phone found** | 0.5 | +13 | **13.5** | | **Decision Makers — nothing found** | 1 | — | **1** | > [!NOTE] > > You are only charged for the number of decision-makers actually returned, up > to your `decisionMakersLimit`. *** ## How Credits Work When you make an API request, we calculate the total credit cost based on your parameters. If your available credits are sufficient, we process the entire request. If not, we process as much as we can with your remaining credits and return the results for the processed items, indicating any skipped items. Completed lead jobs from `GET /v1/jobs/{jobId}`, and the webhook sent when a lead job finishes, include a `cost` object with the total `credits` and a `breakdown` of each charge (for example `leads`, `insights`, `posts`, `emails`, `phones`), each with its `count` and `credits`. ## Checking Your Balance You can check your remaining credit balance through multiple methods: 1. **Developer Dashboard**: View your real-time balance directly on the [Precept Developer Dashboard](https://app.preceptai.co.uk/developer). 2. **API Endpoint**: Perform a `GET` request to the `/v1/credits` endpoint to programmatically check your balance. 3. **MCP Tool**: If you are using our Model Context Protocol server, invoke the `precept_check_credits` tool. ## Testing Your Webhook > [!TIP] > > A quick way to check the result endpoint and troubleshoot is to use a webhook > URL from [webhook.site](https://webhook.site) (a free service). # Company Enrichments Source: https://docs.preceptai.co.uk/essentials/enrichments Reference guide for company-level data enhancements available in Precept. ## Enrichment Types Overview | Type | Description | Requires Departments/Titles | Credits | | :- | :- | :- | :- | | `decision_makers` | Find key people at a company | ✅ | 1 per person per role | | `employee_count` | Current headcount by department or title | ✅ | 0.5 per role | | `employee_count_change` | Historical headcount trends | ✅ | 0.5 per role | | `department_ratio` | Proportion of staff across departments | ✅ | 0.5 per role | | `job_posting_insights` | AI analysis of active job postings | ✅ | 3 per role | | `technology_stack` | Technologies the company uses | ❌ | 2 | | `revenue` | Estimated annual revenue | ❌ | 5 | | `recent_funding` | Most recent funding round | ❌ | 5 | > [!NOTE] > > Credits listed are **per company**. See [Understanding > Credits](/essentials/credits) for full pricing details. *** ## Role-Based Enrichments The following enrichments require you to specify `departments` and/or `jobTitles` in the enrichments object. The enrichment is run once per department or job title you provide. > [!NOTE] > > **Role Limit**: The total combined number of `departments` and `jobTitles` cannot exceed **40** per request (`departments.length + jobTitles.length <= 40`). Requests exceeding 40 will be rejected with a `400 Bad Request`. ### Decision Makers Find key people at a company by department or job title. Returns names, current titles, LinkedIn profiles, and department. Optionally set `includeContactDetails: true` to also retrieve verified emails and phone numbers for each person found. Use `decisionMakersLimit` to control the maximum number of people returned. By default, this limit applies as an overall total across all specified roles (departments first, then job titles). You can set `limitType` to `"per_role"` to apply this limit to each queried department/job title individually. You can also use `country` to filter the decision makers by a list of countries (e.g., \["United Kingdom", "United States"]). > [!NOTE] > > When `includeContactDetails` is enabled, the per-lead base cost is > automatically discounted from **1 to 0.5 credits** for every person where we > find an email or phone number. Additional credits for emails (+3) and phone > numbers (+10) still apply per successfully found contact. See [Understanding > Credits](/essentials/credits#decision-maker-contact-details) for the full > breakdown. ```json Request theme={null} { "enrichments": { "type": "decision_makers", "departments": ["Sales", "Engineering and Technical"], "decisionMakersLimit": 3, "limitType": "overall", "country": ["United States", "Canada"], "includeContactDetails": true } } ``` ```json Response theme={null} { "decision_makers": [ { "name": "Jane Smith", "job_title": "Sales Manager", "company_name": "Acme Corp", "linkedin": "https://www.linkedin.com/in/janesmith", "department": "sales", "enrich_email": "[EMAIL_ADDRESS]", "enrich_phone": "+1234567890" } ] } ``` ### Employee Count Get the current number of employees matching the specified departments or job titles. ```json Request theme={null} { "enrichments": { "type": "employee_count", "departments": ["Engineering and Technical", "Sales"] } } ``` ```json Response theme={null} { "employee_count": [ { "department": "engineering", "text": "25" }, { "department": "sales", "text": "10" } ] } ``` ### Employee Count Change Track how headcount in specific departments or job titles has changed over time. Useful for identifying growing or shrinking teams. ```json Request theme={null} { "enrichments": { "type": "employee_count_change", "departments": ["Engineering and Technical"] } } ``` ```json Response theme={null} { "employee_count_change": [ { "department": "engineering", "text": "15" } ] } ``` ### Department Ratio Understand the proportional distribution of employees across the specified departments. Helpful for gauging how a company allocates resources. ```json Request theme={null} { "enrichments": { "type": "department_ratio", "departments": ["Engineering and Technical", "Sales", "Marketing"] } } ``` ```json Response theme={null} { "department_ratio": [ { "department": "engineering", "text": "45" }, { "department": "sales", "text": "30" }, { "department": "marketing", "text": "15" } ] } ``` ### Job Posting Insights Get an AI-powered analysis of a company's active job postings in the specified departments or job titles. The analysis includes the number of open roles, a summary of hiring activity, company-specific challenges being hired for, strategic goals, and key technologies mentioned. ```json Request theme={null} { "enrichments": { "type": "job_posting_insights", "departments": ["Engineering and Technical"] } } ``` ```json Response theme={null} { "job_posting_insights": [ { "department": "engineering", "text": "**Job postings found: 12**.\n\nThe company is actively hiring to scale its core infrastructure and develop new AI-driven features.\n\n**Unique company-specific problems:**\n- Optimizing high-throughput data pipelines for real-time processing.\n- Implementing advanced LLM orchestration.\n\n**Current company goals and strategic initiatives:**\n- Scaling the platform to handle 10x more concurrent users.\n- Launching a localized product suite for the European market.\n\n**Key technologies and tools:**\n- TypeScript and Node.js for backend services.\n- Google Cloud Platform and Firebase for infrastructure." } ] } ``` *** ## Standalone Enrichments These enrichments do not require `departments` or `jobTitles` — they apply at the company level. ### Technology Stack Discover the technologies, frameworks, and tools a company uses. Returns an AI-generated summary based on public data such as job postings and company profiles. ```json Request theme={null} { "enrichments": { "type": "technology_stack" } } ``` ```json Response theme={null} { "technology_stack": "The company uses a modern tech stack including React, TypeScript, Node.js, and Firebase." } ``` ### Revenue Get an estimated annual revenue figure for the company. ```json Request theme={null} { "enrichments": { "type": "revenue" } } ``` ```json Response theme={null} { "revenue": "$10,000,000 estimated annual revenue as of 2024" } ``` ### Recent Funding Retrieve the company's most recent funding round, including the amount raised and the date. ```json Request theme={null} { "enrichments": { "type": "recent_funding" } } ``` ```json Response theme={null} { "company_recent_funding": "$25,000,000 raised on 2/1/2022" } ``` *** ## Available Departments When using the `departments` parameter, you can use any of the following values (case-insensitive): > [accordion] Full list of departments > > | Department | > | :- | > | Actuary | > | Administrative | > | C-Suite | > | Claims | > | Consulting | > | Customer Service | > | Data & Analytics | > | Design | > | Education | > | Engineering and Technical | > | Finance & Accounting | > | Founder | > | Governance & Quality | > | Health & Safety | > | Human Resources | > | Information Technology | > | Innovation | > | Legal | > | Logistics | > | Marketing | > | Medical | > | Operations | > | Pricing | > | Procurement & Sourcing | > | Product | > | Project Management | > | Quality Control & Assurance | > | Real Estate | > | Research | > | Risk & Compliance | > | Sales | > | Security | > | Sustainability | > | Trades | > | Underwriting | ## Custom Queries In addition to structured enrichments, you can ask freeform questions about any company using the `queries` parameter. Each query costs **0.3 credits** per company. ```json theme={null} { "queries": [ "What is their go-to-market strategy?", "What compliance certifications do they hold?" ] } ``` The responses are returned in the webhook payload under `query_responses`: ```json theme={null} { "query_responses": [ { "query": "What is their go-to-market strategy?", "text": "The company uses a product-led growth strategy..." } ] } ``` # Rate Limits, Speed, and Volume Source: https://docs.preceptai.co.uk/essentials/rate-limits Understand the Precept API's rate limits, volume caps, and concurrency queues for leads enrichment and company insights endpoints. Optimize your integration for maximum throughput. To ensure optimal performance and fair usage for all users, the Precept API enforces rate limits. Understanding these limits will help you design your integration for maximum efficiency. Our limits are based on three factors: rate, volume, and concurrency. * **Rate**: The number of API requests you can make per minute. * **Volume**: The total number of items (e.g., leads or companies) you can process per minute. * **Concurrency**: The number of items that can be processed simultaneously. ## Leads Enrichment The `/leads/enrich` endpoint is designed for high-throughput contact enrichment. Here are the limits: | Limit Type | Value | | :- | :- | | Rate Limit | **30 requests** per minute | | Volume Limit | **1,000 leads** per minute | | Max Batch Size | **1,000 leads** per request | ### Optimizing for Speed To maximize your enrichment speed, we recommend sending as many leads as possible in each batch, up to the 1,000-lead maximum. Since the volume limit is 1,000 leads per minute, you can send one batch of 1,000 leads to reach the maximum throughput within a minute. ### Concurrency Queue Each workspace has a default queue size of **100 concurrent enrichments**. This means up to 100 of your contacts are processed in parallel at any given time. If you submit a batch of 1,000 leads, the first 100 will begin processing immediately. The remaining 900 will wait in a queue. As each enrichment finishes, the next lead from the queue will automatically start processing until the entire batch is complete. ## Company Insights The `/companies/insights` endpoint has its own set of limits: | Limit Type | Value | | :- | :- | | Rate Limit | **100 requests** per minute | | Volume Limit | **5,000 companies** per minute | | Max Batch Size | **5,000 companies** per request | If you send a single request with 5,000 companies, you will have reached your volume limit for that minute and will need to wait until the next minute to make another request. > [!WARNING] > > **Important**: If you are finding contacts of decision-makers with `includeContactDetails: true` in your Company Insights request, the number of decision-makers will count towards your **Leads Enrichment** rate and volume limits. # Make Source: https://docs.preceptai.co.uk/integrations/make ## Connecting to Make Our API is designed to work seamlessly with Make. By using the **HTTP > Make a request** module, you can connect Precept to thousands of other applications and build powerful, automated workflows. ### Step 1: Get Your API Key Before you can connect to Precept, you need your unique API key. 1. Navigate to the [Developer Dashboard](https://app.preceptai.co.uk/developer) in your Precept account. 2. If you haven't already, generate a new API key. 3. Copy the key to your clipboard. Treat this key like a password and keep it secure. > [card] [Need a Precept account?](https://app.preceptai.co.uk/auth) > > Sign up for a free trial to get your API key and developer credits. ![Getting API Key](https://mintcdn.com/precept/ZNWTJJJ682eOlJcx/images/developer-page.png?fit=max\&auto=format\&n=ZNWTJJJ682eOlJcx\&q=85\&s=1aec26b78c50819fb5094ffcc7a9322c) ### Step 2: Create a Webhook Scenario to Receive Results Since enrichment jobs are asynchronous, you must first set up a dedicated scenario to receive the results. This scenario will have a **Webhook** trigger that provides a unique URL. 1. **Create a New Scenario**: In Make, create a new, separate scenario that will act as your webhook listener. 2. **Add a Webhook Trigger**: For the first module, search for and select **Webhooks > Custom webhook**. 3. **Generate a URL**: Click **Add** to create a new webhook, give it a name (e.g., "Precept Results"), and save. Make will generate a unique URL. **Copy this URL** to your clipboard, as you will need it in the next step. 4. **Listen for Data**: Run this new scenario once so it is ready to receive data from Precept. ### Step 3: Set Up the HTTP Request Scenario Now, create a second scenario to send the enrichment request to Precept. 1. **Add the HTTP Module**: In a new scenario, add the **HTTP > Make a request** module. 2. **Configure the Request**: * **URL**: `https://api.preceptai.co.uk/v1/companies/insights` * **Method**: `POST` * **Headers**: Add one header with the **Name** `Authorization` and **Value** `Bearer YOUR_API_KEY`. * **Body type**: `Raw` * **Content type**: `JSON (application/json)` * **Request content**: Enter the JSON payload, making sure to include the `webhookUrl` you copied in Step 2. ```json theme={null} { "webhookUrl": "https://hook.eu1.make.com/your-unique-url", "companies": [ { "companyWebsite": "preceptai.co.uk", "customData": { "id": "12345" } }, { "companyLinkedin": "https://linkedin.com/company/google", "customData": { "id": "67890" } }, { "companyWebsite": "apple.com", "companyLinkedin": "https://linkedin.com/company/apple", "customData": { "id": "13579" } } ], "queries": ["When was their last funding round?"], "enrichments": { "type": "decision_makers", "departments": ["sales"], "decisionMakersLimit": 2 } } ``` 3. **Parse Response**: Ensure the `Parse response` switch is turned on. ### Step 4: Run and Test Run your HTTP request scenario. The API will return a `202 Accepted` response with an `enrichment_id`, confirming the job is queued. Shortly after, your webhook scenario will trigger and receive the enrichment results. ### Step 5: Example Webhook Responses Once the enrichment is complete, Precept will send the results to your Make webhook. Below are some examples of what the payload might look like. ```json Standard Enrichments theme={null} { "enrichment_id": "a1b2c3d4-e5f6-7890-1234-567890abcdef", "results": [ { "company_website": "https://www.preceptai.co.uk", "company_linkedin": "https://www.linkedin.com/company/precept-ai", "custom_data": { "id": "12345", "crm_id": "01234" }, "company_data": { "id": 12345, "company_name": "Precept AI", "website": "https://www.preceptai.co.uk" } }, { "company_website": "https://www.unknown-company.com", "company_linkedin": "LinkedIn URL not found", "error": "Company not found" } ] } ``` ```json Decision Makers theme={null} { "enrichment_id": "a1b2c3d4-e5f6-7890-1234-567890abcdef", "results": [ { "company_website": "https://www.preceptai.co.uk", "custom_data": { "id": "0987" }, "decision_makers": [ { "name": "Jane Smith", "jobTitle": "Sales Manager", "linkedin": "https://www.linkedin.com/in/janesmith", "department": "sales" } ], "query_responses": [ { "query": "What is their tech stack?", "text": "Precept AI uses React, Node.js, and Python." } ] } ] } ``` That's it! You have now built a complete, asynchronous workflow. # n8n Source: https://docs.preceptai.co.uk/integrations/n8n ## Connecting to n8n Our API is designed to work seamlessly with n8n. By using the **HTTP Request** node, you can connect Precept to thousands of other applications and build powerful, automated workflows. ### Step 1: Get Your API Key Before you can connect to Precept, you need your unique API key. 1. Navigate to the [Developer Dashboard](https://app.preceptai.co.uk/developer) in your Precept account. 2. If you haven't already, generate a new API key. 3. Copy the key to your clipboard. Treat this key like a password and keep it secure. > [card] [Need a Precept account?](https://app.preceptai.co.uk/auth) > > Sign up for a free trial to get your API key and developer credits. ![Getting API Key](https://mintcdn.com/precept/ZNWTJJJ682eOlJcx/images/developer-page.png?fit=max\&auto=format\&n=ZNWTJJJ682eOlJcx\&q=85\&s=1aec26b78c50819fb5094ffcc7a9322c) ### Step 2: Create a Webhook Workflow to Receive Results Since enrichment jobs are asynchronous, you must first set up a dedicated workflow to receive the results. This workflow will start with a **Webhook** trigger that provides a unique URL. 1. **Create a New Workflow**: In n8n, create a new, separate workflow that will act as your webhook listener. 2. **Add a Webhook Trigger**: For the first node, search for and select the **Webhook** trigger. 3. **Generate a URL**: The node will display a **Test URL**. **Copy this URL** to your clipboard, as you will need it in the next step. 4. **Activate the Workflow**: Activate the workflow so it is listening for incoming data from Precept. ### Step 3: Set Up the HTTP Request Workflow Now, create a second workflow to send the enrichment request to Precept. 1. **Add the HTTP Request Node**: In a new workflow, add the **HTTP Request** node. 2. **Configure the Request**: * **Method**: `POST` * **URL**: `https://api.preceptai.co.uk/v1/companies/insights` * **Authentication**: `Header Auth` * **Name**: `Authorization` * **Value**: `Bearer YOUR_API_KEY` * **Body Content Type**: `JSON` * **Body**: In the expression editor, enter the JSON payload, making sure to include the `webhookUrl` you copied in Step 2. ```json theme={null} { "webhookUrl": "https://your-n8n-instance.com/webhook-test/your-unique-path", "companies": [ { "companyWebsite": "preceptai.co.uk", "customData": { "id": "12345" } }, { "companyLinkedin": "https://linkedin.com/company/google", "customData": { "id": "67890" } }, { "companyWebsite": "apple.com", "companyLinkedin": "https://linkedin.com/company/apple", "customData": { "id": "13579" } } ], "queries": ["When was their last funding round?"], "enrichments": { "type": "decision_makers", "departments": ["sales"], "decisionMakersLimit": 2 } } ``` ### Step 4: Run and Test Execute the HTTP Request node. The API will return a `202 Accepted` response with an `enrichment_id`, confirming the job is queued. Shortly after, your webhook workflow will trigger and receive the enrichment results. ### Step 5: Example Webhook Responses Once the enrichment is complete, Precept will send the results to your n8n webhook. Below are some examples of what the payload might look like. ```json Standard Enrichments theme={null} { "enrichment_id": "a1b2c3d4-e5f6-7890-1234-567890abcdef", "results": [ { "company_website": "https://www.preceptai.co.uk", "company_linkedin": "https://www.linkedin.com/company/precept-ai", "custom_data": { "id": "12345", "crm_id": "01234" }, "company_data": { "id": 12345, "company_name": "Precept AI", "website": "https://www.preceptai.co.uk" } }, { "company_website": "https://www.unknown-company.com", "company_linkedin": "LinkedIn URL not found", "error": "Company not found" } ] } ``` ```json Decision Makers theme={null} { "enrichment_id": "a1b2c3d4-e5f6-7890-1234-567890abcdef", "results": [ { "company_website": "https://www.preceptai.co.uk", "custom_data": { "id": "0987" }, "decision_makers": [ { "name": "Jane Smith", "jobTitle": "Sales Manager", "linkedin": "https://www.linkedin.com/in/janesmith", "department": "sales" } ], "query_responses": [ { "query": "What is their tech stack?", "text": "Precept AI uses React, Node.js, and Python." } ] } ] } ``` That's it! You have now built a complete, asynchronous workflow in n8n. # Introduction Source: https://docs.preceptai.co.uk/introduction Welcome to the Precept API documentation. Learn how to integrate Precept's powerful B2B account research, company enrichment, and verified contact data capabilities directly into your applications. # Welcome to the Precept API Welcome to the official documentation for the Precept Developer API. Our goal is to provide you with all the tools you need to integrate Precept's powerful data enrichment capabilities directly into your own applications. This API provides programmatic access to Precept's core services. ### Company Insights This enables you to get deep company-level data, such as: * **Employee Analytics**: Department-wise breakdowns and headcount growth. * **Decision Makers**: Names, titles, and LinkedIn profiles. * **Financial Details**: Funding rounds and revenue estimates. * **Strategic Context**: Strategic initiatives and top problems the company is facing. * **Latest Signals**: Company news and public appearances. ### Company Search This enables you to discover companies using natural language queries (e.g., "SaaS companies in London with 50-200 employees"). Features include: * **Natural Language Search**: Discover companies using conversational English. * **Granular Filters**: Filter by industry, size, location, revenue, and tech stack. * **Bulk Discovery**: Find and enrich hundreds of companies in a single request. ### Contact Enrichment (Leads) This enables you to get verified contact details for specific individuals. Features include: * **Waterfall Routing**: Searching 140+ data providers (Apollo, Datagma, ContactOut, etc.) for maximum coverage. * **Verified Details**: 80%+ coverage for mobile numbers and 99%+ for email addresses. * **Multi-Source**: Enrichment based on LinkedIn URLs or Name/Company combinations. ### Contact Search (Leads) This enables you to find new leads that match your ideal customer profile. Features include: * **Ideal Customer Discovery**: Use queries like "Marketing heads at SaaS companies in California". * **AI Filtering**: Leverage AI to find the most relevant contacts directly. ### Campaigns & Outreach Reporting This enables you to fetch historical LinkedIn campaign logs, volume metrics, and conversion rates for your user seat (`GET /v1/campaigns`) or across your entire organization (`GET /v1/campaigns?scope=org`). Features include: * **Engagement Rates**: Track connection acceptance rates and message reply rates. * **Timeframe & Status Filtering**: Pull historical activity across custom date ranges or campaign states. * **Organization Rollups**: Aggregate multi-seat campaign performance with per-user breakdowns. Our APIs can be integrated with your own apps, sales tools, spreadsheets, and automated workflows. ### Ready to start building? Create an account today to get free trial credits and start integrating our B2B data APIs. [Start Free Trial](https://app.preceptai.co.uk/auth) ## Getting Started To start using the API, you'll first need to generate an API key. > [card] [Authentication](/authentication) > > Learn how to generate and use your API key to make secure requests. > [card] [API Reference](/api-reference/companies/get-company-insights) > > Explore the available endpoints, starting with company insights.