The SendSafely JavaScript SDK for Node.js lets you integrate SendSafely secure data transfer capabilities directly into your Node.js application.
npm install @sendsafely/sendsafelyThe SendSafely JavaScript API for Node.js lets you integrate SendSafely secure data transfer capabilities directly into your Node.js application.
- Node.js: v24 or higher (required starting from SDK v3.0.0)
Please ensure you upgrade to Node v24 to take advantage of the latest features and maintain compatibility with our SDK v3.0.0 and later.
Install with npm
``console`
npm install @sendsafely/sendsafely
Include the SendSafely class to start making your API calls.
`javascript
var SendSafely = require('@sendsafely/sendsafely');
//var sendSafely = new SendSafely("https://demo.sendsafely.com", "exAPIkeyxyz", "exAPIsecretxyz");
var sendSafely = new SendSafely("https://ORGANIZATION_HOST", "API_KEY", "API_SECRET");
sendSafely.verifyCredentials(function(email) {
console.log("Connected to SendSafely as user " + email);
});
``
You will need to generate your own API_KEY and API_SECRET from the API Keys section of your Profile page when logged into your SendSafely portal.