Create Collection Job
curl --request POST \
--url https://agent.crowdlisten.com/agent/v1/ingest/collection/jobs \
--header 'Content-Type: application/json' \
--data '
{
"entity_id": "<string>",
"objective": "<string>",
"collection_only": false,
"questions": [
"<string>"
],
"depth": "brief",
"platforms": [],
"idempotency_key": "<string>"
}
'import requests
url = "https://agent.crowdlisten.com/agent/v1/ingest/collection/jobs"
payload = {
"entity_id": "<string>",
"objective": "<string>",
"collection_only": False,
"questions": ["<string>"],
"depth": "brief",
"platforms": [],
"idempotency_key": "<string>"
}
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({
entity_id: '<string>',
objective: '<string>',
collection_only: false,
questions: ['<string>'],
depth: 'brief',
platforms: [],
idempotency_key: '<string>'
})
};
fetch('https://agent.crowdlisten.com/agent/v1/ingest/collection/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://agent.crowdlisten.com/agent/v1/ingest/collection/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([
'entity_id' => '<string>',
'objective' => '<string>',
'collection_only' => false,
'questions' => [
'<string>'
],
'depth' => 'brief',
'platforms' => [
],
'idempotency_key' => '<string>'
]),
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://agent.crowdlisten.com/agent/v1/ingest/collection/jobs"
payload := strings.NewReader("{\n \"entity_id\": \"<string>\",\n \"objective\": \"<string>\",\n \"collection_only\": false,\n \"questions\": [\n \"<string>\"\n ],\n \"depth\": \"brief\",\n \"platforms\": [],\n \"idempotency_key\": \"<string>\"\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://agent.crowdlisten.com/agent/v1/ingest/collection/jobs")
.header("Content-Type", "application/json")
.body("{\n \"entity_id\": \"<string>\",\n \"objective\": \"<string>\",\n \"collection_only\": false,\n \"questions\": [\n \"<string>\"\n ],\n \"depth\": \"brief\",\n \"platforms\": [],\n \"idempotency_key\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://agent.crowdlisten.com/agent/v1/ingest/collection/jobs")
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 \"entity_id\": \"<string>\",\n \"objective\": \"<string>\",\n \"collection_only\": false,\n \"questions\": [\n \"<string>\"\n ],\n \"depth\": \"brief\",\n \"platforms\": [],\n \"idempotency_key\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"status": "<string>",
"job_id": "<string>",
"entity_id": "<string>",
"next": "<string>",
"analysis_id": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}ingest
Create Collection Job
A distinct route fails closed on older servers instead of starting synthesis.
POST
/
agent
/
v1
/
ingest
/
collection
/
jobs
Create Collection Job
curl --request POST \
--url https://agent.crowdlisten.com/agent/v1/ingest/collection/jobs \
--header 'Content-Type: application/json' \
--data '
{
"entity_id": "<string>",
"objective": "<string>",
"collection_only": false,
"questions": [
"<string>"
],
"depth": "brief",
"platforms": [],
"idempotency_key": "<string>"
}
'import requests
url = "https://agent.crowdlisten.com/agent/v1/ingest/collection/jobs"
payload = {
"entity_id": "<string>",
"objective": "<string>",
"collection_only": False,
"questions": ["<string>"],
"depth": "brief",
"platforms": [],
"idempotency_key": "<string>"
}
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({
entity_id: '<string>',
objective: '<string>',
collection_only: false,
questions: ['<string>'],
depth: 'brief',
platforms: [],
idempotency_key: '<string>'
})
};
fetch('https://agent.crowdlisten.com/agent/v1/ingest/collection/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://agent.crowdlisten.com/agent/v1/ingest/collection/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([
'entity_id' => '<string>',
'objective' => '<string>',
'collection_only' => false,
'questions' => [
'<string>'
],
'depth' => 'brief',
'platforms' => [
],
'idempotency_key' => '<string>'
]),
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://agent.crowdlisten.com/agent/v1/ingest/collection/jobs"
payload := strings.NewReader("{\n \"entity_id\": \"<string>\",\n \"objective\": \"<string>\",\n \"collection_only\": false,\n \"questions\": [\n \"<string>\"\n ],\n \"depth\": \"brief\",\n \"platforms\": [],\n \"idempotency_key\": \"<string>\"\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://agent.crowdlisten.com/agent/v1/ingest/collection/jobs")
.header("Content-Type", "application/json")
.body("{\n \"entity_id\": \"<string>\",\n \"objective\": \"<string>\",\n \"collection_only\": false,\n \"questions\": [\n \"<string>\"\n ],\n \"depth\": \"brief\",\n \"platforms\": [],\n \"idempotency_key\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://agent.crowdlisten.com/agent/v1/ingest/collection/jobs")
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 \"entity_id\": \"<string>\",\n \"objective\": \"<string>\",\n \"collection_only\": false,\n \"questions\": [\n \"<string>\"\n ],\n \"depth\": \"brief\",\n \"platforms\": [],\n \"idempotency_key\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"status": "<string>",
"job_id": "<string>",
"entity_id": "<string>",
"next": "<string>",
"analysis_id": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Body
application/json
Required string length:
1 - 100Required string length:
3 - 1000Maximum array length:
5Available options:
brief, deep Maximum array length:
9Available options:
twitter, linkedin, reddit, youtube, tiktok, instagram, hackernews, producthunt, web Required string length:
8 - 128Pattern:
^[A-Za-z0-9][A-Za-z0-9._:-]+$