{"uid":"cap_CBFSABGcbvfHuf7UAXvQ9","slug":"signalharness-content-type-detector-8e085e54","name":"SignalHarness Content Type Detector","description":"Explore 330 pay-per-call x402 API services and 27 agent-native digital products, with Base USDC pricing, secure Polar checkout, and free discovery.","url":"https://signalharness.ai/api/agent/services/content_type_detect/invoke","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","maxLength":65536,"minLength":1},"base64":{"type":"string","pattern":"^[A-Za-z0-9+/]*={0,2}$","maxLength":65536,"minLength":1},"filename":{"type":"string","maxLength":1024,"minLength":1},"declaredContentType":{"type":"string","maxLength":256,"minLength":1}}},"responseSchema":{"type":"json","example":{"replay":false,"result":{"charset":"example","warnings":["Verify the caller-supplied data before relying on this result."],"confidence":"low","declaredMime":"example","detectedMime":"example","structuralSignals":["example"]},"status":"succeeded","receipt":{"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","usage":[],"status":"succeeded","network":"eip155:8453","artifacts":[],"endedAtMs":0,"latencyMs":0,"paymentId":"example-payment","receiptId":"example-receipt","requestId":"example-request","serviceId":"content_type_detect","executionId":"example-execution","startedAtMs":0,"amountAtomic":"5000","resultSha256":"0abe3e1f995624e5b4b1ef40923938cdbeceda495862435105fd57c6d845589a","serviceVersion":"1.0.0","settlementReference":"0x0000000000000000000000000000000000000000000000000000000000000000"},"artifacts":[],"requestId":"example-request","executionId":"example-execution"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_vOPCKC9HHOGkt0xlQ_eA-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Detects and validates the MIME type of content from raw text, base64-encoded data, or filename, returning confidence level and structural signals","exampleAgentPrompt":"Can you detect the actual content type of this base64-encoded blob I received — the sender claims it's a PDF but I'm not sure: 'JVBERi0xLjQKJeLjz9MK...'?","exampleUseCases":[{"title":"File upload security validation","prompt":"I'm receiving file uploads from users who claim they're sending images, but I want to verify the actual content type matches what they declare before processing. Can you check this base64 data that was submitted as 'image/png' and tell me what it really is?"},{"title":"Unknown attachment format identification","prompt":"I got an attachment with no extension and the server sent no content-type header. Here's the raw content as base64: 'UEsDBBQABgAIAAAAIQ...' — can you figure out what kind of file this actually is?"},{"title":"Filename-based format hinting with confidence check","prompt":"I have a file named 'report.csv' but the data inside looks weird. Can you analyze the filename and this text snippet to detect what format it actually is and how confident you are: 'PK\\x03\\x04\\x14\\x00\\x00\\x00'?"}],"resultDescription":"Returns a JSON object with the detected MIME type, charset, confidence level (e.g. low/medium/high), an array of structural signals that informed the detection, any warnings, and a full payment receipt including latency, execution ID, and result hash for auditability.","failureModes":["Empty or missing input — all of text, base64, and filename are optional but at least one must be provided","Base64 string fails pattern validation — must match strict base64 pattern","Content too ambiguous to classify — returns low confidence with minimal structural signals","Input exceeds 65536 character limit — request rejected","Payment failure via x402 protocol — endpoint returns 402 before processing"],"whenToPreferThis":"Choose this endpoint when you need programmatic, agent-friendly MIME type detection with confidence scoring and structural signal transparency, especially when you cannot trust declared content types or file extensions. Ideal for security-sensitive pipelines where you need to verify content before processing, or when operating in agent workflows that require an auditable receipt of every operation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:54:57.391Z","isFirstParty":false}