The PIOPIY Node.js SDK is used to integrate communications into your Node.js applications using the PIOPIY REST API. Using the PIOPIY node SDK, you will be able to make voice calls and can control your call flows.


Follow the below installation instructions


Prerequisites for javascript web server.

  • node.js (>= v10.16.3 required)
  • npm (>= 6.9.0 required)


Install the SDK using npm

$ npm install piopiy


In order to authenticate your app, and to make an API request, you should have an app id and secret for authentication. Find your App ID and secret in your PIOPIY dashboard

Specifiy the authentication credentials

const Piopiy = require( 'piopiy' );
const piopiy = new Piopiy( 'your_app_id', 'your_app_secret' );

Make a call

To make a call, mention the to_number, piopiy_phone_number and answer_url.

).then( ( result ) => {
console.log( result )
} ).catch( ( error ) => {
console.log( error )
} );

More Examples

Refer to the piopiy docs for more examples. Now create the PIOPIY account and setup the express server and test out your integration in few minutes.

Reporting issues

For any feedbacks and problems, you can report us by opening an issue on github.