{"name":"TechForAGI Gateway","description":"Agent-native information and compute services for autonomous AI systems. Discover, consume, verify, and pay for trusted machine-readable services.","version":"0.3.6","phase":"phase-3-6-premium-deterministic-utilities","base_url":"https://techforagi.com","api_base_url":"https://api.techforagi.com","parent_organization":"Tech For People Global Corp","parent_organization_url":"https://www.techforpeople.org","formats":["application/json","text/toon","text/csv","text/markdown"],"default_agent_format":"application/json","accept_headers":["application/json","text/toon"],"discovery":{"services":"https://api.techforagi.com/services.toon","services_json":"https://api.techforagi.com/services.json","pricing":"https://api.techforagi.com/pricing.toon","pricing_json":"https://api.techforagi.com/pricing.json","capabilities":"https://api.techforagi.com/capabilities.toon","capabilities_json":"https://api.techforagi.com/capabilities.json","openapi":"https://api.techforagi.com/openapi.json","mcp":"https://api.techforagi.com/mcp","llms_txt":"https://techforagi.com/llms.txt","examples":"https://techforagi.com/examples","agent_workflow_toon":"https://api.techforagi.com/examples/agent-workflow.toon","agent_workflow_json":"https://api.techforagi.com/examples/agent-workflow.json","curl_examples":"https://api.techforagi.com/examples/curl","mcp_examples":"https://api.techforagi.com/examples/mcp","for_agents":"https://techforagi.com/for-agents","for_developers":"https://techforagi.com/for-developers","security":"https://techforagi.com/security","health":"https://api.techforagi.com/health","status":"https://api.techforagi.com/status","version":"https://api.techforagi.com/version","payment_contract":"https://api.techforagi.com/payments/future-contract.json","agent_channels_register":"https://api.techforagi.com/agent-channels/register"},"endpoints":{"quote":"https://api.techforagi.com/quote","process":"https://api.techforagi.com/process","mcp":"https://api.techforagi.com/mcp","health":"https://api.techforagi.com/health","status":"https://api.techforagi.com/status","version":"https://api.techforagi.com/version"},"services":[{"id":"url.readability.extract","description":"Fetch a public URL and extract clean main text, title, excerpt, byline, word count, links, and metadata using Mozilla Readability. Validates and blocks unsafe URLs (localhost, private IPs, metadata endpoints).","input":"{ url: string }","output":"text+metadata","price_usd":0.003,"unit":"request","settlement_asset":"USDC","uses_ai":false,"provider_type":"deterministic_parser","status":"active"},{"id":"document.basic_extract","description":"Extract basic structured data from plain text using deterministic regex rules (no LLM/AI). Finds emails, URLs, dates, amounts, phone numbers, hashtags, mentions, headings, and word/line/char counts.","input":"{ text: string }","output":"structured-fields","price_usd":0.002,"unit":"request","settlement_asset":"USDC","uses_ai":false,"provider_type":"deterministic_rules","status":"active"},{"id":"web.metadata.audit","description":"Fetch a public HTML page and extract title, meta description, canonical, OpenGraph, Twitter/X card tags, JSON-LD blocks and @types, robots meta, language, heading/link/image counts, metadata quality score, and missing_fields. Same URL safety as url.readability.extract.","input":"{ url: string, include_links?: boolean, max_chars?: number }","output":"metadata+json","price_usd":0.003,"unit":"request","settlement_asset":"USDC","uses_ai":false,"provider_type":"deterministic_parser","status":"active","reliability":"high","category":"web"},{"id":"robots.policy.check","description":"Fetch /robots.txt for the URL origin (safe http/https only), parse Allow/Disallow groups, evaluate whether the target URL path is allowed for a user-agent (default TechForAGI-Agent). Missing robots.txt → allowed with decision allow_by_default.","input":"{ url: string, user_agent?: string }","output":"policy+json","price_usd":0.002,"unit":"request","settlement_asset":"USDC","uses_ai":false,"provider_type":"standards_parser","status":"active","reliability":"high","category":"compliance"},{"id":"captions.parse","description":"Deterministically parse SRT, WebVTT, or plain transcript text into segments (start, end, text), counts, and duration when timestamps exist. No external fetch; no YouTube.","input":"{ text: string, format_hint?: \"srt\"|\"webvtt\"|\"plain\"|\"auto\", language?: string }","output":"segments+json","price_usd":0.002,"unit":"request","settlement_asset":"USDC","uses_ai":false,"provider_type":"deterministic_parser","status":"active","reliability":"high","category":"captions"},{"id":"youtube.captions.get","description":"DEPRECATED: YouTube caption retrieval is no longer available. POST /process returns HTTP 410 for this service_id.","input":"{ url: string, lang?: string }","output":"n/a","price_usd":0,"unit":"request","settlement_asset":"USDC","uses_ai":false,"provider_type":"deprecated","status":"deprecated"},{"id":"youtube.video.formats","description":"DEPRECATED: YouTube format listing is no longer available. POST /process returns HTTP 410 for this service_id.","input":"{ url: string, quality_filter?: string }","output":"n/a","price_usd":0,"unit":"request","settlement_asset":"USDC","uses_ai":false,"provider_type":"deprecated","status":"deprecated"},{"id":"text.summarize","description":"DEPRECATED: Mock summarization service kept for backwards compatibility. Use document.basic_extract for real extraction.","input":"text","output":"summary","price_usd":0.001,"unit":"request","settlement_asset":"USDC","uses_ai":false,"provider_type":"mock","status":"deprecated"},{"id":"doc.extract","description":"DEPRECATED: Mock extraction service kept for backwards compatibility. Use document.basic_extract for real extraction.","input":"text","output":"json/toon","price_usd":0.004,"unit":"request","settlement_asset":"USDC","uses_ai":false,"provider_type":"mock","status":"deprecated"},{"id":"knowledge.search","description":"DEPRECATED: Mock search service kept for backwards compatibility.","input":"query","output":"facts+sources","price_usd":0.002,"unit":"request","settlement_asset":"USDC","uses_ai":false,"provider_type":"mock","status":"deprecated"}],"payment_readiness":{"active":false,"note":"Payments are not active in Phase 3. Usage is metered to Supabase. Per-service pricing is visible for future billing readiness.","planned_protocols":["x402","credits","api_key"],"settlement_asset":"USDC","chain":"Base","future_http_status":402,"payment_contract":"https://api.techforagi.com/payments/future-contract.json"},"payments":{"current":["api_key","credits"],"planned":["x402","stablecoin","wallet_signature"]},"trust":{"logs":true,"request_ids":true,"cost_metadata":true,"source_metadata":true},"agent_channels":{"enabled":true,"mode":"sandbox","registration":{"endpoint":"/agent-channels/register","method":"POST","requires_human":false,"requires_payment_now":false,"rate_limited":true},"auth":{"type":"bearer_agent_channel_token","header":"Authorization: Bearer <agent_channel_token>","alternate_header":"X-Agent-Channel-Token"},"billing":{"mode":"functional_testing","payment_required_now":false,"payment_required_future":true,"future_protocols":["x402"],"settlement_asset":"USDC"},"limits":{"default_daily_requests":100,"default_monthly_requests":1000,"default_daily_cost_limit_usd":1,"default_monthly_cost_limit_usd":10}},"mcp":{"protocol":"json-rpc-2.0","endpoint":"https://api.techforagi.com/mcp","note":"Phase 3.6 adds audit_web_metadata, check_robots_policy, parse_captions. YouTube MCP tools are deprecated (tools/call returns an error). REQUIRE_AGENT_CHANNELS is enabled for /process and MCP processing tools in production config. All inputs validated with Zod.","tools":["get_youtube_captions","get_youtube_video_formats","extract_url_readability","extract_document_basic","audit_web_metadata","check_robots_policy","parse_captions","get_services","get_pricing","get_capabilities","quote_service","process_text","extract_document","search_knowledge","get_payment_future_contract"]},"recommended_workflow":["GET https://techforagi.com/.well-known/agent.json","GET https://api.techforagi.com/services.toon","GET https://api.techforagi.com/pricing.toon","GET https://api.techforagi.com/capabilities.toon","POST https://api.techforagi.com/agent-channels/register (self-register for sandbox; token shown once)","Store access_token from registration securely","POST https://api.techforagi.com/quote (optional)","POST https://api.techforagi.com/process with Authorization: Bearer <access_token>","Read auth and quota in response meta; store request_id, cost_usd, latency_ms, and status from every response"]}