{"uid":"cap_Uw-VFLO4109KXLGh5Y4kM","slug":"sasona-code-runner-9920cde8","name":"Sasona Code Runner","description":"Run code through Sasona","url":"https://router.sasona.ai/x402/run-code?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object"},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"queryParams":{"type":"object","additionalProperties":{"type":"string"}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0079","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.0079/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0079","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0079","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_SGpWn7Skw6VAG9MPVMfEU","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0079","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Executes arbitrary code by proxying an HTTP request through the Sasona router, returning the result of the code execution","exampleAgentPrompt":"Run this code through Sasona — send a POST request with a JSON body containing my payload object and return whatever the execution produces.","exampleUseCases":[{"title":"Remote function execution for automation","prompt":"I need to run a data transformation function remotely — send it as a POST with a JSON body containing my input object and give me back the result from Sasona's code runner."},{"title":"Triggered computation from external event","prompt":"When my webhook fires, run this processing logic through Sasona by sending a POST request with the event payload as a JSON body and return the computed output."},{"title":"Serverless script invocation via API","prompt":"Execute my script on Sasona's infrastructure — use a POST method with a JSON body containing my parameters and tell me what the code returns."}],"resultDescription":"The agent receives a response object from the code execution, containing the output or result produced by the executed code. The structure depends on the code being run, but is returned as a typed output object potentially including an example payload.","failureModes":["Missing required 'input' field returns validation error","Invalid HTTP method (e.g. GET) rejected by enum constraint","Malformed JSON body causes parsing failure","Execution timeout if code runs too long","Authentication or payment failure via x402 protocol","Unsupported bodyType value outside json/form-data/text enum"],"whenToPreferThis":"Choose this endpoint when you need to execute arbitrary code or invoke remote logic through a managed HTTP proxy with per-call micropayment billing. It is best suited for agentic workflows that need to run dynamic computations, trigger serverless functions, or offload processing without managing infrastructure. Prefer this over generic serverless platforms when you need a pay-per-call model integrated with x402 payment rails.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-11T12:35:00.352Z","isFirstParty":false,"canonicalSlug":"sasona-code-runner-9920cde8"}