{"uid":"cap_ueh7ZQpY-H1V99CF84ha7","slug":"api-the402-ai-c8bfed46","name":"the402.ai Code Execution Sandbox (E2B) Purchase","description":"Purchase: Code Execution Sandbox (E2B) ","url":"https://api.the402.ai/v1/services/svc_feb40527156f41e3/purchase","method":"POST","headers":{},"bodySchema":null,"responseSchema":{"type":"object","properties":{"job_id":{"type":"string"},"status":{"type":"string"},"thread_id":{"type":"string"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Ybbv7qBxh9ZehWxd-GC0J","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Purchases access to a secure code execution sandbox powered by E2B, enabling dynamic code running within an isolated environment via the the402.ai marketplace.","exampleAgentPrompt":"Can you run this Python snippet for me in a secure sandbox — `print(sum([1,2,3,4,5]))` — and give me the output? Use the E2B code execution service on the402.ai.","exampleUseCases":null,"resultDescription":"Returns the result of code executed inside an isolated E2B sandbox, including stdout/stderr output, execution status, and a job ID that can be used to check status or verify service delivery and release payment.","failureModes":["Insufficient USDC balance or payment failure — 402 Payment Required response","Invalid or malformed code input — execution error returned","Sandbox timeout — code takes too long to execute","Service unavailable — E2B backend down","Invalid service ID or endpoint — 404 Not Found"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to dynamically execute arbitrary or user-provided code in a secure, isolated environment without provisioning its own infrastructure. Ideal for agents built on agentic marketplaces that support x402 micropayment flows and need on-demand compute. Prefer over self-hosted runners when low-cost per-call billing ($0.005 USDC) is acceptable and E2B's sandboxing guarantees are sufficient.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:43:38.049Z","isFirstParty":false}