List an API for sale
code402_create_listingCreate or update a paid listing for a registered seller: POST /v1/sellers/{sellerId}/services with { serviceId, upstream_url, price_usd, method?, description? }. The gateway then serves the listing at /s/{sellerId}/{serviceId} behind an x402 paywall paying the seller's wallet directly. Returns { listing, paid_endpoint }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | HTTP method of the upstream (default GET) | |
| sellerId | Yes | Registered seller slug | |
| price_usd | Yes | Price per call, e.g. '$0.05' | |
| serviceId | Yes | Listing slug, e.g. 'lookup' | |
| description | No | What buyers get for the price | |
| upstream_url | Yes | Public https URL of the API being sold |