{"uid":"cap_1HRrJ40n_RDqPfqkaPV_X","slug":"nomos-execution-environment-preflight-api-c4027a05","name":"Nomos Execution Environment Preflight API","description":"Machine-payable service intelligence for discovering, verifying, and monitoring identity, risk, authorization, execution-preflight, and evidence APIs before autonomous agents spend.","url":"https://base-agent-preflight.bytoken2023.workers.dev/x402/v1/execution/environment-preflight","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"action":{"type":"CODE_EXECUTION"},"environment":{"type":"string"}}},"responseSchema":{"type":"json","example":{"network":"eip155:8453","product":"nomos-execution-environment-preflight","assessment":{"flags":[],"risk_level":"low","risk_score":0}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"2","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":"$2/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"2","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"2","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_u0KmdFQv0io83MIrv9Xrg","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"2","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Assesses the risk level and flags of a code execution action within a specified environment before an autonomous agent proceeds with execution.","exampleAgentPrompt":"Before you run that code, do an execution environment preflight check using Nomos to assess the risk level and any flags for a CODE_EXECUTION action in my current environment — I want to make sure it's safe to proceed.","exampleUseCases":[{"title":"Pre-execution safety gate for agent","prompt":"Before my agent runs any code in this cloud sandbox environment, can you do a preflight risk check using Nomos to confirm the risk score is low and there are no flags before it proceeds?"},{"title":"Automated CI/CD agent risk screening","prompt":"My deployment agent is about to execute a build script — run a Nomos execution environment preflight for a CODE_EXECUTION action in the staging environment and tell me if the risk level comes back as anything other than low."},{"title":"Agentic workflow safety checkpoint","prompt":"I'm building an autonomous workflow where agents can run code — can you add a Nomos preflight check before each CODE_EXECUTION step so we catch any high-risk flags before anything actually runs?"}],"resultDescription":"Returns a JSON object containing the network identifier (e.g. eip155:8453), product name, and an assessment object with a risk_level (e.g. 'low'), a numeric risk_score, and a flags array listing any detected risks or concerns about the execution environment.","failureModes":["Invalid or missing action type returns a validation error","Unknown or unsupported environment identifier may return an error or elevated risk score","Payment failure (insufficient USDC) blocks the request with a 402 response","Malformed request body causes a 400 error","Service unavailability on Cloudflare Workers returns a 503"],"whenToPreferThis":"Choose this endpoint when an autonomous agent needs to gate code execution behind a risk assessment step — especially in agentic pipelines where safety and compliance are required before proceeding. Prefer this over generic health checks when you specifically need a structured risk_score, risk_level enum, and flags array scoped to code execution actions on a target environment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:04:34.530Z","isFirstParty":false}