curl -sS "https://api.stockcontext.com/v1/tools/stock_flag" \
-H "X-API-Key: $STOCKCONTEXT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"symbol":"AAPL","field":"revenue","period":"2025-09-27","reason":"Value looks inconsistent with the cited filing.","schema":2}'import requests
url = "https://api.stockcontext.com/v1/tools/stock_flag"
payload = {
"symbol": "AAPL",
"field": "revenue",
"period": "2025-09-27",
"reason": "Value looks inconsistent with the cited filing.",
"schema": 2
}
headers = {
"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: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
symbol: 'AAPL',
field: 'revenue',
period: '2025-09-27',
reason: 'Value looks inconsistent with the cited filing.',
schema: 2
})
};
fetch('https://api.stockcontext.com/v1/tools/stock_flag', 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.stockcontext.com/v1/tools/stock_flag",
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([
'symbol' => 'AAPL',
'field' => 'revenue',
'period' => '2025-09-27',
'reason' => 'Value looks inconsistent with the cited filing.',
'schema' => 2
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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.stockcontext.com/v1/tools/stock_flag"
payload := strings.NewReader("{\n \"symbol\": \"AAPL\",\n \"field\": \"revenue\",\n \"period\": \"2025-09-27\",\n \"reason\": \"Value looks inconsistent with the cited filing.\",\n \"schema\": 2\n}")
req, _ := http.NewRequest("POST", url, payload)
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.stockcontext.com/v1/tools/stock_flag")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"symbol\": \"AAPL\",\n \"field\": \"revenue\",\n \"period\": \"2025-09-27\",\n \"reason\": \"Value looks inconsistent with the cited filing.\",\n \"schema\": 2\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stockcontext.com/v1/tools/stock_flag")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"symbol\": \"AAPL\",\n \"field\": \"revenue\",\n \"period\": \"2025-09-27\",\n \"reason\": \"Value looks inconsistent with the cited filing.\",\n \"schema\": 2\n}"
response = http.request(request)
puts response.read_bodyStock value flag
Report a served value you believe is wrong for human triage.
curl -sS "https://api.stockcontext.com/v1/tools/stock_flag" \
-H "X-API-Key: $STOCKCONTEXT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"symbol":"AAPL","field":"revenue","period":"2025-09-27","reason":"Value looks inconsistent with the cited filing.","schema":2}'import requests
url = "https://api.stockcontext.com/v1/tools/stock_flag"
payload = {
"symbol": "AAPL",
"field": "revenue",
"period": "2025-09-27",
"reason": "Value looks inconsistent with the cited filing.",
"schema": 2
}
headers = {
"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: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
symbol: 'AAPL',
field: 'revenue',
period: '2025-09-27',
reason: 'Value looks inconsistent with the cited filing.',
schema: 2
})
};
fetch('https://api.stockcontext.com/v1/tools/stock_flag', 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.stockcontext.com/v1/tools/stock_flag",
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([
'symbol' => 'AAPL',
'field' => 'revenue',
'period' => '2025-09-27',
'reason' => 'Value looks inconsistent with the cited filing.',
'schema' => 2
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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.stockcontext.com/v1/tools/stock_flag"
payload := strings.NewReader("{\n \"symbol\": \"AAPL\",\n \"field\": \"revenue\",\n \"period\": \"2025-09-27\",\n \"reason\": \"Value looks inconsistent with the cited filing.\",\n \"schema\": 2\n}")
req, _ := http.NewRequest("POST", url, payload)
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.stockcontext.com/v1/tools/stock_flag")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"symbol\": \"AAPL\",\n \"field\": \"revenue\",\n \"period\": \"2025-09-27\",\n \"reason\": \"Value looks inconsistent with the cited filing.\",\n \"schema\": 2\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stockcontext.com/v1/tools/stock_flag")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"symbol\": \"AAPL\",\n \"field\": \"revenue\",\n \"period\": \"2025-09-27\",\n \"reason\": \"Value looks inconsistent with the cited filing.\",\n \"schema\": 2\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
Body
Request body for stock_flag. stock_flag is v2-native and always returns a schema-2 envelope.
The EXACT canonical ticker of the value you are flagging - copy it verbatim from that response's subject.security.ticker (every tool response carries it). Unlike the read tools, stock_flag does NOT resolve aliases (a secondary share class like GOOG->GOOGL, or a renamed-away ticker), so the flag lands against the precise security the report named; a symbol that is not its own stored security refuses no_match.
1 - 32Served field token being flagged.
1 - 64Optional period label or period_end for the flagged value.
1 - 32Optional free-text reason for human triage.
1 - 500Optional value the caller expected to see.
1 - 128Response schema selector. Omit (or send 2) for the schema-2 envelope, the default; 1 selects the frozen legacy wire. Boolean values are rejected by the API boundary.
1, 2 Response
Flag a served value for human triage. Envelope-level schema; captured examples remain authoritative for full nested payload detail.
Schema-2 envelope. The OpenAPI schema is structural; captured examples are authoritative for full nested payload detail.