Start investigations in a batch
curl --request POST \
--url https://api.sixtyfour.ai/v1/atlas/investigations/batch \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--header 'x-api-key: <api-key>' \
--data '
{
"leads": [
{
"lead_info": {
"name": "Ada Lovelace"
},
"dispatch_id": "customer-lead-001"
}
]
}
'import requests
url = "https://api.sixtyfour.ai/v1/atlas/investigations/batch"
payload = { "leads": [
{
"lead_info": { "name": "Ada Lovelace" },
"dispatch_id": "customer-lead-001"
}
] }
headers = {
"Idempotency-Key": "<idempotency-key>",
"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: {
'Idempotency-Key': '<idempotency-key>',
'x-api-key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({leads: [{lead_info: {name: 'Ada Lovelace'}, dispatch_id: 'customer-lead-001'}]})
};
fetch('https://api.sixtyfour.ai/v1/atlas/investigations/batch', 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/v1/atlas/investigations/batch",
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([
'leads' => [
[
'lead_info' => [
'name' => 'Ada Lovelace'
],
'dispatch_id' => 'customer-lead-001'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>",
"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://api.sixtyfour.ai/v1/atlas/investigations/batch"
payload := strings.NewReader("{\n \"leads\": [\n {\n \"lead_info\": {\n \"name\": \"Ada Lovelace\"\n },\n \"dispatch_id\": \"customer-lead-001\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
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://api.sixtyfour.ai/v1/atlas/investigations/batch")
.header("Idempotency-Key", "<idempotency-key>")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"leads\": [\n {\n \"lead_info\": {\n \"name\": \"Ada Lovelace\"\n },\n \"dispatch_id\": \"customer-lead-001\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sixtyfour.ai/v1/atlas/investigations/batch")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"leads\": [\n {\n \"lead_info\": {\n \"name\": \"Ada Lovelace\"\n },\n \"dispatch_id\": \"customer-lead-001\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"items": [
{
"dispatch_id": "customer-lead-001",
"investigation_id": "00000000-0000-4000-8000-000000000001",
"job": {
"job_id": "job_00000000-0000-4000-8000-000000000002",
"status": "running",
"operation": "people.intelligence",
"created_at": "2026-08-01T00:00:00Z",
"next_poll_after": 5
}
}
]
}{
"detail": "<string>",
"error_code": "invalid_cursor",
"request_id": "<string>",
"retryable": true,
"param": "<string>"
}{
"detail": "<string>",
"error_code": "invalid_cursor",
"request_id": "<string>",
"retryable": true,
"param": "<string>"
}{
"detail": "<string>",
"error_code": "invalid_cursor",
"request_id": "<string>",
"retryable": true,
"param": "<string>"
}{
"detail": "<string>",
"error_code": "invalid_cursor",
"request_id": "<string>",
"retryable": true,
"param": "<string>"
}{
"detail": "<string>",
"error_code": "invalid_cursor",
"request_id": "<string>",
"retryable": true,
"param": "<string>"
}{
"detail": "This Idempotency-Key is already in use. Use a new key for a new request.",
"error_code": "idempotency_key_reused",
"request_id": "enrich_3f8b2c1e-9d4a-4c1b-8e2f-6a7b5c4d3e21",
"retryable": false,
"param": null
}{
"detail": "<string>",
"error_code": "invalid_cursor",
"request_id": "<string>",
"retryable": true,
"errors": [
{}
],
"param": "<string>"
}{
"detail": "<string>",
"error_code": "invalid_cursor",
"request_id": "<string>",
"retryable": true,
"param": "<string>"
}{
"detail": "<string>",
"error_code": "invalid_cursor",
"request_id": "<string>",
"retryable": true,
"param": "<string>"
}{
"detail": "<string>",
"error_code": "invalid_cursor",
"request_id": "<string>",
"retryable": true,
"param": "<string>"
}Atlas
Start investigations in a batch
One balance check covers all new runs; results follow input order. Replayed dispatches cost nothing extra.
Attached files must be uploaded by the caller: API keys may attach only files uploaded by that same key, and people may attach only their own uploads.
POST
/
v1
/
atlas
/
investigations
/
batch
Start investigations in a batch
curl --request POST \
--url https://api.sixtyfour.ai/v1/atlas/investigations/batch \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--header 'x-api-key: <api-key>' \
--data '
{
"leads": [
{
"lead_info": {
"name": "Ada Lovelace"
},
"dispatch_id": "customer-lead-001"
}
]
}
'import requests
url = "https://api.sixtyfour.ai/v1/atlas/investigations/batch"
payload = { "leads": [
{
"lead_info": { "name": "Ada Lovelace" },
"dispatch_id": "customer-lead-001"
}
] }
headers = {
"Idempotency-Key": "<idempotency-key>",
"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: {
'Idempotency-Key': '<idempotency-key>',
'x-api-key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({leads: [{lead_info: {name: 'Ada Lovelace'}, dispatch_id: 'customer-lead-001'}]})
};
fetch('https://api.sixtyfour.ai/v1/atlas/investigations/batch', 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/v1/atlas/investigations/batch",
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([
'leads' => [
[
'lead_info' => [
'name' => 'Ada Lovelace'
],
'dispatch_id' => 'customer-lead-001'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>",
"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://api.sixtyfour.ai/v1/atlas/investigations/batch"
payload := strings.NewReader("{\n \"leads\": [\n {\n \"lead_info\": {\n \"name\": \"Ada Lovelace\"\n },\n \"dispatch_id\": \"customer-lead-001\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
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://api.sixtyfour.ai/v1/atlas/investigations/batch")
.header("Idempotency-Key", "<idempotency-key>")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"leads\": [\n {\n \"lead_info\": {\n \"name\": \"Ada Lovelace\"\n },\n \"dispatch_id\": \"customer-lead-001\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sixtyfour.ai/v1/atlas/investigations/batch")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"leads\": [\n {\n \"lead_info\": {\n \"name\": \"Ada Lovelace\"\n },\n \"dispatch_id\": \"customer-lead-001\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"items": [
{
"dispatch_id": "customer-lead-001",
"investigation_id": "00000000-0000-4000-8000-000000000001",
"job": {
"job_id": "job_00000000-0000-4000-8000-000000000002",
"status": "running",
"operation": "people.intelligence",
"created_at": "2026-08-01T00:00:00Z",
"next_poll_after": 5
}
}
]
}{
"detail": "<string>",
"error_code": "invalid_cursor",
"request_id": "<string>",
"retryable": true,
"param": "<string>"
}{
"detail": "<string>",
"error_code": "invalid_cursor",
"request_id": "<string>",
"retryable": true,
"param": "<string>"
}{
"detail": "<string>",
"error_code": "invalid_cursor",
"request_id": "<string>",
"retryable": true,
"param": "<string>"
}{
"detail": "<string>",
"error_code": "invalid_cursor",
"request_id": "<string>",
"retryable": true,
"param": "<string>"
}{
"detail": "<string>",
"error_code": "invalid_cursor",
"request_id": "<string>",
"retryable": true,
"param": "<string>"
}{
"detail": "This Idempotency-Key is already in use. Use a new key for a new request.",
"error_code": "idempotency_key_reused",
"request_id": "enrich_3f8b2c1e-9d4a-4c1b-8e2f-6a7b5c4d3e21",
"retryable": false,
"param": null
}{
"detail": "<string>",
"error_code": "invalid_cursor",
"request_id": "<string>",
"retryable": true,
"errors": [
{}
],
"param": "<string>"
}{
"detail": "<string>",
"error_code": "invalid_cursor",
"request_id": "<string>",
"retryable": true,
"param": "<string>"
}{
"detail": "<string>",
"error_code": "invalid_cursor",
"request_id": "<string>",
"retryable": true,
"param": "<string>"
}{
"detail": "<string>",
"error_code": "invalid_cursor",
"request_id": "<string>",
"retryable": true,
"param": "<string>"
}Body
application/json
Was this page helpful?