Start a fact check
curl --request POST \
--url https://server.promptwatch.com/api/v2/claims/{brandId}/{clusterId}/fact-checks \
--header 'X-API-Key: <api-key>'import requests
url = "https://server.promptwatch.com/api/v2/claims/{brandId}/{clusterId}/fact-checks"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://server.promptwatch.com/api/v2/claims/{brandId}/{clusterId}/fact-checks', 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://server.promptwatch.com/api/v2/claims/{brandId}/{clusterId}/fact-checks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://server.promptwatch.com/api/v2/claims/{brandId}/{clusterId}/fact-checks"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://server.promptwatch.com/api/v2/claims/{brandId}/{clusterId}/fact-checks")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://server.promptwatch.com/api/v2/claims/{brandId}/{clusterId}/fact-checks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"started": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"claim": "<string>",
"status": "PENDING",
"createdAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z",
"creditsUsed": 123,
"skipReason": "<string>",
"error": "<string>",
"summary": "<string>",
"siteEvidence": {
"tone": "confirms",
"label": "<string>",
"description": "<string>"
},
"evidence": {
"confirms": [
{
"url": "<string>",
"title": "<string>",
"domain": "<string>",
"source": "site",
"needsUpdate": true,
"quotes": [
{
"quote": "<string>",
"excerpt": "<string>",
"stance": "supports"
}
]
}
],
"contradicts": [
{
"url": "<string>",
"title": "<string>",
"domain": "<string>",
"source": "site",
"needsUpdate": true,
"quotes": [
{
"quote": "<string>",
"excerpt": "<string>",
"stance": "supports"
}
]
}
],
"related": [
{
"url": "<string>",
"title": "<string>",
"domain": "<string>",
"source": "site",
"needsUpdate": true,
"quotes": [
{
"quote": "<string>",
"excerpt": "<string>",
"stance": "supports"
}
]
}
]
},
"consideredPages": 123,
"recommendation": {
"key": "<string>",
"title": "<string>",
"description": "<string>"
}
}{
"started": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"claim": "<string>",
"status": "PENDING",
"createdAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z",
"creditsUsed": 123,
"skipReason": "<string>",
"error": "<string>",
"summary": "<string>",
"siteEvidence": {
"tone": "confirms",
"label": "<string>",
"description": "<string>"
},
"evidence": {
"confirms": [
{
"url": "<string>",
"title": "<string>",
"domain": "<string>",
"source": "site",
"needsUpdate": true,
"quotes": [
{
"quote": "<string>",
"excerpt": "<string>",
"stance": "supports"
}
]
}
],
"contradicts": [
{
"url": "<string>",
"title": "<string>",
"domain": "<string>",
"source": "site",
"needsUpdate": true,
"quotes": [
{
"quote": "<string>",
"excerpt": "<string>",
"stance": "supports"
}
]
}
],
"related": [
{
"url": "<string>",
"title": "<string>",
"domain": "<string>",
"source": "site",
"needsUpdate": true,
"quotes": [
{
"quote": "<string>",
"excerpt": "<string>",
"stance": "supports"
}
]
}
]
},
"consideredPages": 123,
"recommendation": {
"key": "<string>",
"title": "<string>",
"description": "<string>"
}
}{
"code": "STATEMENT_CLAIM_NOT_FOUND",
"message": "Claim not found"
}{
"error": "Unauthorized",
"message": "Missing or invalid X-API-Key header."
}{
"code": "STATEMENT_CLAIM_NOT_FOUND",
"message": "Claim not found"
}{
"code": "STATEMENT_CLAIM_NOT_FOUND",
"message": "Claim not found"
}{
"code": "STATEMENT_CLAIM_NOT_FOUND",
"message": "Claim not found"
}Fact Check
Start a fact check
Checks a claim about the project’s own brand against its crawled site and the pages AI answers cite. Spends agent credits; the claim must be marked ACCURATE or INACCURATE first. Returns 202 with the new check, or 200 with started: false when one is already in flight. Poll GET /fact-checks/{id} for the result.
POST
/
claims
/
{brandId}
/
{clusterId}
/
fact-checks
Start a fact check
curl --request POST \
--url https://server.promptwatch.com/api/v2/claims/{brandId}/{clusterId}/fact-checks \
--header 'X-API-Key: <api-key>'import requests
url = "https://server.promptwatch.com/api/v2/claims/{brandId}/{clusterId}/fact-checks"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://server.promptwatch.com/api/v2/claims/{brandId}/{clusterId}/fact-checks', 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://server.promptwatch.com/api/v2/claims/{brandId}/{clusterId}/fact-checks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://server.promptwatch.com/api/v2/claims/{brandId}/{clusterId}/fact-checks"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://server.promptwatch.com/api/v2/claims/{brandId}/{clusterId}/fact-checks")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://server.promptwatch.com/api/v2/claims/{brandId}/{clusterId}/fact-checks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"started": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"claim": "<string>",
"status": "PENDING",
"createdAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z",
"creditsUsed": 123,
"skipReason": "<string>",
"error": "<string>",
"summary": "<string>",
"siteEvidence": {
"tone": "confirms",
"label": "<string>",
"description": "<string>"
},
"evidence": {
"confirms": [
{
"url": "<string>",
"title": "<string>",
"domain": "<string>",
"source": "site",
"needsUpdate": true,
"quotes": [
{
"quote": "<string>",
"excerpt": "<string>",
"stance": "supports"
}
]
}
],
"contradicts": [
{
"url": "<string>",
"title": "<string>",
"domain": "<string>",
"source": "site",
"needsUpdate": true,
"quotes": [
{
"quote": "<string>",
"excerpt": "<string>",
"stance": "supports"
}
]
}
],
"related": [
{
"url": "<string>",
"title": "<string>",
"domain": "<string>",
"source": "site",
"needsUpdate": true,
"quotes": [
{
"quote": "<string>",
"excerpt": "<string>",
"stance": "supports"
}
]
}
]
},
"consideredPages": 123,
"recommendation": {
"key": "<string>",
"title": "<string>",
"description": "<string>"
}
}{
"started": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"claim": "<string>",
"status": "PENDING",
"createdAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z",
"creditsUsed": 123,
"skipReason": "<string>",
"error": "<string>",
"summary": "<string>",
"siteEvidence": {
"tone": "confirms",
"label": "<string>",
"description": "<string>"
},
"evidence": {
"confirms": [
{
"url": "<string>",
"title": "<string>",
"domain": "<string>",
"source": "site",
"needsUpdate": true,
"quotes": [
{
"quote": "<string>",
"excerpt": "<string>",
"stance": "supports"
}
]
}
],
"contradicts": [
{
"url": "<string>",
"title": "<string>",
"domain": "<string>",
"source": "site",
"needsUpdate": true,
"quotes": [
{
"quote": "<string>",
"excerpt": "<string>",
"stance": "supports"
}
]
}
],
"related": [
{
"url": "<string>",
"title": "<string>",
"domain": "<string>",
"source": "site",
"needsUpdate": true,
"quotes": [
{
"quote": "<string>",
"excerpt": "<string>",
"stance": "supports"
}
]
}
]
},
"consideredPages": 123,
"recommendation": {
"key": "<string>",
"title": "<string>",
"description": "<string>"
}
}{
"code": "STATEMENT_CLAIM_NOT_FOUND",
"message": "Claim not found"
}{
"error": "Unauthorized",
"message": "Missing or invalid X-API-Key header."
}{
"code": "STATEMENT_CLAIM_NOT_FOUND",
"message": "Claim not found"
}{
"code": "STATEMENT_CLAIM_NOT_FOUND",
"message": "Claim not found"
}{
"code": "STATEMENT_CLAIM_NOT_FOUND",
"message": "Claim not found"
}Authorizations
Path Parameters
Response
Default Response