{"uid":"cap_soGu-a8VrdLzO2eyI0A_F","slug":"delx-commerce-path-safety-check-a2c4b3a5","name":"Delx Commerce Path Safety Check","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/path-safety-check?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"path":{"type":"string","description":"Input field: path."}}},"responseSchema":{"type":"json","example":{"risk":"low","schema":"delx/util-path-safety-check/v1","advisory":"Heuristic only; use parameterization, contextual encoding, and allowlists.","text_sha256":"873456cf6e41efa219c32b5b9c782135f2d5a425db8d703eaccc783982e0fa7b","signal_count":0,"values_returned":false}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm__S1_JyNHm1lRfTgxBjxgv","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes a filesystem or URL path string for security risks such as traversal attacks, injection patterns, and unsafe characters, returning a risk level and signal count.","exampleAgentPrompt":"Can you run a path safety check on this user-supplied input: '../../../etc/passwd' — I want to know the risk level before I pass it to my file handler.","exampleUseCases":[{"title":"Guard agent file system access","prompt":"A user just gave me this path to read a file: '../../config/secrets.env' — can you check if it's safe or if it looks like a traversal attack before I open it?"},{"title":"Sanitize API route before forwarding","prompt":"Before I forward this user-supplied URL path '/api/v1/../admin/settings' to our backend, can you assess whether it contains any injection or traversal risks?"},{"title":"Validate batch of upload paths","prompt":"I have a path from an uploaded file — 'uploads/../../private/keys.pem' — can you run a heuristic safety check on it and tell me the risk level and how many suspicious signals were found?"}],"resultDescription":"Returns a JSON object with a 'risk' field (e.g. 'low', 'medium', 'high'), a 'signal_count' integer indicating how many suspicious patterns were detected, a 'values_returned' boolean, an 'advisory' string recommending best practices, a 'schema' identifier for the response format, and a 'text_sha256' hash of the analyzed path for auditability.","failureModes":["Missing or empty 'path' field returns an error response","Extremely long path strings may be rejected","Network or payment processing failures result in no response","Path containing only whitespace may yield ambiguous results"],"whenToPreferThis":"Choose this endpoint when an AI agent needs a fast, pay-per-call, no-signup heuristic check on a user-supplied path string before passing it to a file system, router, or backend — especially in agentic workflows where path traversal or injection risks are a concern and you want a verifiable, auditable result with a SHA-256 receipt. Prefer alternatives if you need a full WAF, deep static analysis, or compliance-grade security scanning.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:54:06.181Z","isFirstParty":false,"canonicalSlug":"delx-commerce-path-safety-check-a2c4b3a5"}