Vérifier la revendication de vérité
curl --request POST \
--url https://api.truthlocks.com/v1/truth/verify \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"claim_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"verifier_agent_id": "<string>"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
claim_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
verifier_agent_id: '<string>'
})
};
fetch('https://api.truthlocks.com/v1/truth/verify', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/truth/verify"
payload = {
"claim_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"verifier_agent_id": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.truthlocks.com/v1/truth/verify"
payload := strings.NewReader("{\n \"claim_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"verifier_agent_id\": \"<string>\"\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))
}{
"valid": true,
"verification_result": {},
"receipt": {}
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}Revendications et documents de vérité
Enregistrer un verdict de vérification
Enregistre un verdict fourni par un agent vérificateur distinct. Il n’exécute pas de modèle de vérification des faits indépendant.
POST
/
v1
/
truth
/
verify
Vérifier la revendication de vérité
curl --request POST \
--url https://api.truthlocks.com/v1/truth/verify \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"claim_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"verifier_agent_id": "<string>"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
claim_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
verifier_agent_id: '<string>'
})
};
fetch('https://api.truthlocks.com/v1/truth/verify', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/truth/verify"
payload = {
"claim_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"verifier_agent_id": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.truthlocks.com/v1/truth/verify"
payload := strings.NewReader("{\n \"claim_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"verifier_agent_id\": \"<string>\"\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))
}{
"valid": true,
"verification_result": {},
"receipt": {}
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}Enregistre un verdict fourni par un agent vérificateur distinct. Il n’exécute pas de modèle de vérification des faits indépendant.
Fournissez
claim_id, verifier_agent_id et verdict (confirmed, disputed ou inconclusive). Le vérificateur doit exister et être différent du déclarant. Les références de preuves et la méthodologie facultatives décrivent votre processus de vérification ; elles ne sont pas automatiquement validées. Le service agrège les vérifications soumises pour mettre à jour le score de la revendication. Les reçus de vérification de vérité générés utilisent actuellement des marqueurs système, et non des signatures cryptographiques.
Utilisez les champs de paramètres générés ci-dessus pour le contrat de requête. Authentifiez-vous avec un identifiant pour l’espace de travail et l’environnement cibles ; ne fournissez pas d’en-tête de sélection de locataire.Corps
application/json

