Create Exclusion List Endpoint
curl --request POST \
--url https://api.sixtyfour.ai/search/exclusion-lists \
--header 'Content-Type: application/json' \
--data '
{
"source": {
"type": "<string>",
"resource_handle_id": "<string>",
"id_column": "<string>"
},
"name": "<string>",
"entity_type": "person"
}
'import requests
url = "https://api.sixtyfour.ai/search/exclusion-lists"
payload = {
"source": {
"type": "<string>",
"resource_handle_id": "<string>",
"id_column": "<string>"
},
"name": "<string>",
"entity_type": "person"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
source: {type: '<string>', resource_handle_id: '<string>', id_column: '<string>'},
name: '<string>',
entity_type: 'person'
})
};
fetch('https://api.sixtyfour.ai/search/exclusion-lists', 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.sixtyfour.ai/search/exclusion-lists",
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([
'source' => [
'type' => '<string>',
'resource_handle_id' => '<string>',
'id_column' => '<string>'
],
'name' => '<string>',
'entity_type' => 'person'
]),
CURLOPT_HTTPHEADER => [
"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.sixtyfour.ai/search/exclusion-lists"
payload := strings.NewReader("{\n \"source\": {\n \"type\": \"<string>\",\n \"resource_handle_id\": \"<string>\",\n \"id_column\": \"<string>\"\n },\n \"name\": \"<string>\",\n \"entity_type\": \"person\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.sixtyfour.ai/search/exclusion-lists")
.header("Content-Type", "application/json")
.body("{\n \"source\": {\n \"type\": \"<string>\",\n \"resource_handle_id\": \"<string>\",\n \"id_column\": \"<string>\"\n },\n \"name\": \"<string>\",\n \"entity_type\": \"person\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sixtyfour.ai/search/exclusion-lists")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"source\": {\n \"type\": \"<string>\",\n \"resource_handle_id\": \"<string>\",\n \"id_column\": \"<string>\"\n },\n \"name\": \"<string>\",\n \"entity_type\": \"person\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"status": "<string>"
}{
"detail": "Invalid request body"
}{
"detail": "Invalid API key"
}{
"detail": "This organization no longer has access to Sixtyfour. Contact your representative at Sixtyfour."
}{
"detail": [
{
"loc": [
"body",
"target_company",
"domain"
],
"msg": "Field required",
"type": "missing",
"input": null,
"ctx": {}
}
]
}{
"detail": "Internal server error"
}Search
Create Exclusion List Endpoint
Create an exclusion list (asynchronous materialization).
Lists are immutable in v1: to change one, create a new list and delete the old. Up to 20 active lists per organization.
POST
/
search
/
exclusion-lists
Create Exclusion List Endpoint
curl --request POST \
--url https://api.sixtyfour.ai/search/exclusion-lists \
--header 'Content-Type: application/json' \
--data '
{
"source": {
"type": "<string>",
"resource_handle_id": "<string>",
"id_column": "<string>"
},
"name": "<string>",
"entity_type": "person"
}
'import requests
url = "https://api.sixtyfour.ai/search/exclusion-lists"
payload = {
"source": {
"type": "<string>",
"resource_handle_id": "<string>",
"id_column": "<string>"
},
"name": "<string>",
"entity_type": "person"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
source: {type: '<string>', resource_handle_id: '<string>', id_column: '<string>'},
name: '<string>',
entity_type: 'person'
})
};
fetch('https://api.sixtyfour.ai/search/exclusion-lists', 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.sixtyfour.ai/search/exclusion-lists",
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([
'source' => [
'type' => '<string>',
'resource_handle_id' => '<string>',
'id_column' => '<string>'
],
'name' => '<string>',
'entity_type' => 'person'
]),
CURLOPT_HTTPHEADER => [
"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.sixtyfour.ai/search/exclusion-lists"
payload := strings.NewReader("{\n \"source\": {\n \"type\": \"<string>\",\n \"resource_handle_id\": \"<string>\",\n \"id_column\": \"<string>\"\n },\n \"name\": \"<string>\",\n \"entity_type\": \"person\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.sixtyfour.ai/search/exclusion-lists")
.header("Content-Type", "application/json")
.body("{\n \"source\": {\n \"type\": \"<string>\",\n \"resource_handle_id\": \"<string>\",\n \"id_column\": \"<string>\"\n },\n \"name\": \"<string>\",\n \"entity_type\": \"person\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sixtyfour.ai/search/exclusion-lists")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"source\": {\n \"type\": \"<string>\",\n \"resource_handle_id\": \"<string>\",\n \"id_column\": \"<string>\"\n },\n \"name\": \"<string>\",\n \"entity_type\": \"person\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"status": "<string>"
}{
"detail": "Invalid request body"
}{
"detail": "Invalid API key"
}{
"detail": "This organization no longer has access to Sixtyfour. Contact your representative at Sixtyfour."
}{
"detail": [
{
"loc": [
"body",
"target_company",
"domain"
],
"msg": "Field required",
"type": "missing",
"input": null,
"ctx": {}
}
]
}{
"detail": "Internal server error"
}Headers
Body
application/json
Build the list from an uploaded CSV (see POST /storage/csv/upload).
- ResourceHandleSource
- InlineEntityIdsSource
- SearchIdSource
Show child attributes
Show child attributes
Required unless source.type is 'search_id' (defaults to a date-stamped name).
Required string length:
1 - 120Available options:
person, company Was this page helpful?
⌘I