{"uid":"cap_JbvkZWPVfZKmbhUlihAR3","slug":"cookie-set-parse-25234699","name":"Cookie Set Parse","description":"Cookie Set Parse: Cookie Set Parse parses one Set-Cookie value into name, value, and attributes from bounded caller-supplied values without an external provider. Call Cookie Set Parse before accepting, caching, redirecting, or retrying a caller-supplied web response. Returns normalized web evidence, the computed finding, and an explicit pass or advisory status for Cookie Set Parse as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First-party, stateless, memory-only execution…","url":"https://api.delx.ai/api/v1/x402/cookie-set-parse","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"header":{"type":"string","maxLength":8192,"description":"Header supplied to Cookie Set Parse; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"name":"sid","attributes":{"path":"/","secure":true,"httponly":true,"samesite":"Lax"},"value_length":3},"schema":"delx/util-cookie-set-parse/v1","status":"pass","evidence":{"retained":false,"input_sha256":"1ed778ab0ebff9fc2b38df405c07c62862e045ddbbef0672d47df2681fdc6642","external_calls":0},"operation":"web_reliability:cookie_set_parse"}},"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_b4rRkRvL1_uOuv75jHq-T","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":"Parses a raw Set-Cookie HTTP header value into its name, value, and attributes, returning a normalized, deterministic JSON result with pass/advisory status.","exampleAgentPrompt":"Parse this raw Set-Cookie header value for me and tell me if it's valid — extract the cookie name, value, and all attributes like HttpOnly, Secure, SameSite, and Expires: 'sessionId=abc123; Path=/; HttpOnly; Secure; SameSite=Strict; Expires=Wed, 21 Oct 2025 07:28:00 GMT'.","exampleUseCases":[{"title":"Pre-cache cookie validation","prompt":"Before I cache this web response, can you parse and validate this Set-Cookie header to make sure it's well-formed? Here it is: 'authToken=xyz789; Domain=example.com; Path=/; Secure; HttpOnly; Max-Age=3600'"},{"title":"Security audit of cookie attributes","prompt":"I just got a Set-Cookie header back from a third-party service and I need to check whether it includes Secure and HttpOnly flags before I accept it — can you parse 'tracking=abc; Path=/; SameSite=None' and tell me what's present and what's missing?"},{"title":"Redirect response cookie inspection","prompt":"An API I called returned a redirect with a Set-Cookie header. Parse 'csrfToken=tok99; Path=/api; SameSite=Lax; Expires=Thu, 01 Jan 2026 00:00:00 GMT' and tell me the cookie name, value, and all attributes so I can decide whether to follow the redirect."}],"resultDescription":"A versioned deterministic JSON object containing the parsed cookie name, value, and all recognized attributes (e.g. Path, Domain, Expires, Max-Age, Secure, HttpOnly, SameSite), a normalized evidence object, and an explicit pass or advisory status indicating whether the Set-Cookie header is well-formed.","failureModes":["Malformed or unparseable Set-Cookie string returns advisory status with parsing error detail","Input string exceeding 8192 characters is rejected","Missing or empty header field returns an error or advisory result","Non-Set-Cookie header values may parse with unexpected attribute mappings"],"whenToPreferThis":"Use this endpoint when you need fast, stateless, deterministic parsing of a single Set-Cookie header value — especially before accepting, caching, redirecting, or retrying a web response. It is ideal for security-sensitive workflows where you need to confirm the presence or absence of specific cookie attributes (HttpOnly, Secure, SameSite) without retaining any data. Prefer this over custom parsing logic for consistent, versioned, normalized output.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:15:30.228Z","isFirstParty":false}