DOCS/REFERENCE
REFERENCE12 MIN READUPDATED 03 SEP 2026

REFERENCE / 01

The gateway API, endpoint by endpoint.

Authentication, methods, request boundaries, and response responsibilities for the SHREDDAR gateway.
The self-hosted FastAPI gateway publishes an OpenAPI schema at /openapi.json. Protected routes accept Bearer or X-SHREDDAR-Key credentials; health endpoints remain available for deployment probes.
AUTHENTICATION

Authenticate outside model context

BEARERbash
curl http://127.0.0.1:8787/v1/usage \
+  -H "Authorization: Bearer $SHREDDAR_API_KEY"
API KEY HEADERbash
curl http://127.0.0.1:8787/v1/usage \
+  -H "X-SHREDDAR-Key: $SHREDDAR_API_KEY"
PRIVACY METHODS

Analyze, protect, reconstruct, and shard

METHODPATHRESPONSIBILITY
POST/v1/analyzeReturn risk, route, entities, task categories, and warnings without creating a Vault session
POST/v1/protectReturn protected text, transformations, local session credentials, route, and receipt
POST/v1/reconstructResolve only authorized current-session placeholders with explicit credentials
POST/v1/shardReturn two to eight bounded protected compartments and a synthesis outline
POST/v1/playground/runOperator demo path that protects, generates a deterministic response, guards, and reconstructs
PROTECT REQUESTjson
{
  "text": "Authorized source text",
  "task": "Summarize the termination obligation",
  "policy_id": "strict-v1",
  "privacy_mode": "strict",
  "session_ttl_seconds": 3600
}
OPENAI-COMPATIBLE

Protect the complete request and response

METHODPATHNOTES
GET/v1/modelsLists shreddar-demo and configured-upstream surfaces
POST/v1/chat/completionsAccepts OpenAI-style messages plus shreddar_task, shreddar_policy, and shreddar_privacy_mode
POLICY + EVIDENCE

Inspect configuration and results

METHODPATHRESPONSIBILITY
GET/v1/policiesList built-in and custom policies
GET/v1/policies/{policy_id}Read rules, version, and canonical hash
POST/v1/policiesCreate a bounded custom policy
GET/v1/receiptsList metadata-only receipts with limit and offset
GET/v1/receipts/{request_id}Read one receipt
GET/v1/receipts/{request_id}/verifyRecompute and verify the integrity chain
GET/v1/receipts/{request_id}/anchor-payloadPrepare a hash payload; does not submit a transaction
GET/v1/usageAggregate protected operations and input/external token meters
GET/v1/payments/x402Read the disabled settlement state and missing release evidence
SHREDDAR DOCSYOUR DOC. YOUR DATA. YOUR CONTROL.

Public alpha documentation. Capability labels describe implementation state, not certification or guaranteed suitability.