M

Munition · Uploads

by Munition

POSTBaseSolanaArbitrumPolygon

$0.005

per call · USD Coin on Base

Munition Upload: x402-paid temporary file hosting for AI agents. Buy a presigned upload slot, upload one local file or generated artifact up to 10 MB, and get a public non-guessable files.munition.io link retained for 7 days. Useful for PDFs, screenshots, images, logs, JSON, reports, browser sharing, webhook sharing, and agent-to-human handoff.

Endpoint

POST https://api.munition.io/v1/uploads

2

Calls / 30d

2

Unique payers / 30d

Aug 29

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://api.munition.io/v1/uploads", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "filename": "agent-report.pdf",
    "mime": "application/pdf",
    "sha256": "b43cd80a9e6155029135a38c0559aff6696566c431bfb8a9c9433882898247d1",
    "sha256Base64": "tDzYCp5hVQKRNaOMBVmv9mllZsQxv7ipyUM4gomCR9E=",
    "size": 42000,
    "tags": [
      "agent-output",
      "report"
    ],
    "tier": "short-10mb"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://api.munition.io/v1/uploads" \
  -H "Content-Type: application/json" \
  -d '{"filename":"agent-report.pdf","mime":"application/pdf","sha256":"b43cd80a9e6155029135a38c0559aff6696566c431bfb8a9c9433882898247d1","sha256Base64":"tDzYCp5hVQKRNaOMBVmv9mllZsQxv7ipyUM4gomCR9E=","size":42000,"tags":["agent-output","report"],"tier":"short-10mb"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "expiresAt": "2026-09-05T05:23:13.477Z",
  "id": "upl_example",
  "maxSize": 10485760,
  "publicUrl": "https://files.munition.io/direct/upl_example-agent-report.pdf",
  "tags": [
    "agent-output",
    "report"
  ],
  "uploadHeaders": {
    "content-length": "42000",
    "content-type": "application/pdf",
    "x-amz-checksum-sha256": "tDzYCp5hVQKRNaOMBVmv9mllZsQxv7ipyUM4gomCR9E=",
    "x-amz-meta-sha256": "b43cd80a9e6155029135a38c0559aff6696566c431bfb8a9c9433882898247d1"
  },
  "uploadMethod": "PUT",
  "uploadUrl": "https://s3.example.com/presigned-put",
  "uploadUrlExpiresAt": "2026-08-29T05:33:13.480Z"
}

Payment details

Pay to0x54d6c2c08e10f1a1d3da88df513bbe9bcf1a4afa
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana, Arbitrum, Polygon
Schemesexact

Is this your API?

Pin it to the top of Media & Generation and the homepage with a featured placement.

Get featured →

More from Munition & similar services