Skip to main content

Express

Add a file upload endpoint to an Express app that routes through Docex for vision analysis.

Prerequisites

  • Express 4+
  • docexdev installed
  • multer or similar for file upload handling
  • DOCEX_API_KEY and DOCEX_BASE_URL configured

Server

Test

Environment variables

Keep DOCEX_API_KEY server-side only. Do not send it to the client.