{"uid":"cap_yCqfE4tObQ2TNjqYn4c3R","slug":"content-type-match-195a58f6","name":"Content Type Match","description":"Content Type Match: Content Type Match checks a concrete Content-Type against an expected media range from bounded caller-supplied values without an external provider. Call Content Type Match 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 Content Type Match as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First-party, stateless, memory-only…","url":"https://api.delx.ai/api/v1/x402/content-type-match","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"actual":{"type":"string","maxLength":8192,"description":"Actual supplied to Content Type Match; used only for this bounded calculation and processed in memory without retention."},"expected":{"type":"string","maxLength":8192,"description":"Expected supplied to Content Type Match; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"matched":true,"expected_range":"application/*+json","actual_media_type":"application/problem+json"},"schema":"delx/util-content-type-match/v1","status":"pass","evidence":{"retained":false,"input_sha256":"b7c613a2c98fff13f2ac6da517851a23617d85340d45c743194249ef9f57070f","external_calls":0},"operation":"web_reliability:content_type_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_MHDSEWHdtPgUs0PsM6t6S","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":"Validates whether an actual HTTP Content-Type header value matches an expected media range, returning a deterministic pass/fail result.","exampleAgentPrompt":"Check whether the actual Content-Type 'text/html; charset=utf-8' matches the expected media range 'text/html' and tell me if it passes.","exampleUseCases":[{"title":"Validate API response before caching","prompt":"Before I cache this response, check whether the actual content-type 'application/json; charset=utf-8' matches my expected type 'application/json' — does it pass?"},{"title":"Guard against wrong MIME type before redirect","prompt":"I'm about to follow a redirect — can you verify that the actual Content-Type 'application/octet-stream' matches my expected range 'application/octet-stream' so I know it's safe to proceed?"},{"title":"Pre-flight check before accepting a file download","prompt":"Before my agent accepts this file download, check if the actual content-type 'image/png' matches the expected media range 'image/*' and give me a clear pass or fail."}],"resultDescription":"Returns a deterministic JSON object containing: the normalized actual and expected content-type values as web evidence, the computed match finding (whether actual satisfies the expected media range), and an explicit pass or advisory status — all versioned and stateless.","failureModes":["Malformed or unparseable Content-Type string in 'actual' field may yield an advisory/fail status rather than an error","Expected media range that is syntactically invalid may cause a validation error","Overly long input strings exceeding the 8192 character limit will be rejected","Missing required fields ('actual' or 'expected') will cause a bad request error","Payment failure via x402 will block the call before validation occurs"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, deterministic, stateless check of whether an HTTP Content-Type value satisfies a given media range — particularly as a preflight guard before accepting, caching, redirecting, or retrying a web response. Prefer it over hand-coded string matching when you need normalized evidence and an explicit pass/advisory result returned as structured JSON. It is best suited for agentic pipelines that need verifiable, auditable content-type validation without side effects or external dependencies.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:55:36.637Z","isFirstParty":false}