{"uid":"cap_J-D5fHcQ_ittQpIV2Wikx","slug":"x402-delivery-content-type-check-706e3c3d","name":"X402 Delivery Content Type Check","description":"X402 Delivery Content Type Check: X402 Delivery Content Type Check compares delivery content type with buyer-accepted media types from bounded caller-supplied values without an external provider. Call X402 Delivery Content Type Check before paying for or accepting an x402 or agent delivery assembled from caller-supplied challenge and result metadata. Returns contract-specific checks, normalized evidence, mismatch reasons, and an explicit acceptance or rejection status for X402 Delivery Content…","url":"https://api.delx.ai/api/v1/x402/x402-delivery-content-type-check","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"accepted":{"type":"array","items":{"type":"string","maxLength":8192},"maxItems":256,"description":"Accepted supplied to X402 Delivery Content Type Check; used only for this bounded calculation and processed in memory without retention."},"content_type":{"type":"string","maxLength":8192,"description":"Content Type supplied to X402 Delivery Content Type Check; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"accepted":true,"content_type":"application/json"},"schema":"delx/util-x402-delivery-content-type-check/v1","status":"pass","evidence":{"retained":false,"input_sha256":"17d22f796e7932f46bbb49530f843fcbb42e7bea6267a2306a495865b24fc926","external_calls":0},"operation":"delivery_contract:x402_delivery_content_type_check"}},"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_kg4Ln6Acbamu9J15qIYwU","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 x402 delivery's content type matches the buyer's accepted media types, returning acceptance/rejection status with mismatch reasons","exampleAgentPrompt":"Before I pay for this x402 delivery, check whether the content type 'application/json' is acceptable given my accepted types list ['application/json', 'text/plain'] — I need an explicit accept or reject with any mismatch reasons.","exampleUseCases":[{"title":"Pre-payment x402 content type guard","prompt":"I'm about to pay for an x402 delivery that claims to return 'text/html', but I only accept 'application/json' and 'application/ld+json' — check whether the content type matches my accepted list and tell me if I should reject it before paying."},{"title":"Agent delivery validation pipeline","prompt":"My agent just received a delivery with content type 'image/png' and my accepted types are ['application/json', 'text/csv']. Run a content type check so I know whether to accept or reject this before processing the result."},{"title":"Automated x402 gating in multi-step workflow","prompt":"In my automated x402 workflow, check if the delivery content type 'application/pdf' is compatible with my accepted types ['application/pdf', 'application/octet-stream'] — return whether it passes and any mismatch reasons so the workflow can decide to proceed or abort."}],"resultDescription":"Returns a structured result including an explicit acceptance or rejection status, normalized evidence of the content type comparison, contract-specific validation checks, and human-readable mismatch reasons explaining why the content type was accepted or rejected.","failureModes":["Missing or empty content_type field causes check to fail with no meaningful result","Empty accepted array may result in automatic rejection of any content type","Malformed MIME type strings may cause parsing errors or unexpected match behavior","Overly broad wildcard accepted types (e.g. '*/*') may accept unintended content types"],"whenToPreferThis":"Use this endpoint specifically when operating in an x402 or agent delivery context where you need to validate a delivery's content type against a buyer-specified list of accepted media types before committing to payment or processing. Prefer this over manual string matching when you need normalized evidence, structured mismatch reasons, and an explicit contract-level accept/reject decision. It is lightweight ($0.001 USDC) and stateless, making it suitable for inline pre-payment validation steps in automated agent workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T07:02:11.686Z","isFirstParty":false}