CRM contacts and companies
Check who is already in your CRM
For a list of LinkedIn people, find out who already exists in your CRM. Run this before creating contacts, to avoid duplicates.
POST
/
crm
/
contacts
/
lookup
Check who is already in your CRM
curl --request POST \
--url https://api.groovin.ai/functions/v1/api/v1/crm/contacts/lookup \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"profiles": [
{
"linkedin_profile_id": "REPLACE_WITH_LINKEDIN_PROFILE_ID",
"slug": "REPLACE_WITH_SLUG"
}
]
}
'import requests
url = "https://api.groovin.ai/functions/v1/api/v1/crm/contacts/lookup"
payload = { "profiles": [
{
"linkedin_profile_id": "REPLACE_WITH_LINKEDIN_PROFILE_ID",
"slug": "REPLACE_WITH_SLUG"
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
profiles: [
{
linkedin_profile_id: 'REPLACE_WITH_LINKEDIN_PROFILE_ID',
slug: 'REPLACE_WITH_SLUG'
}
]
})
};
fetch('https://api.groovin.ai/functions/v1/api/v1/crm/contacts/lookup', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.groovin.ai/functions/v1/api/v1/crm/contacts/lookup",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'profiles' => [
[
'linkedin_profile_id' => 'REPLACE_WITH_LINKEDIN_PROFILE_ID',
'slug' => 'REPLACE_WITH_SLUG'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.groovin.ai/functions/v1/api/v1/crm/contacts/lookup"
payload := strings.NewReader("{\n \"profiles\": [\n {\n \"linkedin_profile_id\": \"REPLACE_WITH_LINKEDIN_PROFILE_ID\",\n \"slug\": \"REPLACE_WITH_SLUG\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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))
}HttpResponse<String> response = Unirest.post("https://api.groovin.ai/functions/v1/api/v1/crm/contacts/lookup")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"profiles\": [\n {\n \"linkedin_profile_id\": \"REPLACE_WITH_LINKEDIN_PROFILE_ID\",\n \"slug\": \"REPLACE_WITH_SLUG\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.groovin.ai/functions/v1/api/v1/crm/contacts/lookup")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"profiles\": [\n {\n \"linkedin_profile_id\": \"REPLACE_WITH_LINKEDIN_PROFILE_ID\",\n \"slug\": \"REPLACE_WITH_SLUG\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"org_linkedin_account_id": 4821,
"total": 1,
"crm_search": {
"supported": true,
"eligible": 1,
"searched": 1,
"not_searched": 0,
"rate_limited": false
},
"results": [
{
"linkedin_profile_id": "ACoAAExampleLinkedinProfileId",
"slug": "john-smith",
"exists": false,
"source": "none",
"crm_contact_id": null,
"crm_searched": true
}
]
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Nothing changes, and LinkedIn is not touched. Attio and HubSpot are searched live, which uses some of your CRM’s API quota.
What this call does
| None | |
| Your CRM | Live search on Attio and HubSpot, using your CRM’s API quota |
| Repeating it | Safe to repeat. |
Good to know
crm_searched: falsefor someone with aslugmeans the search did not finish, not that they are absent. Run those people again.
lookup_crm_contacts.Authorizations
Your Groovin API key (gv_live_…), created in the extension under Settings, MCP and API.
Body
application/json
Response
Success.
One answer per person you asked about.
⌘I
Check who is already in your CRM
curl --request POST \
--url https://api.groovin.ai/functions/v1/api/v1/crm/contacts/lookup \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"profiles": [
{
"linkedin_profile_id": "REPLACE_WITH_LINKEDIN_PROFILE_ID",
"slug": "REPLACE_WITH_SLUG"
}
]
}
'import requests
url = "https://api.groovin.ai/functions/v1/api/v1/crm/contacts/lookup"
payload = { "profiles": [
{
"linkedin_profile_id": "REPLACE_WITH_LINKEDIN_PROFILE_ID",
"slug": "REPLACE_WITH_SLUG"
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
profiles: [
{
linkedin_profile_id: 'REPLACE_WITH_LINKEDIN_PROFILE_ID',
slug: 'REPLACE_WITH_SLUG'
}
]
})
};
fetch('https://api.groovin.ai/functions/v1/api/v1/crm/contacts/lookup', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.groovin.ai/functions/v1/api/v1/crm/contacts/lookup",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'profiles' => [
[
'linkedin_profile_id' => 'REPLACE_WITH_LINKEDIN_PROFILE_ID',
'slug' => 'REPLACE_WITH_SLUG'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.groovin.ai/functions/v1/api/v1/crm/contacts/lookup"
payload := strings.NewReader("{\n \"profiles\": [\n {\n \"linkedin_profile_id\": \"REPLACE_WITH_LINKEDIN_PROFILE_ID\",\n \"slug\": \"REPLACE_WITH_SLUG\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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))
}HttpResponse<String> response = Unirest.post("https://api.groovin.ai/functions/v1/api/v1/crm/contacts/lookup")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"profiles\": [\n {\n \"linkedin_profile_id\": \"REPLACE_WITH_LINKEDIN_PROFILE_ID\",\n \"slug\": \"REPLACE_WITH_SLUG\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.groovin.ai/functions/v1/api/v1/crm/contacts/lookup")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"profiles\": [\n {\n \"linkedin_profile_id\": \"REPLACE_WITH_LINKEDIN_PROFILE_ID\",\n \"slug\": \"REPLACE_WITH_SLUG\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"org_linkedin_account_id": 4821,
"total": 1,
"crm_search": {
"supported": true,
"eligible": 1,
"searched": 1,
"not_searched": 0,
"rate_limited": false
},
"results": [
{
"linkedin_profile_id": "ACoAAExampleLinkedinProfileId",
"slug": "john-smith",
"exists": false,
"source": "none",
"crm_contact_id": null,
"crm_searched": true
}
]
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}