# BRAINIAC Evidence Intelligence — Chain of Custody Builder

> BRAINIAC Evidence Intelligence — Chain of Custody Builder 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).

Builds a cryptographic chain-of-custody record for digital evidence files, verifying hash integrity across custody events without sending files to external services.

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/evidence-intelligence/chain-of-custody-build?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-evidence-intelligence-chain-of-custody-builder-7cf76088
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ylann0katV3NI_wQHReti

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-evidence-intelligence-chain-of-custody-builder-7cf76088 -d '<json body>'
```

Example prompt: Build a chain-of-custody record for this crime scene photo — I collected it on 2026-10-01 as Officer A, then Lab B received it on 2026-10-02. Attach the file and verify that its SHA-256 hash c414cd0e204de974f73753c7e28d7638e7b3691bb8b1a2bab6b25bb7fed7ce77 hasn't changed at any step.

## When to prefer this

Choose this endpoint when you need a self-contained, privacy-preserving chain-of-custody record where files must NOT be sent to external AI or forensic cloud services. Ideal for legal, HR, law enforcement, or compliance workflows requiring cryptographic hash continuity verification across multiple handlers. Prefer over general-purpose document storage or cloud forensics APIs when auditability, tamper detection, and data locality are requirements. Best when you have structured custody event metadata (actors, timestamps, actions) to attach to file hashes.

## Known failure modes

- Hash mismatch detected — hashBreakCount > 0 indicates file was modified between custody events
- Missing required fileBase64 field in files array — returns validation error
- expectedSha256 mismatch on upload — file bytes do not match declared hash
- custodyEvents array exceeds 400-item limit — truncated or rejected
- File base64 payload exceeds 12MB per file limit
- Invalid mediaType enum value — rejected with schema error
- Malformed timestamp in 'at' or 'capturedAt' fields — event ordering may be incorrect
- No files or custody events provided — returns empty items array with no meaningful findings

## 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 structured JSON object with per-evidence items containing: ordered custody event logs (actor, action, timestamp, hash after each step), current SHA-256 hash, count of hash breaks (tampering indicators), cryptographic integrity verified flag, C2PA provenance hints, factual authenticity claim status, evidence count, overall status ('built'), findings array, and a limitations disclaimer clarifying that files are not sent externally and hash matches verify byte integrity only.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "csv": {
   "type": "string",
   "maxLength": 200000
  },
  "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
     },
     "label": {
      "type": "string",
      "maxLength": 200
     },
     "source": {
      "type": "string",
      "maxLength": 200
     },
     "filename": {
      "type": "string",
      "maxLength": 180,
      "minLength": 1
     },
     "parentId": {
      "type": "string",
      "maxLength": 80
     },
     "mediaType": {
      "enum": [
       "image/png",
       "image/jpeg",
       "image/webp",
       "image/gif",
       "video/mp4",
       "video/quicktime",
       "application/pdf",
       "application/octet-stream",
       "text/plain",
       "application/json"
      ],
      "type": "string"
     },
     "capturedAt": {
      "type": "string",
      "maxLength": 40
     },
     "fileBase64": {
      "type": "string",
      "maxLength": 12000000,
      "minLength": 1
     },
     "expectedSha256": {
      "type": "string",
      "maxLength": 128
     }
    },
    "additionalProperties": false
   },
   "maxItems": 40
  },
  "custodyEvents": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "at": {
      "type": "string",
      "maxLength": 40
     },
     "id": {
      "type": "string",
      "maxLength": 80
     },
     "note": {
      "type": "string",
      "maxLength": 500
     },
     "actor": {
      "type": "string",
      "maxLength": 200
     },
     "action": {
      "type": "string",
      "maxLength": 120
     },
     "source": {
      "type": "string",
      "maxLength": 200
     },
     "hashAfter": {
      "type": "string",
      "maxLength": 128
     },
     "evidenceId": {
      "type": "string",
      "maxLength": 80
     }
    },
    "additionalProperties": false
   },
   "maxItems": 400
  },
  "expectedHashes": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "digest": {
      "type": "string",
      "maxLength": 128
     },
     "filename": {
      "type": "string",
      "maxLength": 180
     },
     "algorithm": {
    
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "items": [
   {
    "events": [
     {
      "at": "2026-10-01T13:00:00.000Z",
      "id": "CUS-1",
      "note": "",
      "actor": "Officer A",
      "action": "collected",
      "source": "",
      "hashAfter": "c414cd0e204de974f73753c7e28d7638e7b3691bb8b1a2bab6b25bb7fed7ce77"
     },
     {
      "at": "2026-10-02T09:00:00.000Z",
      "id": "CUS-2",
      "note": "",
      "actor": "Lab B",
      "action": "received",
      "source": "",
      "hashAfter": "c414cd0e204de974f73753c7e28d7638e7b3691bb8b1a2bab6b25bb7fed7ce77"
     }
    ],
    "filename": "scene.png",
    "eventCount": 2,
    "evidenceId": "EV-1",
    "currentSha256": "c414cd0e204de974f73753c7e28d7638e7b3691bb8b1a2bab6b25bb7fed7ce77",
    "externalAiUsed": false,
    "hashBreakCount": 0,
    "factualAuthenticityClaimed": false,
    "externalForensicServiceUsed": false,
    "cryptographicIntegrityVerified": true
   }
  ],
  "status": "built",
  "findings": [],
  "checkedAt": "2026-11-04T21:00:00.000Z",
  "limitations": [
   "Evidence bytes are processed only in this local request path. Files are not sent to external AI or forensic services.",
   "Cryptographic hash matches verify byte integrity only. They do not prove factual authenticity of depicted events or authorship.",
   "C2PA checks look for local provenance markers and structure hints in the uploaded bytes. Marker presence is not a factual authenticity determination.",
   "Video keyframes are taken only from caller-supplied frame files or container metadata. Frames are not decoded by an external service and are not invented.",
   "Location clues come from embedded metadata or labeled caller fields. Missing GPS is not invented."
  ],
  "evidenceCount": 1,
  "apiKeyRequired": false,
  "externalAiUsed": false,
  "paidProviderUsed": false,
  "filesSentExternally": false,
  "factualAuthenticityClaimed": false,
  "externalForensicServiceUsed": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-evidence-intelligence-chain-of-custody-builder-7cf76088/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)
