curl --request POST \
--url https://api.querying.ai/v1/source-influence \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"answer": "Atlas is suitable for small teams.",
"prompt": "Which tool is suitable for small teams?",
"citations": [],
"analysis": {
"version": 1,
"entities": [
{
"id": "atlas",
"name": "Atlas",
"role": "competitor"
}
]
}
}
'import requests
url = "https://api.querying.ai/v1/source-influence"
payload = {
"answer": "Atlas is suitable for small teams.",
"prompt": "Which tool is suitable for small teams?",
"citations": [],
"analysis": {
"version": 1,
"entities": [
{
"id": "atlas",
"name": "Atlas",
"role": "competitor"
}
]
}
}
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({
answer: 'Atlas is suitable for small teams.',
prompt: 'Which tool is suitable for small teams?',
citations: [],
analysis: {version: 1, entities: [{id: 'atlas', name: 'Atlas', role: 'competitor'}]}
})
};
fetch('https://api.querying.ai/v1/source-influence', 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.querying.ai/v1/source-influence",
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([
'answer' => 'Atlas is suitable for small teams.',
'prompt' => 'Which tool is suitable for small teams?',
'citations' => [
],
'analysis' => [
'version' => 1,
'entities' => [
[
'id' => 'atlas',
'name' => 'Atlas',
'role' => 'competitor'
]
]
]
]),
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://api.querying.ai/v1/source-influence"
payload := strings.NewReader("{\n \"answer\": \"Atlas is suitable for small teams.\",\n \"prompt\": \"Which tool is suitable for small teams?\",\n \"citations\": [],\n \"analysis\": {\n \"version\": 1,\n \"entities\": [\n {\n \"id\": \"atlas\",\n \"name\": \"Atlas\",\n \"role\": \"competitor\"\n }\n ]\n }\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://api.querying.ai/v1/source-influence")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"answer\": \"Atlas is suitable for small teams.\",\n \"prompt\": \"Which tool is suitable for small teams?\",\n \"citations\": [],\n \"analysis\": {\n \"version\": 1,\n \"entities\": [\n {\n \"id\": \"atlas\",\n \"name\": \"Atlas\",\n \"role\": \"competitor\"\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.querying.ai/v1/source-influence")
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 \"answer\": \"Atlas is suitable for small teams.\",\n \"prompt\": \"Which tool is suitable for small teams?\",\n \"citations\": [],\n \"analysis\": {\n \"version\": 1,\n \"entities\": [\n {\n \"id\": \"atlas\",\n \"name\": \"Atlas\",\n \"role\": \"competitor\"\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"task": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"taskType": "CHATGPT",
"status": "QUEUED",
"priority": 123,
"createdAt": "2023-11-07T05:31:56Z",
"idempotencyKey": "<string>"
},
"credits": {
"creditsToCharge": 123,
"creditsCharged": 123
}
}{
"success": false,
"error": {
"code": "MISSING_API_KEY",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
],
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"success": false,
"error": {
"code": "MISSING_API_KEY",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
],
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"success": false,
"error": {
"code": "MISSING_API_KEY",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
],
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"success": false,
"error": {
"code": "MISSING_API_KEY",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
],
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"success": false,
"error": {
"code": "MISSING_API_KEY",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
],
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"success": false,
"error": {
"code": "MISSING_API_KEY",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
],
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"success": false,
"error": {
"code": "MISSING_API_KEY",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
],
"timestamp": "2023-11-07T05:31:56Z"
}
}Analyze answer claims and cited sources
Preserves the v2 result. Opt in with analysis.version=1 for question requirements, brand decisions and ownership/production metadata. citations may be empty only in opt-in mode. Analysis failure is explicit inside the result; COMPLETED does not imply analysis.status=ok. The temporary hold includes a payload-sized interpretation budget; actual metered token/fetch rates are unchanged.
curl --request POST \
--url https://api.querying.ai/v1/source-influence \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"answer": "Atlas is suitable for small teams.",
"prompt": "Which tool is suitable for small teams?",
"citations": [],
"analysis": {
"version": 1,
"entities": [
{
"id": "atlas",
"name": "Atlas",
"role": "competitor"
}
]
}
}
'import requests
url = "https://api.querying.ai/v1/source-influence"
payload = {
"answer": "Atlas is suitable for small teams.",
"prompt": "Which tool is suitable for small teams?",
"citations": [],
"analysis": {
"version": 1,
"entities": [
{
"id": "atlas",
"name": "Atlas",
"role": "competitor"
}
]
}
}
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({
answer: 'Atlas is suitable for small teams.',
prompt: 'Which tool is suitable for small teams?',
citations: [],
analysis: {version: 1, entities: [{id: 'atlas', name: 'Atlas', role: 'competitor'}]}
})
};
fetch('https://api.querying.ai/v1/source-influence', 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.querying.ai/v1/source-influence",
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([
'answer' => 'Atlas is suitable for small teams.',
'prompt' => 'Which tool is suitable for small teams?',
'citations' => [
],
'analysis' => [
'version' => 1,
'entities' => [
[
'id' => 'atlas',
'name' => 'Atlas',
'role' => 'competitor'
]
]
]
]),
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://api.querying.ai/v1/source-influence"
payload := strings.NewReader("{\n \"answer\": \"Atlas is suitable for small teams.\",\n \"prompt\": \"Which tool is suitable for small teams?\",\n \"citations\": [],\n \"analysis\": {\n \"version\": 1,\n \"entities\": [\n {\n \"id\": \"atlas\",\n \"name\": \"Atlas\",\n \"role\": \"competitor\"\n }\n ]\n }\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://api.querying.ai/v1/source-influence")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"answer\": \"Atlas is suitable for small teams.\",\n \"prompt\": \"Which tool is suitable for small teams?\",\n \"citations\": [],\n \"analysis\": {\n \"version\": 1,\n \"entities\": [\n {\n \"id\": \"atlas\",\n \"name\": \"Atlas\",\n \"role\": \"competitor\"\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.querying.ai/v1/source-influence")
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 \"answer\": \"Atlas is suitable for small teams.\",\n \"prompt\": \"Which tool is suitable for small teams?\",\n \"citations\": [],\n \"analysis\": {\n \"version\": 1,\n \"entities\": [\n {\n \"id\": \"atlas\",\n \"name\": \"Atlas\",\n \"role\": \"competitor\"\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"task": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"taskType": "CHATGPT",
"status": "QUEUED",
"priority": 123,
"createdAt": "2023-11-07T05:31:56Z",
"idempotencyKey": "<string>"
},
"credits": {
"creditsToCharge": 123,
"creditsCharged": 123
}
}{
"success": false,
"error": {
"code": "MISSING_API_KEY",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
],
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"success": false,
"error": {
"code": "MISSING_API_KEY",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
],
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"success": false,
"error": {
"code": "MISSING_API_KEY",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
],
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"success": false,
"error": {
"code": "MISSING_API_KEY",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
],
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"success": false,
"error": {
"code": "MISSING_API_KEY",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
],
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"success": false,
"error": {
"code": "MISSING_API_KEY",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
],
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"success": false,
"error": {
"code": "MISSING_API_KEY",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
],
"timestamp": "2023-11-07T05:31:56Z"
}
}Authorizations
Your API key, sent as Authorization: Bearer <key>.
Body
1 - 2000001–25 in legacy mode; 0–25 with analysis.version=1. Total HTTP body ≤1 MiB.
25Show child attributes
Show child attributes
2000006420025200Show child attributes
Show child attributes
Show child attributes
Show child attributes
Response
Queued; poll /v1/async/task/{id}. Its response follows SourceInfluenceResult.
Show child attributes
Show child attributes
Submit and polling envelopes preserve zero values. With billing enabled, account settlement uses the engine pricing policy; webhooks report the persisted charge. SOURCE_INFLUENCE is metered by actual model tokens and source fetches.
Show child attributes
Show child attributes