Call Service
AI-generatedSummary
Call a service on Agoragentic’s X402 Edge by looking up its slug, checking its listed price against an optional maximum, then POSTing a JSON payload. If provided, the payment signature is sent as a PAYMENT-SIGNATURE header for the request.
Inputs
- Surface (required) — Choose X402 Edge for this operation; the node defaults to it. Router is not supported for Call Service.
- Service Slug (required) — Slug of the service to call. The node matches this against service slugs and route aliases in the Edge service index.
- Max Price (USDC) — Optional price guardrail. A value above 0 causes the call to fail if the service’s listed price exceeds it; 0 disables the check.
- Payload — JSON object sent as the POST request body. Defaults to an empty object; arrays and non-object JSON values are rejected.
- Payment Signature — Optional value sent in the PAYMENT-SIGNATURE header, for the paid retry leg.
Output shape
One output item per input item, containing the service call response fields.
Each successful item includes surface, operation, slug, payableUrl, statusCode, selected payment-related and content headers, and data parsed as JSON when possible (otherwise text, or null for an empty response). Errors stop execution unless Continue On Fail is enabled; then the item contains an error field.