# TruthGate Hallucination Auditor Gateway API

Get TruthGate Hallucination Auditor Gateway data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Codesphereug, pass parameters such as id, jsonrpc, method, and retrieve structured data including identifier, name, returned annotations field, description, and returned input schema field for application integration and result review, and integration reference.

Documentation: https://openany.si/gateway/truthgate-hallucination-auditor-gateway/
API ID: 50ec7e85-ad96-4ae5-a284-5b323e5ec2b9
Provider: codesphereug
Contract revision: 6
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/codesphereug/truthgate/mcp
Page update time: 2026-12-03T02:49:50.457Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: application/json
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.001 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:49:50.457Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "1000",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## TruthGate Hallucination Auditor Gateway API

TruthGate Hallucination Auditor Gateway API uses the documented POST route for this operation. Review the optional inputs supported by the selected implementation. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.

## What You Can Build

- **Application integration and result review**: Keep the request context attached to available returned results.
- **Integration reference**: Use the selected request format and keep source identifiers with the returned result.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `id` | Identifier |
| `result.tools[].name` | Name |
| `result.tools[].annotations` | Returned annotations field |
| `result.tools[].description` | Description |
| `result.tools[].inputSchema` | Returned input schema field |
| `jsonrpc` | Returned jsonrpc field |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "TruthGate Hallucination Auditor Gateway API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {}
    },
    "headers": {
      "type": "object",
      "properties": {}
    },
    "body": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers",
    "body"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "integer"
    },
    "jsonrpc": {
      "type": "string"
    },
    "result": {
      "type": "object",
      "properties": {
        "tools": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "annotations": {
                "type": "object",
                "properties": {
                  "destructiveHint": {
                    "type": "boolean"
                  },
                  "idempotentHint": {
                    "type": "boolean"
                  },
                  "openWorldHint": {
                    "type": "boolean"
                  },
                  "readOnlyHint": {
                    "type": "boolean"
                  }
                }
              },
              "description": {
                "type": "string"
              },
              "inputSchema": {
                "type": "object",
                "properties": {
                  "properties": {
                    "type": "object",
                    "properties": {
                      "response_text": {
                        "type": "object",
                        "properties": {
                          "description": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          }
                        }
                      },
                      "sources": {
                        "type": "object",
                        "properties": {
                          "description": {
                            "type": "string"
                          },
                          "items": {
                            "type": "object",
                            "properties": {
                              "properties": {
                                "type": "object",
                                "properties": {
                                  "content": {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  "source_id": {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  "title": {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string"
                                      }
                                    }
                                  }
                                }
                              },
                              "required": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "type": {
                                "type": "string"
                              }
                            }
                          },
                          "type": {
                            "type": "string"
                          }
                        }
                      },
                      "strict_citations": {
                        "type": "object",
                        "properties": {
                          "default": {
                            "type": "boolean"
                          },
                          "description": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          }
                        }
                      },
                      "workspace_root": {
                        "type": "object",
                        "properties": {
                          "description": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "required": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "type": {
                    "type": "string"
                  }
                }
              },
              "name": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}
```

## Request example
Scenario: Recorded upstream MCP tools/list (HTTP 200)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/codesphereug/truthgate/mcp' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "id": 2,
  "jsonrpc": "2.0",
  "method": "tools/list"
}'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
{
  "id": 2,
  "jsonrpc": "2.0",
  "result": {
    "tools": [
      {
        "annotations": {
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "description": "Verify an AI agent response against source documents and/or a workspace directory across deterministic rules TG001-TG008, returning claim-by-claim verdicts and a surgical self-correction prompt when any check fails.",
        "inputSchema": {
          "properties": {
            "response_text": {
              "description": "The full markdown response produced by the AI agent.",
              "type": "string"
            },
            "sources": {
              "description": "List of grounding context documents ({source_id, title, content}).",
              "items": {
                "properties": {
                  "content": {
                    "type": "string"
                  },
                  "source_id": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  }
                },
                "required": [
                  "source_id",
                  "content"
                ],
                "type": "object"
              },
              "type": "array"
            },
            "strict_citations": {
              "default": true,
              "description": "Whether uncited factual claims trigger TG005 (default: true).",
              "type": "boolean"
            },
            "workspace_root": {
              "description": "Optional workspace directory path for verifying file paths, #Lstart-Lend ranges, and AST symbols.",
              "type": "string"
            }
          },
          "required": [
            "response_text"
          ],
          "type": "object"
        },
        "name": "truthgate_verify_response"
      },
      {
        "annotations": {
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "description": "Verify all file paths, #Lstart-Lend line ranges, and AST symbols referenced in markdown text against a workspace directory (rules TG006-TG008).",
        "inputSchema": {
          "properties": {
            "response_text": {
              "description": "Markdown text containing file links, line ranges, or symbol references.",
              "type": "string"
            },
            "workspace_root": {
              "description": "Absolute or relative path to the workspace directory.",
              "type": "string"
            }
          },
          "required": [
            "response_text",
            "workspace_root"
          ],
          "type": "object"
        },
        "name": "truthgate_ground_workspace_refs"
      },
      {
        "annotations": {
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "description": "List all 8 deterministic verification rules (TG001-TG008) enforced by TruthGate.",
        "inputSchema": {
          "properties": {},
          "type": "object"
        },
        "name": "truthgate_list_rules"
      },
      {
        "annotations": {
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "description": "Run the reproducible 40-scenario TruthGate hallucination & grounding benchmark suite.",
        "inputSchema": {
          "properties": {},
          "type": "object"
        },
        "name": "truthgate_run_benchmark"
      }
    ]
  }
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Does this implementation require business input parameters?
No business input is marked as required by the selected schema. Review any optional filters and the documented request format before calling.

### Which request format should I follow?
Use POST on the documented OpenAny route with the selected implementation request content type. Do not change the method or move inputs to a different location.

### How should I map the returned fields?
Use the documented response paths with their returned types. Keep null, empty collections, false and zero distinct, and retain the identifiers needed to match results to the request.

### Can I reuse request parameters from another endpoint?
Use the selected implementation schema. Similar operation names, providers or versions do not establish identical input locations, types or response fields.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected API implementation. Follow its billing unit, quantity and any request-dependent rules before sending the request.

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
