HTTP API FreezeText provides a local HTTP API for automation and integration with other applications. The API must be enabled in settings under API .
Setup Open Settings → API Enable Enable API server Optional: Generate an API token for authentication The server is available at http://localhost:9876 Authentication If an API token is configured, every request must include the token as a Bearer token in the Authorization header:
Authorization: Bearer <your-token> Endpoints Capture & OCR Endpoint Method Description /statusGET Server status, version, history count /captureGET/POST Start text capture /capture/cancelPOST Cancel ongoing capture /capture/regionPOST Capture and OCR a specific screen region /ocrPOST Perform OCR on a provided image /ocr/languagesGET/PUT Get/update OCR languages
History Endpoint Method Description /historyGET List all entries (filter by color, sorting) /history/search?q=GET Full-text search in history /historyPOST Add new entry /history/:idGET Get single entry /history/:idPUT Update entry text /history/:idDELETE Delete entry /historyDELETE Clear all entries /history/:id/screenshotGET Get entry screenshot /history/export/jsonGET Export history as JSON /history/export/csvGET Export history as CSV
Settings & UI Endpoint Method Description /settingsGET/PUT Get/update settings /hotkeyGET/PUT Get/update hotkey /hotkey/resetPOST Reset hotkey to default /preferencesGET/POST Open preferences window (optional tab parameter) /sidebarGET Sidebar visibility state /sidebar/showPOST Show sidebar /sidebar/hidePOST Hide sidebar /sidebar/togglePOST Toggle sidebar visibility /aboutGET/POST Show About window /onboardingGET/POST Show onboarding wizard
Screenshots & Windows Endpoint Method Description /windowsGET List all visible FreezeText windows /screenshotGET Capture FreezeText windows as PNG /screenGET Full screen capture as PNG /sidebar/screenshotGET Capture sidebar as PNG /displaysGET List all connected displays /permissionsGET Permission status (Screen Recording, Accessibility)
Mouse & Keyboard (requires Accessibility permission) Endpoint Method Description /mouse/positionGET Current mouse position /mouse/movePOST Move mouse cursor /mouse/clickPOST Perform mouse click /mouse/dragPOST Perform drag operation /keyboard/typePOST Type text character by character /keyboard/keyPOST Press single key /keyboard/hotkeyPOST Press key combination
Miscellaneous Endpoint Method Description /legal/:typeGET Legal texts (impressum, terms, privacy, accessibility) /logsGET/DELETE Get/clear logs /docsGET Swagger UI documentation /openapi.jsonGET OpenAPI specification /quitPOST Quit application
Example # Start text capture via API
curl http://localhost:9876/capture
# Get history
curl http://localhost:9876/history
# With authentication
curl -H "Authorization: Bearer my-token" \
http://localhost:9876/history ← Keyboard Shortcuts Technical Details →