A

Agent API Listings · MPP Package

by Agent API Listings

POSTBase

$0.2

per call · USD Coin on Base

Provide an API origin and inline OpenAPI document, with optional names and tags. Receive JSON containing a validated mpp.dev service entry, warnings, and ready-to-copy TypeScript without a remote fetch.

Endpoint

POST https://agent-api-listings.krimskrams.xyz/v1/mpp-package

1

Calls / 30d

1

Unique payers / 30d

Aug 20

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://agent-api-listings.krimskrams.xyz/v1/mpp-package", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "openapi": {
      "info": {
        "contact": {
          "name": "Example provider"
        },
        "description": "Return sourced example data.",
        "title": "Example API"
      },
      "paths": {
        "/mpp/v1/example": {
          "get": {
            "x-payment-info": {
              "offers": [
                {
                  "amount": "20000",
                  "currency": "0x20C000000000000000000000b9537d11c60E8b50",
                  "description": "Return example data.",
                  "intent": "charge",
                  "method": "tempo"
                }
              ],
              "protocols": [
                "mpp"
              ]
            }
          }
        }
      },
      "x-service-info": {
        "categories": [
          "data"
        ]
      }
    },
    "origin": "https://api.example.com",
    "tags": [
      "data"
    ]
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://agent-api-listings.krimskrams.xyz/v1/mpp-package" \
  -H "Content-Type: application/json" \
  -d '{"openapi":{"info":{"contact":{"name":"Example provider"},"description":"Return sourced example data.","title":"Example API"},"paths":{"/mpp/v1/example":{"get":{"x-payment-info":{"offers":[{"amount":"20000","currency":"0x20C000000000000000000000b9537d11c60E8b50","description":"Return example data.","intent":"charge","method":"tempo"}],"protocols":["mpp"]}}}},"x-service-info":{"categories":["data"]}},"origin":"https://api.example.com","tags":["data"]}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "entry": {
    "endpoints": [
      {
        "amount": "20000",
        "route": "GET /mpp/v1/example"
      }
    ],
    "id": "example"
  },
  "format": "mpp.dev-service-def-v1",
  "typescript": "{ ... }",
  "warnings": []
}

Payment details

Pay to0x276efa09388fb1578a6c415b8f90d26fdfce0cf2
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Developer Tools and the homepage with a featured placement.

Get featured →

More from Agent API Listings & similar services