Skip to main content
POST
Call a catalog service, paid with subscription credits

Authorizations

Authorization
string
header
required

Your Nevermined API Key (starts with 'nvm:'). Get one at nevermined.app under Settings > API Keys.

Body

application/json
slug
string
required

Catalog slug of the service to call. Subscription credits pay catalog services only, addressed by slug; the Router resolves it to the merchant server-side.

Pattern: ^[A-Za-z0-9._~-]+$
Example:

"webscrape-pro"

requestId
string
required

Idempotency key — REQUIRED. At most one payment per (caller, requestId): a retry is never paid twice.

Maximum string length: 256
Pattern: \S
Example:

"scrape-example-com-1"

path
string

Subpath of the endpoint, appended to the resolved merchant URL (path segments only — //, .., a backslash or an embedded absolute URL is refused).

Maximum string length: 2048
Example:

"scrape"

Query string without the leading ?, attached to the resolved merchant URL.

Maximum string length: 2048
Example:

"q=nevermined&limit=1"

method
enum<string>
default:GET

HTTP method to use for the upstream request.

Available options:
GET,
POST,
PUT,
PATCH,
DELETE
headers
object

Headers to forward to the merchant (e.g. its own auth). Optional.

body
any

Request body to forward (JSON). Optional.

credentialHeader
string

Header the payment credential rides in on the paid hop, when the merchant needs its own Authorization too (a separate Payment header is the common one). Do not set it by default.

Maximum string length: 64
Example:

"Payment"

protocol
enum<string>
default:x402

Advisory: the Router detects the protocol from the merchant's 402.

Available options:
x402,
mpp
requireProtocol
enum<string>

Binding payment-rail pin (API v1.88.0+), unlike advisory protocol. Pay only on x402 or mpp, with no fallback. If unavailable, return 409 BCK.ROUTER.0045 before signing, reserving or charging. Subscription-credit quotes price the credit tariff without applying the pin; this paid call enforces it. Never silently remove the pin.

Available options:
x402,
mpp
validateRequestBody
boolean

Opt-in request-body gate (default off). When true, a request body that provably fails the endpoint's published request schema is refused with 400 BCK.ROUTER.0046 before anything is signed, reserved or charged, so you are not billed for a call the merchant would reject. Only a provably-invalid body is refused; a missing or unverifiable schema still pays (fail-open). Honoured on the buffered pay routes /router/route, /router/commerce/route and /router/subscription/route (the Commerce MCP pay_service forwards it to them); the streaming /proxy and /svc/:slug surfaces do not apply it. Fix the body to match the endpoint's published requestSchema (catalog service detail, or Commerce MCP get_service), or omit the flag.

Response

The merchant's response (status, and body only when it delivered) plus the payment Nevermined made and the credits it cost — and topUp when the call charged a credit pack to cover itself.

status
number
required

The merchant's HTTP status.

body
any
required

The merchant's response body — null unless a paid call delivered (2xx), so a failed call reveals nothing about the merchant. A free answer relays only its status (paid: false), except a declared follow-up poll after a paid call.

paid
boolean
required

Whether a payment was made (false when the service answered free).

bodyEncoding
enum<string>

How body is represented. Absent when body is withheld.

Available options:
json,
text,
base64
contentType
string | null

The merchant's response media type, when body is relayed.

Example:

"application/json"

payment
object
topUp
object

Present only when this call ran out of credits and, with credit top-ups on, charged one credit pack to the saved card to cover it. The pack's credits went to your credits balance and never expire. Your card was charged: tell the person you are acting for.