### Example Response: Account search started Source: https://docs.pipecorn.com/api-reference/endpoints/accounts/search Example JSON response from the accounts/search endpoint. Indicates the search started successfully and includes an id, total count, and a preview of the first result. ```json { "message": "Account search started successfully. You will receive the results on your webhook shortly.", "id": "8e1dcba0-f0bb-4071-99fc-f18ba6559ccc", "total": 342, "preview": [ { "company_name": "Pipecorn", "industry": "Technology, Information and Internet", "linkedin_id": "104885158", "linkedin_url": "https://www.linkedin.com/company/104885158" } ] } ``` -------------------------------- ### Response example: successful import Source: https://docs.pipecorn.com/api-reference/endpoints/signals/tech_stack Example response when the import starts successfully. Contains total_count, total_available, a message, and an id for the import job. ```json { "message": { "total_count": 200, "total_available": 428, "message": "Stack intent search started successfully. You will receive the results on your webhook shortly.", "id": "b3f1c2d4-0000-0000-0000-000000000000" } } ``` -------------------------------- ### Go example for credit balances Source: https://docs.pipecorn.com/api-reference/endpoints/miscellaneous/account-credits Uses net/http to send a GET request to the credits endpoint with the X-API-KEY header and prints the response body. ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://app.pipecorn.com/api/v2/credits" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("X-API-KEY", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### Ruby example for credit balances Source: https://docs.pipecorn.com/api-reference/endpoints/miscellaneous/account-credits Uses net/http to send a GET request to the credits endpoint with the X-API-KEY header and prints the response body. ```ruby require 'uri' require 'net/http' url = URI("https://app.pipecorn.com/api/v2/credits") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["X-API-KEY"] = '' response = http.request(request) puts response.read_body ``` -------------------------------- ### Go example for warm intros Source: https://docs.pipecorn.com/api-reference/endpoints/signals/account_warm_intros Uses net/http to POST the payload and prints the response body. ```Go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://app.pipecorn.com/api/v2/intents/accounts/warm_intros" payload := strings.NewReader("{\n \"company_linkedin_id\": \"1441\",\n \"webhook_url\": \"https://hooks.example.com/pipecorn/warm-intros\",\n \"persona_id\": \"8f2c1b7e-3a4d-4e5f-9a6b-1c2d3e4f5a6b\",\n \"job_titles\": [\n \"CFO\",\n \"VP Finance\"\n ],\n \"excluded_job_titles\": [\n \"Intern\"\n ],\n \"spotlights\": [\n \"SHARED_CONNECTION\",\n \"SHARED_EXPERIENCE\"\n ],\n \"limit\": 10,\n \"context\": {\n \"deal_id\": \"42\"\n }\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("X-API-KEY", "") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### Go example for search preview Source: https://docs.pipecorn.com/api-reference/endpoints/accounts/search_preview Uses net/http to POST a JSON payload to the search preview endpoint. Prints the response body. ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://app.pipecorn.com/api/v2/accounts/search/preview" payload := strings.NewReader("{\n \"included_industries\": [\n \"6\",\n \"96\"\n ],\n \"included_locations\": [\n \"103644278\"\n ],\n \"company_size\": [\n \"51-200\",\n \"201-500\"\n ],\n \"keyword\": \"saas\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("X-API-KEY", "") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### Technology Slug Lookup Example Request Source: https://docs.pipecorn.com/llms-full.txt Example GET request to /v2/accounts/technologies with query parameter. The query is required; an empty query returns 400. ```http GET /v2/accounts/technologies?query=hubspot ``` -------------------------------- ### Quick examples of pipecorn CLI commands Source: https://docs.pipecorn.com/cli/overview A set of quick examples covering account search, async lead search with polling, bulk enrichment, dry-run, list export, and buying signals webhook. ```bash # Preview an account search (synchronous, free) pipecorn accounts search --preview --keyword '"sales agency"' --company-size 11-50 # Start an async lead search and poll until it finishes JOB=$(pipecorn leads search --job-titles 'Head of Sales' --limit 50 --format json | jq -r .id) pipecorn jobs status "$JOB" --watch # Bulk-enrich contacts from CSV (async; prints enrichment_id) pipecorn contacts enrich --batch leads.csv --enrichment email \ --webhook-url https://my.app/webhooks/pipecorn # Dry-run to see the credit cost first pipecorn contacts enrich --batch leads.csv --enrichment phone --dry-run # Export a list to CSV pipecorn lists export -o list.csv # Buying signals streamed to a webhook pipecorn signals hiring --webhook-url https://my.app/hook \ --selected-titles 'Account Executive' --published-date last_7_days ``` -------------------------------- ### 200 response example for retrieve all lists Source: https://docs.pipecorn.com/api-reference/endpoints/lists/index Example JSON response returned by the GET /lists endpoint, containing a list object with fields like name, id, linkedin_list_id, created_at, updated_at, and status. ```json [ { "lists": [ { "name": "Tech Companies 2024", "id": "8e1dcba0-f0bb-4071-99fc-f18ba6559ccc", "linkedin_list_id": 123456789, "created_at": "2024-01-01T00:00:00Z", "updated_at": "2024-01-02T00:00:00Z", "status": "completed" } ] } ] ``` -------------------------------- ### Go example for tech stack preview Source: https://docs.pipecorn.com/api-reference/endpoints/signals/tech_stack_preview Uses net/http to POST the payload as a raw JSON string to the preview endpoint. Prints the response body. ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://app.pipecorn.com/api/v2/intents/accounts/stack/preview" payload := strings.NewReader("{\n \"stacks\": [\n \"shopify\",\n \"webflow\"\n ],\n \"stack_match\": \"or\",\n \"excluded_stacks\": [\n \"wordpress\"\n ],\n \"countries\": [\n \"US\",\n \"FR\"\n ],\n \"included_industries\": [\n \"2190\",\n \"34\"\n ],\n \"excluded_industries\": [\n \"27\"\n ],\n \"company_size\": [\n \"11-50\",\n \"51-200\"\n ]\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("X-API-KEY", "") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### 404 Error response for get single contact enrichment Source: https://docs.pipecorn.com/api-reference/endpoints/contacts/single_enrich Example of a 404 error response when the enrichment is not found. ```json { "error": "Enrichment not found" } ``` -------------------------------- ### Go example for POST /api/v2/intents/leads/connections Source: https://docs.pipecorn.com/api-reference/endpoints/signals/connections Uses net/http to POST the payload and prints the response body. ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://app.pipecorn.com/api/v2/intents/leads/connections" payload := strings.NewReader("{\n \"linkedin_url\": \"https://www.linkedin.com/in/john-doe\",\n \"linkedin_profile_url\": \"\",\n \"spotlights\": [\n \"SHARED_CONNECTION\",\n \"SHARED_EXPERIENCE\"\n ]\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("X-API-KEY", "") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### Java Unirest to retrieve a persona Source: https://docs.pipecorn.com/api-reference/endpoints/personas/show Java example using Unirest to GET a persona. Returns the response as a string. ```java HttpResponse response = Unirest.get("https://app.pipecorn.com/api/v2/personas/{uuid}") .header("X-API-KEY", "") .asString(); ``` -------------------------------- ### Go example to get location ID Source: https://docs.pipecorn.com/api-reference/endpoints/miscellaneous/location-ids Uses net/http to POST the location payload. Prints the response body. ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://app.pipecorn.com/api/v2/locations" payload := strings.NewReader("{\n \"name\": \"San Francisco\",\n \"source\": \"live\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("X-API-KEY", "") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### Go example for advanced search preview Source: https://docs.pipecorn.com/api-reference/endpoints/leads/advanced_search_preview Uses net/http to POST the search payload as a JSON string and prints the response body. Requires an API key. ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://app.pipecorn.com/api/v2/leads/advanced_search/preview" payload := strings.NewReader("{\n \"job_titles\": [\n \"VP of Sales\",\n \"Chief Revenue Officer\"\n ],\n \"seniority_levels\": [\n \"300\",\n \"310\"\n ],\n \"functions\": [\n \"25\"\n ],\n \"included_industries\": [\n \"96\"\n ],\n \"included_locations\": [\n \"101452733\"\n ]\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("X-API-KEY", "") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### Phone details response example Source: https://docs.pipecorn.com/api-reference/endpoints/enrichments/single Example of the phone_details field returned on GET /contacts/{id} and on the webhook callback, listing each number with its line type. The phone field keeps the plain list of E.164 numbers in the same order. ```json "phone_details": [ { "number": "+33612345678", "type": "mobile" }, { "number": "+33145678901", "type": "fixed_line" } ] ``` -------------------------------- ### Go example for creating a lead search Source: https://docs.pipecorn.com/api-reference/endpoints/extract/leads Uses the net/http package to send a POST request with a JSON payload. The response body is read and printed. ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://app.pipecorn.com/api/v2/leads" payload := strings.NewReader("{\n \"search_url\": \"\",\n \"name\": \"\",\n \"webhook_url\": \"\",\n \"streaming\": false,\n \"custom\": {\n \"hubspot_id\": \"134567\"\n },\n \"limit\": 100,\n \"scale\": false\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("X-API-KEY", "") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### Go POST to create account import Source: https://docs.pipecorn.com/api-reference/endpoints/extract/accounts Uses net/http to send a POST request with a JSON payload. Sets X-API-KEY and Content-Type headers, then prints the response body. ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://app.pipecorn.com/api/v2/accounts/" payload := strings.NewReader("{\n \"search_url\": \"https://www.linkedin.com/sales/search/company?query=(revenueRange:%22%2410M-%24100M%22%20AND%20employeeCountRange:%2211-50%22%20AND%20industry:%22Technology%2C%20Information%20and%20Internet%22)\",\n \"name\": \"Tech Companies 10M-100M Revenue\",\n \"webhook_url\": \"https://webhook.site/8b53c96f-f2cd-4c24-bc09-b3c2176d7ea8\",\n \"streaming\": false,\n \"limit\": 100,\n \"custom\": {\n \"source\": \"api\",\n \"campaign\": \"q1_outreach\"\n }\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("X-API-KEY", "") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### Go HTTP request to retrieve a persona Source: https://docs.pipecorn.com/api-reference/endpoints/personas/show Go example using net/http to GET a persona. Prints the response body. ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://app.pipecorn.com/api/v2/personas/{uuid}" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("X-API-KEY", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### PHP cURL to retrieve a persona Source: https://docs.pipecorn.com/api-reference/endpoints/personas/show PHP example using cURL to GET a persona. Outputs the response or a cURL error. ```php "https://app.pipecorn.com/api/v2/personas/{uuid}", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => [ "X-API-KEY: " ], ]); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; } ``` -------------------------------- ### JavaScript fetch example for warm intros Source: https://docs.pipecorn.com/api-reference/endpoints/signals/warm_intros Uses the fetch API to send a POST request with the warm intros payload. Replace with your API key. ```javascript const options = { method: 'POST', headers: {'X-API-KEY': '', 'Content-Type': 'application/json'}, body: JSON.stringify({ linkedin_url: 'https://www.linkedin.com/in/john-doe', linkedin_profile_url: '', persona_id: '8f2c1b7e-3a4d-4e5f-9a6b-1c2d3e4f5a6b', job_titles: ['Head of Sales', 'VP Sales'], excluded_job_titles: ['Intern'], target_company_ids: ['1441', '1035'], limit: 25 }) }; fetch('https://app.pipecorn.com/api/v2/intents/leads/warm_intros', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err)); ``` -------------------------------- ### Go example for tech stack endpoint Source: https://docs.pipecorn.com/api-reference/endpoints/signals/tech_stack Go example using net/http to POST to the tech stack endpoint. It constructs a JSON payload as a string, sets the X-API-KEY header, and prints the response body. ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://app.pipecorn.com/api/v2/intents/accounts/stack" payload := strings.NewReader("{\n \"webhook_url\": \"https://your-company.com/webhooks/stack\",\n \"stacks\": [\n \"shopify\",\n \"webflow\"\n ],\n \"stack_match\": \"or\",\n \"excluded_stacks\": [\n \"wordpress\"\n ],\n \"countries\": [\n \"US\",\n \"FR\"\n ],\n \"included_industries\": [\n \"2190\",\n \"34\"\n ],\n \"excluded_industries\": [\n \"27\"\n ],\n \"company_size\": [\n \"11-50\",\n \"51-200\"\n ],\n \"limit\": 1000,\n \"streaming\": false,\n \"name\": \"Shopify prospects\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("X-API-KEY", "") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### JavaScript fetch to retrieve a persona Source: https://docs.pipecorn.com/api-reference/endpoints/personas/show JavaScript example using fetch to GET a persona. Logs the JSON response or error. ```javascript const options = {method: 'GET', headers: {'X-API-KEY': ''}}; fetch('https://app.pipecorn.com/api/v2/personas/{uuid}', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err)); ``` -------------------------------- ### Python requests to retrieve a persona Source: https://docs.pipecorn.com/api-reference/endpoints/personas/show Python example using the requests library to GET a persona. Requires the requests package. ```python import requests url = "https://app.pipecorn.com/api/v2/personas/{uuid}" headers = {"X-API-KEY": ""} response = requests.get(url, headers=headers) print(response.text) ``` -------------------------------- ### Go example for single account enrichment Source: https://docs.pipecorn.com/api-reference/endpoints/accounts/single Uses net/http to POST the payload. Prints the response body. ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://app.pipecorn.com/api/v2/accounts/single_enrich" payload := strings.NewReader("{\n \"company_linkedin_url\": \"https://linkedin.com/company/pipecorn\",\n \"name\": \"Pipecorn\",\n \"domain\": \"pipecorn.com\",\n \"country\": \"FR\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("X-API-KEY", "") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### Ruby example to get location ID Source: https://docs.pipecorn.com/api-reference/endpoints/miscellaneous/location-ids Uses Net::HTTP to POST the location payload. Prints the response body. ```ruby require 'uri' require 'net/http' url = URI("https://app.pipecorn.com/api/v2/locations") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["X-API-KEY"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"name\": \"San Francisco\",\n \"source\": \"live\"\n}" response = http.request(request) puts response.read_body ``` -------------------------------- ### Java Unirest example to get location ID Source: https://docs.pipecorn.com/api-reference/endpoints/miscellaneous/location-ids Uses Unirest to POST the location payload. Returns the response as a string. ```java HttpResponse response = Unirest.post("https://app.pipecorn.com/api/v2/locations") .header("X-API-KEY", "") .header("Content-Type", "application/json") .body("{\n \"name\": \"San Francisco\",\n \"source\": \"live\"\n}") .asString(); ``` -------------------------------- ### Go example Source: https://docs.pipecorn.com/api-reference/endpoints/signals/reactions Example using Go's net/http to POST to the reactions endpoint. Sets the API key and content type headers, sends JSON payload, and prints the response body. ```Go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://app.pipecorn.com/api/v2/intents/leads/reactions" payload := strings.NewReader("{\n \"linkedin_url\": \"https://www.linkedin.com/in/john-doe\",\n \"limit\": 10,\n \"linkedin_profile_url\": \"\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("X-API-KEY", "") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### 200 Success response for get single contact enrichment Source: https://docs.pipecorn.com/api-reference/endpoints/contacts/single_enrich Example of a successful 200 response containing the enrichment data for the contact. ```json { "enrichment_id": "123e4567-e89b-12d3-a456-426614174000", "first_name": "Mathieu", "last_name": "Brun-Picard", "status": "finished", "email": "mathieu@prontohq.com", "email_status": "deliverable", "personal_email": "mathieu.bp@gmail.com", "personal_email_status": "valid", "phone": [ "+12015550123" ], "phone_details": [ { "number": "+12015550123", "type": "fixed_or_mobile" } ], "custom": { "hubspot_id": "4447901" } } ``` -------------------------------- ### Ruby Net::HTTP to retrieve a persona Source: https://docs.pipecorn.com/api-reference/endpoints/personas/show Ruby example using Net::HTTP to GET a persona. Prints the response body. ```ruby require 'uri' require 'net/http' url = URI("https://app.pipecorn.com/api/v2/personas/{uuid}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["X-API-KEY"] = '' response = http.request(request) puts response.read_body ``` -------------------------------- ### Go example for account search Source: https://docs.pipecorn.com/api-reference/endpoints/accounts/search Uses net/http to POST a JSON payload to the accounts search endpoint. Prints the response body. ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://app.pipecorn.com/api/v2/accounts/search" payload := strings.NewReader("{\n \"webhook_url\": \"https://webhook.site/8b53c96f-f2cd-4c24-bc09-b3c2176d7ea8\",\n \"name\": \"Tech Companies in US\",\n \"included_industries\": [\n \"6\"\n ],\n \"excluded_industries\": [\n \"12\"\n ],\n \"included_locations\": [\n \"103644278\"\n ],\n \"company_size\": [\n \"51-200\",\n \"201-500\"\n ],\n \"keyword\": \"saas\",\n \"min_revenue\": 10,\n \"max_revenue\": 100,\n \"revenue_currency\": \"USD\",\n \"limit\": 500,\n \"streaming\": false\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("X-API-KEY", "") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### Go example Source: https://docs.pipecorn.com/api-reference/endpoints/signals/reactions Uses net/http to send the POST request with the payload as a string. Prints the response body. ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://app.pipecorn.com/api/v2/intents/leads/reactions" payload := strings.NewReader("{\n \"linkedin_url\": \"https://www.linkedin.com/in/john-doe\",\n \"limit\": 10,\n \"linkedin_profile_url\": \"\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("X-API-KEY", "") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### 200 Success response for GET /accounts/technologies Source: https://docs.pipecorn.com/api-reference/endpoints/miscellaneous/technologies Example of a successful response containing a list of technologies with slug, name, category, logo, and description. ```json { "technologies": [ { "slug": "hubspot", "name": "HubSpot", "category": "Marketing Automation", "logo": "https://cdn.theirstack.com/logos/hubspot.png", "description": "Inbound marketing, sales, and CRM platform." } ] } ``` -------------------------------- ### Example request: GET /v2/accounts/technologies?query=hubspot Source: https://docs.pipecorn.com/api-reference/endpoints/miscellaneous/technologies Searches for a technology by name. The query parameter is required; an empty query returns a 400 error. ```http GET /v2/accounts/technologies?query=hubspot ``` -------------------------------- ### Go example Source: https://docs.pipecorn.com/api-reference/endpoints/signals/comments Uses net/http to send the POST request with a JSON payload. Prints the response body. ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://app.pipecorn.com/api/v2/intents/leads/comments" payload := strings.NewReader("{\n \"linkedin_url\": \"https://www.linkedin.com/in/john-doe\",\n \"limit\": 10,\n \"linkedin_profile_url\": \"\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("X-API-KEY", "") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### Go example for find_new_hires Source: https://docs.pipecorn.com/api-reference/endpoints/signals/find_new_hires Uses net/http to POST a JSON payload and prints the response body. ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://app.pipecorn.com/api/v2/intents/leads/find_new_hires" payload := strings.NewReader("{\n \"webhook_url\": \"https://your-company.com/webhooks/new_hires\",\n \"persona_id\": \"persona_abc123\",\n \"headcount\": [\n \"C\",\n \"D\",\n \"E\"\n ],\n \"industries\": [\n \"Software Development\"\n ],\n \"location_ids\": [\n 103644278\n ],\n \"domain_allow_list\": [\n \"acme.com\"\n ],\n \"domain_deny_list\": [\n \"competitor.com\"\n ]\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("X-API-KEY", "") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ```