API Reference
Start a batch contact retrieval, or estimate one
Start a batch contact retrieval, or estimate one
curl --request POST \
--url https://developer-api.seekout.io/v1/contact-retrieval-jobs \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"items": [
{
"candidate": {
"key": "<string>",
"connection_id": "<string>"
},
"channels": [],
"client_reference": "<string>"
}
],
"quote_only": false
}
'import requests
url = "https://developer-api.seekout.io/v1/contact-retrieval-jobs"
payload = {
"items": [
{
"candidate": {
"key": "<string>",
"connection_id": "<string>"
},
"channels": [],
"client_reference": "<string>"
}
],
"quote_only": False
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Idempotency-Key': '<idempotency-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
items: [
{
candidate: {key: '<string>', connection_id: '<string>'},
channels: [],
client_reference: '<string>'
}
],
quote_only: false
})
};
fetch('https://developer-api.seekout.io/v1/contact-retrieval-jobs', 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://developer-api.seekout.io/v1/contact-retrieval-jobs",
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([
'items' => [
[
'candidate' => [
'key' => '<string>',
'connection_id' => '<string>'
],
'channels' => [
],
'client_reference' => '<string>'
]
],
'quote_only' => false
]),
CURLOPT_HTTPHEADER => [
"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://developer-api.seekout.io/v1/contact-retrieval-jobs"
payload := strings.NewReader("{\n \"items\": [\n {\n \"candidate\": {\n \"key\": \"<string>\",\n \"connection_id\": \"<string>\"\n },\n \"channels\": [],\n \"client_reference\": \"<string>\"\n }\n ],\n \"quote_only\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-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://developer-api.seekout.io/v1/contact-retrieval-jobs")
.header("Idempotency-Key", "<idempotency-key>")
.header("Content-Type", "application/json")
.body("{\n \"items\": [\n {\n \"candidate\": {\n \"key\": \"<string>\",\n \"connection_id\": \"<string>\"\n },\n \"channels\": [],\n \"client_reference\": \"<string>\"\n }\n ],\n \"quote_only\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://developer-api.seekout.io/v1/contact-retrieval-jobs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"items\": [\n {\n \"candidate\": {\n \"key\": \"<string>\",\n \"connection_id\": \"<string>\"\n },\n \"channels\": [],\n \"client_reference\": \"<string>\"\n }\n ],\n \"quote_only\": false\n}"
response = http.request(request)
puts response.read_body{
"items": 1,
"components": 1,
"reserved_microunits_estimate": "<string>",
"lines": [
{
"meter": "<string>",
"units": 1,
"unit_price_microunits": "<string>",
"total_microunits": "<string>"
}
],
"omitted": {
"duplicates": 1,
"not_servable": 1,
"not_found": 0
}
}{
"job_id": "<string>",
"type": "contact_retrieval",
"status": "queued",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"counts": {
"requested": 1,
"delivered": 1,
"not_found": 1,
"failed": 1,
"reused": 1,
"cancelled": 1,
"pending": 1
},
"reserved_microunits": "<string>",
"charged_microunits": "<string>",
"result_available": true,
"result_url": "<string>"
}{
"type": "urn:seekout:developer-api:problem:malformed_json",
"title": "Malformed JSON",
"status": 400,
"detail": "The request body is not valid JSON.",
"code": "malformed_json"
}{
"type": "urn:seekout:developer-api:problem:validation_failed",
"title": "Request validation failed",
"status": 422,
"detail": "The request does not match the operation contract.",
"code": "validation_failed"
}Headers
Body
application/json
Response
Successful Response
A quote_only answer: an estimate, never an acceptance.
Was this page helpful?
⌘I
Start a batch contact retrieval, or estimate one
curl --request POST \
--url https://developer-api.seekout.io/v1/contact-retrieval-jobs \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"items": [
{
"candidate": {
"key": "<string>",
"connection_id": "<string>"
},
"channels": [],
"client_reference": "<string>"
}
],
"quote_only": false
}
'import requests
url = "https://developer-api.seekout.io/v1/contact-retrieval-jobs"
payload = {
"items": [
{
"candidate": {
"key": "<string>",
"connection_id": "<string>"
},
"channels": [],
"client_reference": "<string>"
}
],
"quote_only": False
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Idempotency-Key': '<idempotency-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
items: [
{
candidate: {key: '<string>', connection_id: '<string>'},
channels: [],
client_reference: '<string>'
}
],
quote_only: false
})
};
fetch('https://developer-api.seekout.io/v1/contact-retrieval-jobs', 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://developer-api.seekout.io/v1/contact-retrieval-jobs",
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([
'items' => [
[
'candidate' => [
'key' => '<string>',
'connection_id' => '<string>'
],
'channels' => [
],
'client_reference' => '<string>'
]
],
'quote_only' => false
]),
CURLOPT_HTTPHEADER => [
"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://developer-api.seekout.io/v1/contact-retrieval-jobs"
payload := strings.NewReader("{\n \"items\": [\n {\n \"candidate\": {\n \"key\": \"<string>\",\n \"connection_id\": \"<string>\"\n },\n \"channels\": [],\n \"client_reference\": \"<string>\"\n }\n ],\n \"quote_only\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-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://developer-api.seekout.io/v1/contact-retrieval-jobs")
.header("Idempotency-Key", "<idempotency-key>")
.header("Content-Type", "application/json")
.body("{\n \"items\": [\n {\n \"candidate\": {\n \"key\": \"<string>\",\n \"connection_id\": \"<string>\"\n },\n \"channels\": [],\n \"client_reference\": \"<string>\"\n }\n ],\n \"quote_only\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://developer-api.seekout.io/v1/contact-retrieval-jobs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"items\": [\n {\n \"candidate\": {\n \"key\": \"<string>\",\n \"connection_id\": \"<string>\"\n },\n \"channels\": [],\n \"client_reference\": \"<string>\"\n }\n ],\n \"quote_only\": false\n}"
response = http.request(request)
puts response.read_body{
"items": 1,
"components": 1,
"reserved_microunits_estimate": "<string>",
"lines": [
{
"meter": "<string>",
"units": 1,
"unit_price_microunits": "<string>",
"total_microunits": "<string>"
}
],
"omitted": {
"duplicates": 1,
"not_servable": 1,
"not_found": 0
}
}{
"job_id": "<string>",
"type": "contact_retrieval",
"status": "queued",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"counts": {
"requested": 1,
"delivered": 1,
"not_found": 1,
"failed": 1,
"reused": 1,
"cancelled": 1,
"pending": 1
},
"reserved_microunits": "<string>",
"charged_microunits": "<string>",
"result_available": true,
"result_url": "<string>"
}{
"type": "urn:seekout:developer-api:problem:malformed_json",
"title": "Malformed JSON",
"status": 400,
"detail": "The request body is not valid JSON.",
"code": "malformed_json"
}{
"type": "urn:seekout:developer-api:problem:validation_failed",
"title": "Request validation failed",
"status": 422,
"detail": "The request does not match the operation contract.",
"code": "validation_failed"
}