direction on every call (input /
output). Prefer the Go SDK over hand-rolled HTTP in Go. Full contract:
Evaluate API.
Input
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
POST /v1/evaluate from curl or any HTTP client.
direction on every call (input /
output). Prefer the Go SDK over hand-rolled HTTP in Go. Full contract:
Evaluate API.
Input
curl -X POST "{TRUSTGUARD_URL}/v1/evaluate" \
-H "Authorization: Bearer <collector-api-key>" \
-H "Content-Type: application/json" \
-d '{
"protocol": "llm",
"direction": "input",
"payload": { "input": "summarize this customer call" },
"session_id": "sess-123",
"consumer_id": "alex@acme.com"
}'
curl -X POST "{TRUSTGUARD_URL}/v1/evaluate" \
-H "Authorization: Bearer <collector-api-key>" \
-H "Content-Type: application/json" \
-d '{
"protocol": "llm",
"direction": "output",
"payload": { "input": "Here is a summary…" },
"session_id": "sess-123",
"consumer_id": "alex@acme.com"
}'
{ "status": "allow", "findings": [], "transformed_payload": null, "trace_id": "…", "request_id": "…" }