Package and environment
Use Node.js 20 or later. If the portal offers an SDK, record its version and filename, then verify the downloaded file’s SHA-256. Replace PACKAGE_FILE.tgz below with that exact filename.
npm install ./PACKAGE_FILE.tgzYSEND_API_BASE_URL must contain the agreed API origin: HTTPS scheme and host, without /api/v1. The SDK adds that path. Keep YSEND_API_KEY on the server; requests use X-Api-Key.