Onboarding
Read the first mentions
The first collection: progress while collecting, then the posts (offset/limit ≤ 100), the clean-up proposal and the decision. The classic engine answers mode: "classic" with its preview.
GET
/
api
/
v2
/
onboarding
/
mentions
Read the first mentions
curl --request GET \
--url https://app.octolens.com/api/v2/onboarding/mentions \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.octolens.com/api/v2/onboarding/mentions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.octolens.com/api/v2/onboarding/mentions', 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.octolens.com/api/v2/onboarding/mentions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.octolens.com/api/v2/onboarding/mentions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.octolens.com/api/v2/onboarding/mentions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.octolens.com/api/v2/onboarding/mentions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"mode": "setup",
"view": {
"mode": "setup",
"draftId": "<string>",
"status": "collecting",
"stage": "collecting",
"found": 4503599627370495,
"collectionEnd": "runs_finished",
"progress": 50,
"pairs": {
"expected": 4503599627370495,
"settled": 4503599627370495
},
"tiles": [
{
"source": "twitter",
"label": "<string>",
"state": "done"
}
],
"sources": [
{
"source": "<string>",
"label": "<string>",
"count": 4503599627370495,
"state": "arriving",
"atLeast": true,
"failed": true
}
],
"posts": [
{
"id": 0,
"source": "<string>",
"keyword": "<string>",
"place": {
"preposition": "in",
"name": "<string>"
},
"title": "<string>",
"body": "<string>",
"url": "<string>",
"timestamp": "<string>",
"aboutYou": true,
"giveaway": "<string>",
"whyNot": "<string>",
"sentimentLabel": "<string>",
"tags": [
"<string>"
]
}
],
"total": 4503599627370495,
"aboutYou": 4503599627370495,
"notAboutYou": 4503599627370495,
"proposal": {
"lines": [
{
"keyword": "<string>",
"setting": "additionalTerms",
"values": [
"<string>"
],
"text": "<string>",
"logic": "any",
"split": [
{
"label": "<string>",
"terms": [
"<string>"
]
}
]
}
]
},
"decision": "cleanup",
"cleanedUp": {
"removed": 4503599627370495,
"changes": [
{
"keyword": "<string>",
"text": "<string>",
"setting": "additionalTerms",
"values": [
"<string>"
],
"logic": "any",
"split": [
{
"label": "<string>",
"terms": [
"<string>"
]
}
]
}
],
"undoAvailableUntil": "<string>"
},
"canContinueWithoutDecision": true,
"allowance": 4503599627370495,
"keywords": [
"<string>"
],
"proposalPending": true
},
"page": {
"decision": "cleanup",
"offset": 4503599627370495,
"posts": [
{
"id": 0,
"source": "<string>",
"keyword": "<string>",
"place": {
"preposition": "in",
"name": "<string>"
},
"title": "<string>",
"body": "<string>",
"url": "<string>",
"timestamp": "<string>",
"aboutYou": true,
"giveaway": "<string>",
"whyNot": "<string>",
"sentimentLabel": "<string>",
"tags": [
"<string>"
]
}
],
"total": 4503599627370495,
"nextOffset": 4503599627370495
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Resource not found",
"status": 404,
"details": [
"<unknown>"
],
"upgradeUrl": "https://app.octolens.com/me/upgrade?src=agents",
"upgradeCommand": "octolens upgrade"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Resource not found",
"status": 404,
"details": [
"<unknown>"
],
"upgradeUrl": "https://app.octolens.com/me/upgrade?src=agents",
"upgradeCommand": "octolens upgrade"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Resource not found",
"status": 404,
"details": [
"<unknown>"
],
"upgradeUrl": "https://app.octolens.com/me/upgrade?src=agents",
"upgradeCommand": "octolens upgrade"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Resource not found",
"status": 404,
"details": [
"<unknown>"
],
"upgradeUrl": "https://app.octolens.com/me/upgrade?src=agents",
"upgradeCommand": "octolens upgrade"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Resource not found",
"status": 404,
"details": [
"<unknown>"
],
"upgradeUrl": "https://app.octolens.com/me/upgrade?src=agents",
"upgradeCommand": "octolens upgrade"
}
}Authorizations
Clerk API key. Create one in Settings → API Keys. Pass as Authorization: Bearer <key>. Keys carry a scope — read, write (implies read) or admin (implies write) — chosen when the key is minted. Each operation's security requirement (and its x-required-scope extension) names the minimum scope it needs; request the least-privileged key that covers the operations you call.
Query Parameters
Required range:
0 <= x <= 9007199254740991Required range:
1 <= x <= 100Was this page helpful?
⌘I
Read the first mentions
curl --request GET \
--url https://app.octolens.com/api/v2/onboarding/mentions \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.octolens.com/api/v2/onboarding/mentions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.octolens.com/api/v2/onboarding/mentions', 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.octolens.com/api/v2/onboarding/mentions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.octolens.com/api/v2/onboarding/mentions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.octolens.com/api/v2/onboarding/mentions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.octolens.com/api/v2/onboarding/mentions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"mode": "setup",
"view": {
"mode": "setup",
"draftId": "<string>",
"status": "collecting",
"stage": "collecting",
"found": 4503599627370495,
"collectionEnd": "runs_finished",
"progress": 50,
"pairs": {
"expected": 4503599627370495,
"settled": 4503599627370495
},
"tiles": [
{
"source": "twitter",
"label": "<string>",
"state": "done"
}
],
"sources": [
{
"source": "<string>",
"label": "<string>",
"count": 4503599627370495,
"state": "arriving",
"atLeast": true,
"failed": true
}
],
"posts": [
{
"id": 0,
"source": "<string>",
"keyword": "<string>",
"place": {
"preposition": "in",
"name": "<string>"
},
"title": "<string>",
"body": "<string>",
"url": "<string>",
"timestamp": "<string>",
"aboutYou": true,
"giveaway": "<string>",
"whyNot": "<string>",
"sentimentLabel": "<string>",
"tags": [
"<string>"
]
}
],
"total": 4503599627370495,
"aboutYou": 4503599627370495,
"notAboutYou": 4503599627370495,
"proposal": {
"lines": [
{
"keyword": "<string>",
"setting": "additionalTerms",
"values": [
"<string>"
],
"text": "<string>",
"logic": "any",
"split": [
{
"label": "<string>",
"terms": [
"<string>"
]
}
]
}
]
},
"decision": "cleanup",
"cleanedUp": {
"removed": 4503599627370495,
"changes": [
{
"keyword": "<string>",
"text": "<string>",
"setting": "additionalTerms",
"values": [
"<string>"
],
"logic": "any",
"split": [
{
"label": "<string>",
"terms": [
"<string>"
]
}
]
}
],
"undoAvailableUntil": "<string>"
},
"canContinueWithoutDecision": true,
"allowance": 4503599627370495,
"keywords": [
"<string>"
],
"proposalPending": true
},
"page": {
"decision": "cleanup",
"offset": 4503599627370495,
"posts": [
{
"id": 0,
"source": "<string>",
"keyword": "<string>",
"place": {
"preposition": "in",
"name": "<string>"
},
"title": "<string>",
"body": "<string>",
"url": "<string>",
"timestamp": "<string>",
"aboutYou": true,
"giveaway": "<string>",
"whyNot": "<string>",
"sentimentLabel": "<string>",
"tags": [
"<string>"
]
}
],
"total": 4503599627370495,
"nextOffset": 4503599627370495
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Resource not found",
"status": 404,
"details": [
"<unknown>"
],
"upgradeUrl": "https://app.octolens.com/me/upgrade?src=agents",
"upgradeCommand": "octolens upgrade"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Resource not found",
"status": 404,
"details": [
"<unknown>"
],
"upgradeUrl": "https://app.octolens.com/me/upgrade?src=agents",
"upgradeCommand": "octolens upgrade"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Resource not found",
"status": 404,
"details": [
"<unknown>"
],
"upgradeUrl": "https://app.octolens.com/me/upgrade?src=agents",
"upgradeCommand": "octolens upgrade"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Resource not found",
"status": 404,
"details": [
"<unknown>"
],
"upgradeUrl": "https://app.octolens.com/me/upgrade?src=agents",
"upgradeCommand": "octolens upgrade"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Resource not found",
"status": 404,
"details": [
"<unknown>"
],
"upgradeUrl": "https://app.octolens.com/me/upgrade?src=agents",
"upgradeCommand": "octolens upgrade"
}
}