List brand claims
curl --request GET \
--url https://server.promptwatch.com/api/v2/claims \
--header 'X-API-Key: <api-key>'import requests
url = "https://server.promptwatch.com/api/v2/claims"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://server.promptwatch.com/api/v2/claims', 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",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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"
req, _ := http.NewRequest("GET", 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.get("https://server.promptwatch.com/api/v2/claims")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://server.promptwatch.com/api/v2/claims")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"claims": [
{
"brandId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"clusterId": "<string>",
"claim": "<string>",
"sentiment": "POSITIVE",
"sentimentScore": 123,
"theme": "<string>",
"responseCount": 123,
"promptCount": 123,
"models": [
"<string>"
],
"lastSeenAt": "2023-11-07T05:31:56Z",
"isNew": true,
"userVerdict": "ACCURATE",
"check": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "PENDING",
"createdAt": "2023-11-07T05:31:56Z",
"siteEvidence": {
"tone": "confirms",
"label": "<string>",
"description": "<string>"
}
}
}
],
"page": 123,
"size": 123,
"total": 123,
"totalPages": 123
}{
"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"
}Fact Check
List brand claims
Returns claims AI answers make about a brand, most in need of attention first, with the user’s mark and the latest fact check. Defaults to the project’s own brand and the last 30 days.
GET
/
claims
List brand claims
curl --request GET \
--url https://server.promptwatch.com/api/v2/claims \
--header 'X-API-Key: <api-key>'import requests
url = "https://server.promptwatch.com/api/v2/claims"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://server.promptwatch.com/api/v2/claims', 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",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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"
req, _ := http.NewRequest("GET", 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.get("https://server.promptwatch.com/api/v2/claims")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://server.promptwatch.com/api/v2/claims")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"claims": [
{
"brandId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"clusterId": "<string>",
"claim": "<string>",
"sentiment": "POSITIVE",
"sentimentScore": 123,
"theme": "<string>",
"responseCount": 123,
"promptCount": 123,
"models": [
"<string>"
],
"lastSeenAt": "2023-11-07T05:31:56Z",
"isNew": true,
"userVerdict": "ACCURATE",
"check": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "PENDING",
"createdAt": "2023-11-07T05:31:56Z",
"siteEvidence": {
"tone": "confirms",
"label": "<string>",
"description": "<string>"
}
}
}
],
"page": 123,
"size": 123,
"total": 123,
"totalPages": 123
}{
"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"
}