Reveal contacts
curl --request POST \
--url https://api.shoplist.co/v1/contacts/reveal \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"contact_ids": [
"07a00000-0000-4000-8000-000000000006"
],
"max_credits": 0
}
'import requests
url = "https://api.shoplist.co/v1/contacts/reveal"
payload = {
"contact_ids": ["07a00000-0000-4000-8000-000000000006"],
"max_credits": 0
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({contact_ids: ['07a00000-0000-4000-8000-000000000006'], max_credits: 0})
};
fetch('https://api.shoplist.co/v1/contacts/reveal', 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/reveal",
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([
'contact_ids' => [
'07a00000-0000-4000-8000-000000000006'
],
'max_credits' => 0
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>"
],
]);
$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/reveal"
payload := strings.NewReader("{\n \"contact_ids\": [\n \"07a00000-0000-4000-8000-000000000006\"\n ],\n \"max_credits\": 0\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
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/reveal")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"contact_ids\": [\n \"07a00000-0000-4000-8000-000000000006\"\n ],\n \"max_credits\": 0\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.shoplist.co/v1/contacts/reveal")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"contact_ids\": [\n \"07a00000-0000-4000-8000-000000000006\"\n ],\n \"max_credits\": 0\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"contact_id": "07a00000-0000-4000-8000-000000000006",
"outcome": "revealed",
"contact": {
"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": true,
"full_name": "Taylor Orchard",
"email": "taylor@example.test",
"phone": null,
"linkedin_url": 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#idempotency_in_progress",
"title": "Request in progress",
"status": 409,
"detail": "<string>",
"code": "idempotency_in_progress",
"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#idempotency_key_reused",
"title": "Idempotency key reused",
"status": 422,
"detail": "<string>",
"code": "idempotency_key_reused",
"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
Reveal contacts
Returns one outcome per contact ID in request order. Revealing contacts at a store your team has unlocked costs nothing. This call never charges more than max_credits. Safe to retry: a reveal is never charged twice. Shoplist checks access again on each retry.
POST
/
v1
/
contacts
/
reveal
Reveal contacts
curl --request POST \
--url https://api.shoplist.co/v1/contacts/reveal \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"contact_ids": [
"07a00000-0000-4000-8000-000000000006"
],
"max_credits": 0
}
'import requests
url = "https://api.shoplist.co/v1/contacts/reveal"
payload = {
"contact_ids": ["07a00000-0000-4000-8000-000000000006"],
"max_credits": 0
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({contact_ids: ['07a00000-0000-4000-8000-000000000006'], max_credits: 0})
};
fetch('https://api.shoplist.co/v1/contacts/reveal', 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/reveal",
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([
'contact_ids' => [
'07a00000-0000-4000-8000-000000000006'
],
'max_credits' => 0
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>"
],
]);
$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/reveal"
payload := strings.NewReader("{\n \"contact_ids\": [\n \"07a00000-0000-4000-8000-000000000006\"\n ],\n \"max_credits\": 0\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
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/reveal")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"contact_ids\": [\n \"07a00000-0000-4000-8000-000000000006\"\n ],\n \"max_credits\": 0\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.shoplist.co/v1/contacts/reveal")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"contact_ids\": [\n \"07a00000-0000-4000-8000-000000000006\"\n ],\n \"max_credits\": 0\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"contact_id": "07a00000-0000-4000-8000-000000000006",
"outcome": "revealed",
"contact": {
"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": true,
"full_name": "Taylor Orchard",
"email": "taylor@example.test",
"phone": null,
"linkedin_url": 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#idempotency_in_progress",
"title": "Request in progress",
"status": 409,
"detail": "<string>",
"code": "idempotency_in_progress",
"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#idempotency_key_reused",
"title": "Idempotency key reused",
"status": 422,
"detail": "<string>",
"code": "idempotency_key_reused",
"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
Headers
Body
application/json