{"uid":"cap_3Hp4TXb-FsaZutExxP_11","slug":"mime-toolkit-extension-lookup-db6bce28","name":"MIME Toolkit – Extension Lookup","description":"Resolve a MIME type to its default file extension.","url":"https://mime.openverbs.com/v1/extension","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":["mimeType"],"properties":{"mimeType":{"type":"string","maxLength":256,"minLength":1,"description":"A MIME type, e.g. \"text/html\"."}},"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_eWRk6yk3dO-rMfbazzJk6","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 file extension(s) associated with a given MIME type string","exampleAgentPrompt":"What file extension goes with the MIME type 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'?","exampleUseCases":[{"title":"File download naming from content type","prompt":"I'm receiving HTTP responses with a Content-Type header of 'image/webp' — what file extension should I append when saving these files to disk?"},{"title":"Attachment extension validation","prompt":"A user uploaded something with MIME type 'audio/mpeg' — what file extension does that correspond to so I can rename it correctly?"},{"title":"Dynamic file export labeling","prompt":"I'm generating exports with content type 'application/vnd.ms-excel' and need to know the right file extension to give those downloads."}],"resultDescription":"The endpoint returns the standard file extension or extensions associated with the provided MIME type, enabling correct file naming, storage, or routing based on content type information.","failureModes":["Unknown or non-standard MIME type returns empty or null extension list","Malformed MIME type string (e.g. missing slash) may return an error or empty result","MIME types with no registered extension (e.g. vendor-specific types) may not resolve","Rate limiting or payment failure if x402 payment header is missing or invalid"],"whenToPreferThis":"Choose this endpoint when you need a quick, authoritative lookup of file extensions from MIME type strings — particularly useful in file handling pipelines, download managers, or upload validators where you have a content-type header and need to derive the correct file extension without maintaining your own MIME database.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:34:38.610Z","isFirstParty":false}