Create a new people list
curl --request POST \
--url https://app.tryspecter.com/api/v1/lists/people \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "My list",
"people_ids": [
"per_9bc79341808a72461d634256"
],
"is_public": true
}
'import requests
url = "https://app.tryspecter.com/api/v1/lists/people"
payload = {
"name": "My list",
"people_ids": ["per_9bc79341808a72461d634256"],
"is_public": True
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'My list', people_ids: ['per_9bc79341808a72461d634256'], is_public: true})
};
fetch('https://app.tryspecter.com/api/v1/lists/people', 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://app.tryspecter.com/api/v1/lists/people",
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([
'name' => 'My list',
'people_ids' => [
'per_9bc79341808a72461d634256'
],
'is_public' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-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://app.tryspecter.com/api/v1/lists/people"
payload := strings.NewReader("{\n \"name\": \"My list\",\n \"people_ids\": [\n \"per_9bc79341808a72461d634256\"\n ],\n \"is_public\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<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))
}HttpResponse<String> response = Unirest.post("https://app.tryspecter.com/api/v1/lists/people")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"My list\",\n \"people_ids\": [\n \"per_9bc79341808a72461d634256\"\n ],\n \"is_public\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.tryspecter.com/api/v1/lists/people")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"My list\",\n \"people_ids\": [\n \"per_9bc79341808a72461d634256\"\n ],\n \"is_public\": true\n}"
response = http.request(request)
puts response.read_body"a1d2434c-e089-480a-8a27-9909d2f558b4"{
"errorCode": "NO_TEAM_ADMIN",
"message": "Cannot process request without a team admin, please request a team admin is added to your account.\n"
}{
"errorCode": "API_KEY_MISSING",
"message": "No API Key was presented on the header X-API-KEY"
}{
"errorCode": "NOT_PERMITTED",
"message": "You do not have permission to access this resource."
}{
"errorCode": "<string>",
"message": "<string>"
}People Lists
Create a new people list
What it does
Creates a list of people that is shared with the API and returns the new list’s id.
Why you’d use it
Programmatically maintain outreach/diligence cohorts (e.g., founders, execs, domain experts) you’ll enrich, score, and sync to internal tools.
Key behaviors
- Add people at creation by passing their person IDs, or add them later via the PUT endpoint for that list id.
- The list owner will be the first team admin on your account.
- List names must be unique; if a name already exists, rename the existing list or choose a new name.
POST
/
lists
/
people
Create a new people list
curl --request POST \
--url https://app.tryspecter.com/api/v1/lists/people \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "My list",
"people_ids": [
"per_9bc79341808a72461d634256"
],
"is_public": true
}
'import requests
url = "https://app.tryspecter.com/api/v1/lists/people"
payload = {
"name": "My list",
"people_ids": ["per_9bc79341808a72461d634256"],
"is_public": True
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'My list', people_ids: ['per_9bc79341808a72461d634256'], is_public: true})
};
fetch('https://app.tryspecter.com/api/v1/lists/people', 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://app.tryspecter.com/api/v1/lists/people",
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([
'name' => 'My list',
'people_ids' => [
'per_9bc79341808a72461d634256'
],
'is_public' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-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://app.tryspecter.com/api/v1/lists/people"
payload := strings.NewReader("{\n \"name\": \"My list\",\n \"people_ids\": [\n \"per_9bc79341808a72461d634256\"\n ],\n \"is_public\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<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))
}HttpResponse<String> response = Unirest.post("https://app.tryspecter.com/api/v1/lists/people")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"My list\",\n \"people_ids\": [\n \"per_9bc79341808a72461d634256\"\n ],\n \"is_public\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.tryspecter.com/api/v1/lists/people")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"My list\",\n \"people_ids\": [\n \"per_9bc79341808a72461d634256\"\n ],\n \"is_public\": true\n}"
response = http.request(request)
puts response.read_body"a1d2434c-e089-480a-8a27-9909d2f558b4"{
"errorCode": "NO_TEAM_ADMIN",
"message": "Cannot process request without a team admin, please request a team admin is added to your account.\n"
}{
"errorCode": "API_KEY_MISSING",
"message": "No API Key was presented on the header X-API-KEY"
}{
"errorCode": "NOT_PERMITTED",
"message": "You do not have permission to access this resource."
}{
"errorCode": "<string>",
"message": "<string>"
}Authorizations
Body
application/json
Response
The ID of the list that was created
ID of the list
Example:
"a1d2434c-e089-480a-8a27-9909d2f558b4"
Was this page helpful?
⌘I