{"uid":"cap_TtsTLcZEszHpJYX2AQ_R8","slug":"delx-commerce-cookie-path-match-1c25a69c","name":"Delx Commerce — Cookie Path Match","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/cookie-path-match?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"cookie_path":{"type":"string","maxLength":8192,"description":"Cookie Path supplied to Cookie Path Match; used only for this bounded calculation and processed in memory without retention."},"request_path":{"type":"string","maxLength":8192,"description":"Request Path supplied to Cookie Path Match; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"matched":true,"cookie_path":"/api","request_path":"/api/v1/items"},"schema":"delx/util-cookie-path-match/v1","status":"pass","evidence":{"retained":false,"input_sha256":"41bcc556d968f472cd311120316a62e8cf41f4235877caabbfe596074506cb5c","external_calls":0},"operation":"web_reliability:cookie_path_match"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_2AA4ELUQ_zqHsJJeAi2Ky","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Determines whether a given HTTP cookie path matches a given HTTP request path, following standard cookie path-matching rules.","exampleAgentPrompt":"Check whether the cookie path '/api' matches the request path '/api/v1/items' — I need to know if a cookie scoped to that path would actually be sent with that request.","exampleUseCases":[{"title":"Cookie scope check for middleware","prompt":"My middleware needs to decide whether to attach a session cookie with path '/dashboard' to a request hitting '/dashboard/settings/profile' — can you check if that cookie path covers the request?"},{"title":"Debugging unexpected cookie behavior","prompt":"I'm debugging why cookies aren't being sent. Can you check if cookie path '/secure' would match the request path '/secure/api/v2/users' according to standard path-matching rules?"},{"title":"Validating cookie config in agent auth flow","prompt":"Before I finalize my agent's auth flow, check whether a cookie scoped to path '/' would match a request to '/api/v1/agents/token-refresh'."}],"resultDescription":"Returns a JSON object indicating whether the cookie path matched the request path (boolean 'matched'), echoes back both input paths, confirms no data was retained (retained: false), provides a SHA-256 hash of the input for verifiability, confirms zero external calls were made, and labels the operation as 'web_reliability:cookie_path_match'.","failureModes":["Missing or empty cookie_path or request_path fields — likely returns a validation error","Input strings exceeding 8192 characters — rejected by schema length constraint","Malformed path strings that are not valid HTTP paths — may return unexpected match results","Network or payment failure via x402 — call not processed"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, stateless, pay-per-call cookie path matching computation with cryptographic evidence of the inputs processed and a guarantee of no data retention — particularly useful in privacy-sensitive or compliance contexts where you want to verify the calculation was bounded and transparent. Prefer this over implementing cookie path matching logic yourself when correctness per RFC 6265 semantics is critical.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:56.950Z","isFirstParty":false,"canonicalSlug":"delx-commerce-cookie-path-match-1c25a69c"}