# MatrixFold Social Publishing Payload Compiler

> MatrixFold Social Publishing Payload Compiler is a paid API for AI agents from api-production-853c.up.railway.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Compiles long-form content, intent, and source material into platform-ready JSON payloads for X/Twitter, LinkedIn, and Xiaohongshu

## Facts

- Endpoint: POST https://api-production-853c.up.railway.app/v1/compile
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-production-853c-up-railway-app-5bc737e9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LS377oi_vPGWzDuSqMCwm

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 api-production-853c-up-railway-app-5bc737e9 -d '<json body>'
```

Example prompt: Compile this blog post draft into an API-ready JSON payload for X/Twitter: 'Decentralized AI is reshaping how we think about data ownership — here's why it matters for 2025.' I want strict JSON output with validation report and apiReadyFields.

## When to prefer this

Use this endpoint when an AI agent needs to convert unstructured or long-form content into strictly validated, platform-specific JSON payloads ready for direct API submission to X/Twitter, LinkedIn, or Xiaohongshu — especially when downstream publishing APIs require precise field formatting and validation reports are needed before submission.

## Known failure modes

- Missing required content or intent fields returns validation error
- Unsupported platform identifier causes payload compilation failure
- Content exceeding platform character limits flagged in validation report
- Malformed source material results in parsing error
- Payment not received causes 402 rejection before compilation

## Output

Returns strict JSON containing platform-specific apiReadyFields ready for direct submission to the target social platform's API, along with a validation report indicating compliance with platform constraints and any downstream publishing metadata.

## Example request

```json
{
 "tone": "professional",
 "intent": "Share insights about remote work trends and best practices with professional audiences",
 "sourceTitle": "The Future of Remote Work",
 "sourceContent": "Remote work has fundamentally transformed how organizations operate. Companies are discovering that distributed teams can be just as productive, if not more so, than traditional office setups. Key benefits include reduced overhead costs, access to global talent pools, and improved employee satisfaction. However, challenges remain around team cohesion and company culture. The most successful remote-first companies invest heavily in communication tools and intentional culture-building activities.",
 "targetPlatforms": [
  "x",
  "linkedin"
 ]
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "sourceContent"
     ],
     "properties": {
      "tone": {
       "enum": [
        "neutral",
        "professional",
        "playful",
        "direct"
       ],
       "type": "string"
      },
      "intent": {
       "type": "string",
       "maxLength": 500
      },
      "imageUrls": {
       "type": "array",
       "items": {
        "type": "string",
        "format": "uri"
       },
       "maxItems": 20
      },
      "sourceTitle": {
       "type": "string",
       "maxLength": 200
      },
      "sourceContent": {
       "type": "string",
       "maxLength": 12000,
       "minLength": 1
      },
      "targetPlatforms": {
       "type": "array",
       "items": {
        "enum": [
         "x",
         "linkedin",
         "xiaohongshu"
        ],
        "type": "string"
       },
       "maxItems": 3,
       "minItems": 1
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "results",
      "fallbackUsed"
     ],
     "properties": {
      "results": {
       "type": "array"
      },
      "fallbackUsed": {
       "type": "boolean"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-production-853c-up-railway-app-5bc737e9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api-production-853c.up.railway.app](https://www.zero.xyz/host/api-production-853c.up.railway.app/llms.txt)
