Record feedback on a mention
Records one action on the mention addressed by mentionId (its stable sourceId or numeric id): relevant / not_relevant file a relevance verdict (the feed reflects it immediately), engaged / unengaged set the handled flag. Every action is an absolute, idempotent write — safe to retry. Answers the COMMITTED mention row. 404 MENTION_NOT_FOUND for an unknown id.
curl --request POST \
--url https://app.octolens.com/api/v2/mentions/feedback \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"mentionId": "<string>"
}
'import requests
url = "https://app.octolens.com/api/v2/mentions/feedback"
payload = { "mentionId": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({mentionId: '<string>'})
};
fetch('https://app.octolens.com/api/v2/mentions/feedback', 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/mentions/feedback",
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([
'mentionId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://app.octolens.com/api/v2/mentions/feedback"
payload := strings.NewReader("{\n \"mentionId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.octolens.com/api/v2/mentions/feedback")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"mentionId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.octolens.com/api/v2/mentions/feedback")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"mentionId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"action": "relevant",
"mention": {
"id": 0,
"sourceId": "reddit_t3_1abc234",
"url": "https://reddit.com/r/example/comments/abc123/...",
"title": "<string>",
"body": "<string>",
"source": "reddit",
"timestamp": "2026-05-06 13:35:37.000",
"author": "jane.doe",
"authorName": "<string>",
"authorAvatar": "<string>",
"authorUrl": "<string>",
"authorFollowers": 0,
"relevance": "relevant",
"relevanceComment": "<string>",
"sentiment": "Neutral",
"language": "english",
"tags": [
"competitor_mention",
"pricing"
],
"keywords": [
{
"id": 42,
"keyword": "social listening"
}
],
"engaged": true,
"isReply": true,
"review": {
"rating": 1,
"ratingMax": 123,
"verified": true,
"response": "<string>",
"responseAt": "<string>",
"targetName": "<string>"
},
"relevanceScore": 123,
"feedbackRelevant": 123,
"imageUrl": "<string>",
"keywordId": 123,
"engagementMetrics": {
"likes": 120,
"replies": 8,
"views": 4200
},
"engagementObservedAt": "<string>"
}
}{
"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.
Body
One feedback action on one mention.
The mention's sourceId (or numeric id) from any mentions result.
1 - 200relevant / not_relevant file a relevance verdict; engaged / unengaged set the handled flag. Absolute writes — safe to retry.
relevant, not_relevant, engaged, unengaged Was this page helpful?
curl --request POST \
--url https://app.octolens.com/api/v2/mentions/feedback \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"mentionId": "<string>"
}
'import requests
url = "https://app.octolens.com/api/v2/mentions/feedback"
payload = { "mentionId": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({mentionId: '<string>'})
};
fetch('https://app.octolens.com/api/v2/mentions/feedback', 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/mentions/feedback",
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([
'mentionId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://app.octolens.com/api/v2/mentions/feedback"
payload := strings.NewReader("{\n \"mentionId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.octolens.com/api/v2/mentions/feedback")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"mentionId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.octolens.com/api/v2/mentions/feedback")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"mentionId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"action": "relevant",
"mention": {
"id": 0,
"sourceId": "reddit_t3_1abc234",
"url": "https://reddit.com/r/example/comments/abc123/...",
"title": "<string>",
"body": "<string>",
"source": "reddit",
"timestamp": "2026-05-06 13:35:37.000",
"author": "jane.doe",
"authorName": "<string>",
"authorAvatar": "<string>",
"authorUrl": "<string>",
"authorFollowers": 0,
"relevance": "relevant",
"relevanceComment": "<string>",
"sentiment": "Neutral",
"language": "english",
"tags": [
"competitor_mention",
"pricing"
],
"keywords": [
{
"id": 42,
"keyword": "social listening"
}
],
"engaged": true,
"isReply": true,
"review": {
"rating": 1,
"ratingMax": 123,
"verified": true,
"response": "<string>",
"responseAt": "<string>",
"targetName": "<string>"
},
"relevanceScore": 123,
"feedbackRelevant": 123,
"imageUrl": "<string>",
"keywordId": 123,
"engagementMetrics": {
"likes": 120,
"replies": 8,
"views": 4200
},
"engagementObservedAt": "<string>"
}
}{
"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"
}
}