TekkscopeTekkscope
    QuickstartAuthenticationPricing
POSTSearchPOSTTekPOSTLensPOSTDeepLensPOSTReportLens
Docs

ReportLens API

ReportLens is a specialized service for generating comprehensive, structured reports. It performs extensive research and compiles the findings into a downloadable Markdown document.

Generate Report

Trigger the report generation process. Returns a URL to the generated file upon completion.

POST/reportlens/research

Request Body

payload.json
1{ 2 "query": "string", 3 "settings": { 4 "max_results": 12, // Optional. 5 "iteration_depth": 4 // Optional. Depth of research. 6 } 7}

Example Request

curl.sh
1curl -X POST "https://api.tekkscope.com/reportlens/research" \ 2 -H "Authorization: Bearer YOUR_API_KEY" \ 3 -H "Content-Type: application/json" \ 4 -d '{ 5 "query": "Market analysis of electric vehicles in Europe 2024" 6 }'

Response

response.json
1{ 2 "result": { 3 "summary": "Short summary of the report...", 4 "download_url": "https://storage.tekkscope.com/reports/...", 5 "formatted_findings": "# Full Markdown Content..." 6 } 7}

Stream Report Generation

Monitor the report creation progress. The final message usually contains the download URL.

GET/reportlens/research/stream

Query Parameters

  • query (string) - Required

Example Request

stream.js
1const eventSource = new EventSource( 2 "https://api.tekkscope.com/reportlens/research/stream?query=ev+market+analysis&token=YOUR_API_KEY" 3); 4 5eventSource.onmessage = (event) => { 6 const data = JSON.parse(event.data); 7 8 if (data.type === "thinking") { 9 console.log("Status:", data.content.phase); 10 } else if (data.type === "response") { 11 // Checks if content is a URL 12 if (data.content.startsWith("http")) { 13 console.log("Download Report:", data.content); 14 } else { 15 // Or partial content updates 16 console.log("Content:", data.content); 17 } 18 } 19};