Verificação de deepfake
curl --request POST \
--url https://api.truthlocks.com/v1/risk/deepfake/scan \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"subject_ref": "<string>",
"subject_type": "<string>"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({subject_ref: '<string>', subject_type: '<string>'})
};
fetch('https://api.truthlocks.com/v1/risk/deepfake/scan', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/risk/deepfake/scan"
payload = {
"subject_ref": "<string>",
"subject_type": "<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/risk/deepfake/scan"
payload := strings.NewReader("{\n \"subject_ref\": \"<string>\",\n \"subject_type\": \"<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))
}{
"scan_id": "<string>",
"status": "<string>",
"subject_ref": "<string>"
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}Sinais de Risco
Verificação de deepfake e personificação
Envie um assunto para análise de deepfake e personificação. Retorna pontuações, veredito e indicadores. Ingesta automaticamente um sinal de risco se as pontuações excederem o limite de gatilho automático (60).
POST
/
v1
/
risk
/
deepfake
/
scan
Verificação de deepfake
curl --request POST \
--url https://api.truthlocks.com/v1/risk/deepfake/scan \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"subject_ref": "<string>",
"subject_type": "<string>"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({subject_ref: '<string>', subject_type: '<string>'})
};
fetch('https://api.truthlocks.com/v1/risk/deepfake/scan', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/risk/deepfake/scan"
payload = {
"subject_ref": "<string>",
"subject_type": "<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/risk/deepfake/scan"
payload := strings.NewReader("{\n \"subject_ref\": \"<string>\",\n \"subject_type\": \"<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))
}{
"scan_id": "<string>",
"status": "<string>",
"subject_ref": "<string>"
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}Este endpoint não baixa nem inspeciona a imagem, vídeo ou documento referenciado. Ele pontua indicadores ou pontuações fornecidas pelo seu aplicativo. Os valores são pontuações de risco heurísticas, não probabilidades calibradas. O rótulo
authentic significa que o limite de risco configurado não foi atingido; não é prova de que a mídia é autêntica, especialmente quando nenhum indicador foi fornecido.Como a detecção funciona
As verificações usam um mecanismo de sinal heurístico (heuristic_v1) que aceita sinais fornecidos pelo chamador (de modelos de ML externos, mecanismos de regras ou revisão manual) e os mapeia para pontuações ponderadas:
- Indicadores de deepfake: troca de rosto, iluminação inconsistente, artefatos de compressão, inconsistência temporal, incompatibilidade de metadados
- Indicadores de falsificação de identidade: incompatibilidade biométrica, incompatibilidade de nome, incompatibilidade de documento de identidade, violação de confiança do emissor
deepfake ou impersonation. Pontuações ≥ 40 definem suspect. Pontuações ≥ 60 ingerem automaticamente um sinal de risco.
Você também pode ignorar a análise heurística passando diretamente os valores pré-computados de deepfake_score e impersonation_score. A plataforma ainda aplica os mesmos limites de veredito e ingestão automática de sinal.
Consulte o guia de detecção de deepfake para o fluxo de trabalho completo, referência de indicadores e exemplos adicionais.
Resposta
Corpo
application/json

