# BRAINIAC Payload Transform

> BRAINIAC Payload Transform is a paid API for AI agents from www.brainiac.software, paid per call via x402, $0.05/call, status unknown (last checked 2026-11-12).

Transforms, validates, maps, and normalizes JSON payloads by applying declarative operations (rename, copy, pick, omit, cast, default) with optional schema compliance checking

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/integration/payload-transform?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-payload-transform-c61194ce
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jfzJAIBdrn6fPGeojpVNN

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-payload-transform-c61194ce -d '<json body>'
```

Example prompt: Take this JSON payload and rename the 'user_id' field to 'id' and 'user_email' to 'email', then omit the 'internal_code' field entirely — give me back the cleaned-up result.

## When to prefer this

Choose this endpoint when you need deterministic, server-side JSON transformation without executing user code or making external calls. Ideal for remapping API fields between services, stripping or picking fields before forwarding payloads, casting types, applying defaults, or validating payloads against a schema — all in a single stateless call. Prefer this over client-side transformation when auditability, change logging, and schema compliance reporting matter.

## Known failure modes

- Invalid base64 or oversized file payload causes rejection
- Unsupported JSON Schema keywords are reported but not applied
- Schema inference from examples only uses observed values, so additionalProperties remains true
- Field mapping proposals are limited to cases where path or field name matches on both sides — complex mappings may not be detected
- Breaking/non-breaking labels only returned when 'side' is set to 'request' or 'response'
- Malformed JSON in the 'json' field returns a parse error

## 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 transformed JSON object (result), a list of changes applied (path, rule, original, normalized), a status string ('transformed'), a list of issues found during validation, counts of changed fields, and flags confirming no external calls were made and no values were invented. Also includes a checkedAt timestamp and a list of transformation limitations.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "file": {
   "type": "object",
   "required": [
    "mediaType",
    "fileBase64"
   ],
   "properties": {
    "filename": {
     "type": "string",
     "maxLength": 180,
     "minLength": 1
    },
    "mediaType": {
     "enum": [
      "application/json",
      "text/plain"
     ],
     "type": "string"
    },
    "fileBase64": {
     "type": "string",
     "maxLength": 12000000,
     "minLength": 1
    }
   },
   "additionalProperties": false
  },
  "json": {
   "type": "string",
   "maxLength": 200000
  },
  "side": {
   "enum": [
    "request",
    "response"
   ],
   "type": "string"
  },
  "after": {},
  "before": {},
  "schema": {},
  "source": {},
  "target": {},
  "example": {},
  "payload": {},
  "examples": {
   "type": "array",
   "items": {},
   "maxItems": 20
  },
  "toVersion": {
   "type": "string",
   "maxLength": 40,
   "minLength": 1
  },
  "operations": {
   "type": "array",
   "items": {
    "oneOf": [
     {
      "type": "object",
      "required": [
       "op",
       "from",
       "to"
      ],
      "properties": {
       "op": {
        "type": "string",
        "const": "rename"
       },
       "to": {
        "type": "string",
        "maxLength": 200,
        "minLength": 1
       },
       "from": {
        "type": "string",
        "maxLength": 200,
        "minLength": 1
       }
      },
      "additionalProperties": false
     },
     {
      "type": "object",
      "required": [
       "op",
       "from",
       "to"
      ],
      "properties": {
       "op": {
        "type": "string",
        "const": "copy"
       },
       "to": {
        "type": "string",
        "maxLength": 200,
        "minLength": 1
       },
       "from": {
        "type": "string",
        "maxLength": 200,
        "minLength": 1
       }
      },
      "additionalProperties": false
     },
     {
      "type": "object",
      "required": [
       "op",
       "paths"
      ],
      "properties": {
       "op": {
        "type": "string",
        "const": "pick"
       },
       "paths": {
        "type": "array",
        "items": {
         "type": "string",
         "maxLength": 200,
         "minLength": 1
        },
        "maxItems": 40,
        "minItems": 1
       }
      },
      "additionalProperties": false
     },
     {
      "type": "object",
      "required": [
       "op",
       "paths"
      ],
      "properties": {
       "op": {
        "type": "string",
        "const": "omit"
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "issues": [],
  "result": {
   "id": "ord_1",
   "email": "Ada@example.com",
   "status": "open"
  },
  "status": "transformed",
  "changes": [
   {
    "path": "/id",
    "rule": "rename",
    "original": "",
    "normalized": "\"ord_1\""
   },
   {
    "path": "/status",
    "rule": "default",
    "original": "",
    "normalized": "\"open\""
   }
  ],
  "checkedAt": "2026-11-03T15:00:00.000Z",
  "limitations": [
   "No external API is called and no user-supplied code is executed.",
   "Validation covers type, properties, required, additionalProperties, items, enum, const, length, range, and the formats email, date, and date-time. Other JSON Schema keywords are reported and not applied.",
   "A generated schema uses only values present in the supplied examples. additionalProperties stays true.",
   "A field mapping is proposed only when the path matches or the field name matches one field on each side.",
   "Breaking and non-breaking labels are returned only when side is request or response.",
   "Transforms are rename, copy, pick, omit, cast, and default. A default is written only when the path is absent."
  ],
  "changedCount": 2,
  "codeExecuted": false,
  "externalCall": false,
  "valuesInvented": false,
  "schemaCompliance": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-payload-transform-c61194ce/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)
