{"uid":"cap_EgX_UfAAJM4j9LsGJRODr","slug":"mime-toolkit-file-type-lookup-e611b03a","name":"MIME Toolkit – File Type Lookup","description":"Resolve a filename, path or extension to its MIME type, charset and full Content-Type.","url":"https://mime.openverbs.com/v1/lookup","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["path"],"properties":{"path":{"type":"string","maxLength":4096,"minLength":1,"description":"A filename, path or extension, e.g. \"report.pdf\" or \".json\"."}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_a7ynWWzwkxGCETT_Ipbw2","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the MIME type for a given filename, file path, or file extension","exampleAgentPrompt":"What's the correct MIME type for a file called 'report.pdf'? I need the exact content type string to set in my HTTP headers.","exampleUseCases":[{"title":"Set correct upload content type","prompt":"I'm about to upload a file named 'presentation.pptx' to my server — what MIME type should I send in the Content-Type header?"},{"title":"Validate file type in pipeline","prompt":"I have a file called 'data_export.csv' going through my processing pipeline — can you look up its MIME type so I can route it correctly?"},{"title":"Resolve MIME type from extension","prompt":"What's the MIME type for files with a .wasm extension? I need to serve them correctly from my web server."}],"resultDescription":"The MIME type string (e.g. 'application/pdf', 'application/json', 'video/mp4') corresponding to the provided filename, path, or extension, allowing correct Content-Type assignment in HTTP responses, uploads, or file processing pipelines.","failureModes":["Unknown or unrecognized extension returns null or generic 'application/octet-stream'","Empty or missing path field returns a validation error","Path exceeding 4096 characters is rejected","Ambiguous extensions with multiple possible types may return only the most common mapping"],"whenToPreferThis":"Use this endpoint when you need a reliable, programmatic MIME type lookup from a filename or extension without bundling a local MIME database. Particularly useful in serverless or lightweight agent environments where installing mime-type libraries is impractical, or when centralizing content-type resolution across a multi-service architecture.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:30:29.564Z","isFirstParty":false}