Search contacts
curl --request POST \
--url https://api.shoplist.co/v1/contacts/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"filters": {
"store_domain": "shop.example"
},
"limit": 20
}
'import requests
url = "https://api.shoplist.co/v1/contacts/search"
payload = {
"filters": { "store_domain": "shop.example" },
"limit": 20
}
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({filters: {store_domain: 'shop.example'}, limit: 20})
};
fetch('https://api.shoplist.co/v1/contacts/search', 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.shoplist.co/v1/contacts/search",
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([
'filters' => [
'store_domain' => 'shop.example'
],
'limit' => 20
]),
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.shoplist.co/v1/contacts/search"
payload := strings.NewReader("{\n \"filters\": {\n \"store_domain\": \"shop.example\"\n },\n \"limit\": 20\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.shoplist.co/v1/contacts/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"filters\": {\n \"store_domain\": \"shop.example\"\n },\n \"limit\": 20\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.shoplist.co/v1/contacts/search")
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 \"filters\": {\n \"store_domain\": \"shop.example\"\n },\n \"limit\": 20\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"object": "contact",
"id": "07a00000-0000-4000-8000-000000000006",
"store_id": "07a00000-0000-4000-8000-000000000004",
"masked_name": "Taylor O.",
"title": "Director of Operations",
"seniority": "Director",
"has_email": true,
"has_phone": false,
"has_linkedin": false,
"revealed": false
}
],
"has_more": false,
"next_cursor": null
}{
"type": "https://shoplist.co/docs/errors#invalid_request",
"title": "Invalid request",
"status": 400,
"detail": "<string>",
"code": "invalid_request",
"request_id": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}{
"type": "https://shoplist.co/docs/errors#unauthenticated",
"title": "Unauthenticated",
"status": 401,
"detail": "<string>",
"code": "unauthenticated",
"request_id": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}{
"type": "https://shoplist.co/docs/errors#plan_required",
"title": "Plan required",
"status": 402,
"detail": "<string>",
"code": "plan_required",
"request_id": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}{
"type": "https://shoplist.co/docs/errors#insufficient_scope",
"title": "Insufficient scope",
"status": 403,
"detail": "<string>",
"code": "insufficient_scope",
"request_id": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}{
"type": "https://shoplist.co/docs/errors#payload_too_large",
"title": "Payload too large",
"status": 413,
"detail": "<string>",
"code": "payload_too_large",
"request_id": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}{
"type": "https://shoplist.co/docs/errors#rate_limited",
"title": "Rate limit exceeded",
"status": 429,
"detail": "<string>",
"code": "rate_limited",
"request_id": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}{
"type": "https://shoplist.co/docs/errors#internal_error",
"title": "Internal error",
"status": 500,
"detail": "<string>",
"code": "internal_error",
"request_id": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}{
"type": "https://shoplist.co/docs/errors#service_unavailable",
"title": "Service unavailable",
"status": 503,
"detail": "<string>",
"code": "service_unavailable",
"request_id": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}Contacts
Search contacts
Returns masked contact previews in contact ID order for stores whose people your team has already unlocked in Shoplist.
POST
/
v1
/
contacts
/
search
Search contacts
curl --request POST \
--url https://api.shoplist.co/v1/contacts/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"filters": {
"store_domain": "shop.example"
},
"limit": 20
}
'import requests
url = "https://api.shoplist.co/v1/contacts/search"
payload = {
"filters": { "store_domain": "shop.example" },
"limit": 20
}
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({filters: {store_domain: 'shop.example'}, limit: 20})
};
fetch('https://api.shoplist.co/v1/contacts/search', 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.shoplist.co/v1/contacts/search",
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([
'filters' => [
'store_domain' => 'shop.example'
],
'limit' => 20
]),
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.shoplist.co/v1/contacts/search"
payload := strings.NewReader("{\n \"filters\": {\n \"store_domain\": \"shop.example\"\n },\n \"limit\": 20\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.shoplist.co/v1/contacts/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"filters\": {\n \"store_domain\": \"shop.example\"\n },\n \"limit\": 20\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.shoplist.co/v1/contacts/search")
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 \"filters\": {\n \"store_domain\": \"shop.example\"\n },\n \"limit\": 20\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"object": "contact",
"id": "07a00000-0000-4000-8000-000000000006",
"store_id": "07a00000-0000-4000-8000-000000000004",
"masked_name": "Taylor O.",
"title": "Director of Operations",
"seniority": "Director",
"has_email": true,
"has_phone": false,
"has_linkedin": false,
"revealed": false
}
],
"has_more": false,
"next_cursor": null
}{
"type": "https://shoplist.co/docs/errors#invalid_request",
"title": "Invalid request",
"status": 400,
"detail": "<string>",
"code": "invalid_request",
"request_id": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}{
"type": "https://shoplist.co/docs/errors#unauthenticated",
"title": "Unauthenticated",
"status": 401,
"detail": "<string>",
"code": "unauthenticated",
"request_id": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}{
"type": "https://shoplist.co/docs/errors#plan_required",
"title": "Plan required",
"status": 402,
"detail": "<string>",
"code": "plan_required",
"request_id": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}{
"type": "https://shoplist.co/docs/errors#insufficient_scope",
"title": "Insufficient scope",
"status": 403,
"detail": "<string>",
"code": "insufficient_scope",
"request_id": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}{
"type": "https://shoplist.co/docs/errors#payload_too_large",
"title": "Payload too large",
"status": 413,
"detail": "<string>",
"code": "payload_too_large",
"request_id": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}{
"type": "https://shoplist.co/docs/errors#rate_limited",
"title": "Rate limit exceeded",
"status": 429,
"detail": "<string>",
"code": "rate_limited",
"request_id": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}{
"type": "https://shoplist.co/docs/errors#internal_error",
"title": "Internal error",
"status": 500,
"detail": "<string>",
"code": "internal_error",
"request_id": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}{
"type": "https://shoplist.co/docs/errors#service_unavailable",
"title": "Service unavailable",
"status": 503,
"detail": "<string>",
"code": "service_unavailable",
"request_id": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}Authorizations
Body
application/json