{"message":"Snap Screenshot API","version":"1.0.0","endpoint":"POST /api/screenshot","authentication":"Required via Authorization header, X-API-Key header, or apiKey query parameter","requestBody":{"url":{"type":"string","required":true,"description":"URL to screenshot"},"width":{"type":"number","default":1920,"description":"Viewport width in pixels"},"height":{"type":"number","default":1080,"description":"Viewport height in pixels"},"fullPage":{"type":"boolean","default":false,"description":"Capture full scrollable page"},"format":{"type":"string","default":"png","options":["png","jpeg","webp"],"description":"Output format"},"quality":{"type":"number","default":80,"description":"Image quality (1-100, jpeg/webp only)"},"delay":{"type":"number","default":0,"description":"Additional delay in ms before screenshot"},"waitUntil":{"type":"string","default":"networkidle2","options":["load","domcontentloaded","networkidle0","networkidle2"],"description":"Wait event before screenshot"},"dismissCookieBanners":{"type":"boolean","default":false,"description":"Auto-dismiss cookie consent popups"},"hideTestingOverlays":{"type":"boolean","default":false,"description":"Hide common testing/debug overlays (Vercel, Lanyard, Hypertune, etc.)"},"darkMode":{"type":"boolean","default":false,"description":"Emulate dark mode preference"},"deviceScaleFactor":{"type":"number","default":1,"description":"Device scale factor (1-3 for retina)"},"extractClickables":{"type":"boolean","default":false,"description":"Extract clickable elements with coordinates (returns JSON response)"},"storeResult":{"type":"boolean","default":false,"description":"Save screenshot to server and return URL instead of binary/base64 data"},"baselineUrl":{"type":"string","required":false,"description":"Baseline URL for visual diff comparison. When provided with storeResult, captures both URLs and generates a diff image."}},"example":{"curl":"curl -X POST http://localhost:3000/api/screenshot -H \"Content-Type: application/json\" -H \"Authorization: Bearer YOUR_API_KEY\" -d '{\"url\": \"https://retool.com\", \"fullPage\": true, \"dismissCookieBanners\": true}' --output screenshot.png"}}