{"uid":"cap_lerjwC4UeKUQibO1rVbCr","slug":"delx-content-type-guess-5b1f2f28","name":"Delx Content Type Guess","description":"Guess a MIME type from a filename, path, or URL extension — call when guessing MIME type from an extension. Use on text/URLs the agent already holds—adjacent to high-volume extract demand, never advertised as general web or X search. Returns deterministic machine-readable JSON for $0.003 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, and no claim of live chain tip, web search, or media generation. Results are ad…","url":"https://api.delx.ai/api/v1/x402/content-type-guess","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"filename":{"type":"string","description":"Filename, path, or URL used only for extension/MIME guess."}}},"responseSchema":{"type":"json","example":{"known":true,"schema":"delx/util-content-type-guess/v1","filename":"report.PDF","extension":"pdf","content_type":"application/pdf"}},"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_BTVpXB6BY_Vq1L3cEoHda","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":"Guesses the MIME type for a given filename, file path, or URL based solely on its extension","exampleAgentPrompt":"What MIME type should I use for a file called 'report.xlsx'? Just give me the content-type string based on the extension.","exampleUseCases":[{"title":"Setting HTTP Content-Type headers","prompt":"I'm about to serve a file named 'profile_photo.webp' — what Content-Type header value should I set for it?"},{"title":"Validating upload MIME type","prompt":"A user uploaded a file called 'dataset.parquet' — can you figure out the correct MIME type from the filename so I can validate it before storing?"},{"title":"Annotating file metadata pipeline","prompt":"I have a list of filenames like 'slides.pptx' and 'notes.md' that need MIME type labels — what's the content type for 'slides.pptx'?"}],"resultDescription":"A deterministic JSON object containing the guessed MIME type string (e.g. 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet') derived from the file extension in the provided filename, path, or URL. No network calls are made; the result is computed locally from extension-to-MIME mappings.","failureModes":["Unknown or uncommon extension returns a generic fallback MIME type such as 'application/octet-stream'","Filename with no extension may return null or a default type","Ambiguous extensions shared by multiple MIME types may return the most common mapping rather than the precise one","Malformed input (empty string) may return an error or default"],"whenToPreferThis":"Use this endpoint when you already hold a filename, path, or URL and need a quick, deterministic, stateless MIME type guess purely from the extension — no file content is read and no network fetch is performed. Prefer it over manual lookup tables or regex when you need a consistent, machine-readable JSON result integrated into a workflow. Not suitable if you need to detect content type from actual file bytes or magic numbers.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:14:51.929Z","isFirstParty":false}