Server SDK

In addition to being able to use Messages via the REST APIs, Vonage also provides Server SDK support. The Server SDK provides a straightforward way to build your Messages applications. You can call the Server SDK to carry out tasks such as sending messages from your application.

Installation

Vonage Server SDKs containing support for the Messages API, and are available for various languages/environments:

See the relevant README files for individual installation instructions. For example, the Node SDK can be installed using:

npm install @vonage/server-sdk

If you already have the Node Server SDK installed the above command will upgrade your SDK to the latest version.

Usage

If you decide to use the Server SDK you will need the following information:

KeyDescription
VONAGE_API_KEYThe API key which you can obtain from your Vonage API Dashboard.
VONAGE_API_SECRETThe API secret which you can obtain from your Vonage API Dashboard.
VONAGE_APPLICATION_IDThe Application ID for your Vonage API Application which can be obtained from your Vonage API Dashboard.
VONAGE_APPLICATION_PRIVATE_KEY_PATHThe path to the private.key file that was generated when you created your application.

These variables can then be replaced with actual values in the Server SDK example code.

Examples

See the code snippets section for further examples on how to use the Server SDK.