# BRAINIAC Document Trust — Signature Certificate Chain Validator

> BRAINIAC Document Trust — Signature Certificate Chain Validator is a paid API for AI agents from www.brainiac.software, paid per call via x402, $0.04/call, status unknown (last checked 2026-11-12).

Validates digital signature certificate chains in documents, checking technical validity, trust chain integrity, and revocation status without requiring any external API keys or commercial eSigning platform.

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/document-trust/signature-certificate-chain-validate?utm_source=zero.xyz
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-document-trust-signature-certificate-chain-validator-8e69c167
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JNVMgu_v2yvb_xJ0XvBQl

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability brainiac-document-trust-signature-certificate-chain-validator-8e69c167 -d '<json body>'
```

Example prompt: Can you validate the certificate chain on this signed PDF? I want to know if the leaf certificate is currently valid, whether it properly links to the intermediate and root, and whether the serial number appears in my revocation list — all checks done locally without hitting any external signing platform.

## When to prefer this

Use this endpoint when you need local, self-contained certificate chain validation on signed documents without relying on a commercial e-signature platform, external OCSP/CRL network calls, or account registration. Prefer it for compliance audits, automated contract verification pipelines, or any scenario where you supply your own revocation data and want a detailed per-certificate trust chain breakdown. It is especially suited for agentic workflows that must pay per-call without API key management.

## Known failure modes

- Invalid or malformed PEM certificate returns parseOk:false with no chain analysis
- Missing required fileBase64 field causes 400 validation error
- Certificate chain gaps (linksToNext:false) are reported but do not block response
- Revocation can only be checked against caller-supplied entries — missing entries yield no revocation finding
- Detached signature verification requires both signature bytes and public key; missing fields cause incomplete CMS report
- File size exceeding 12MB base64 limit causes rejection
- Expired certificates are flagged with currentlyValid:false but response still returns

## How this service works

Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.

## Output

Returns a JSON object containing a status field ('validated'), a list of per-certificate results (parse status, issuer, subject, validity window, serial number, SHA256 fingerprint, chain linkage, and current validity), an array of findings, a checkedAt timestamp, and a detailed limitations list clarifying that checks are local only, no OCSP/CRL networks are queried, and legal enforceability is not asserted.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "asOf": {
   "type": "string",
   "maxLength": 40
  },
  "json": {
   "type": "string",
   "maxLength": 200000
  },
  "text": {
   "type": "string",
   "maxLength": 200000
  },
  "files": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "fileBase64"
    ],
    "properties": {
     "id": {
      "type": "string",
      "maxLength": 80
     },
     "role": {
      "type": "string",
      "maxLength": 80
     },
     "filename": {
      "type": "string",
      "maxLength": 180,
      "minLength": 1
     },
     "mediaType": {
      "enum": [
       "application/pdf",
       "application/octet-stream"
      ],
      "type": "string"
     },
     "fileBase64": {
      "type": "string",
      "maxLength": 12000000,
      "minLength": 1
     },
     "versionLabel": {
      "type": "string",
      "maxLength": 80
     },
     "expectedSha256": {
      "type": "string",
      "maxLength": 128
     },
     "expectedByteRangeSha256": {
      "type": "string",
      "maxLength": 128
     }
    },
    "additionalProperties": false
   },
   "maxItems": 20
  },
  "signers": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "maxLength": 80
     },
     "name": {
      "type": "string",
      "maxLength": 200
     },
     "email": {
      "type": "string",
      "maxLength": 200
     },
     "signedAt": {
      "type": "string",
      "maxLength": 40
     },
     "fieldName": {
      "type": "string",
      "maxLength": 120
     },
     "documentId": {
      "type": "string",
      "maxLength": 80
     },
     "certificateId": {
      "type": "string",
      "maxLength": 80
     }
    },
    "additionalProperties": false
   },
   "maxItems": 40
  },
  "revocations": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "reason": {
      "type": "string",
      "maxLength": 200
     },
     "source": {
      "type": "string",
      "maxLength": 200
     },
     "revokedAt": {
      "type": "string",
      "maxLength": 40
     },
     "serialNumber": {
      "type": "string",
      "maxLength": 128
     }
    },
    "additionalProperties": false
   },
   "maxItems": 200
  },
  "certificates": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "pem"
    ],
    "properties": {
     "id": {
      "type": "string",
      "maxLength": 80
     },
     "pem": {
      "type": "string"
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "items": [
   {
    "id": "CERT-1",
    "role": "leaf",
    "issuer": "CN=Example Signer\nO=Example Org\nC=US",
    "parseOk": true,
    "subject": "CN=Example Signer\nO=Example Org\nC=US",
    "validTo": "Nov  1 20:08:44 2036 GMT",
    "validFrom": "Nov  4 20:08:44 2026 GMT",
    "linksToNext": false,
    "serialNumber": "74517EDEFEA6313E5DB2743A05D23718761C0019",
    "currentlyValid": true,
    "technicalChainOk": true,
    "fingerprintSha256": "68b42b844c3f920fadb832aece0ffe9e6e580da0944c95829121ed49fd97841b",
    "legalEnforceabilityClaimed": false
   }
  ],
  "status": "validated",
  "findings": [],
  "checkedAt": "2026-11-04T21:00:00.000Z",
  "limitations": [
   "PDF bytes, certificates, signers, revocations, and detached signatures are processed only locally in this request path.",
   "No commercial electronic-signature platform is used and no API key is required.",
   "Technical signature, hash, certificate, and timestamp checks are not a determination of legal enforceability.",
   "Full CMS/PKCS#7 cryptographic verification is reported only when a detached signature and public key are supplied, or when ByteRange digests match caller-supplied expectations. Missing CMS fields are not invented.",
   "Revocation is evaluated only against caller-supplied revocation entries. Live commercial OCSP/CRL networks are not queried."
  ],
  "apiKeyRequired": false,
  "certificateCount": 1,
  "paidProviderUsed": false,
  "technicalChainOk": true,
  "commercialPlatformUsed": false,
  "legalEnforceabilityClaimed": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-document-trust-signature-certificate-chain-validator-8e69c167/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.brainiac.software](https://www.zero.xyz/host/www.brainiac.software/llms.txt)
