Skip to main content

Requirements

As best practice, it is recommended to set up your environment variables. Create a .env file in your project root and add the following:
Your Valence API Key is required, while while all other fields are optional.

Usage

Install the package via npm.
You can validate the package configuration using the following code:
Client Constructor:
DiscreteAPI:
AsynchAPI:
Advanced AsynchAPI Usage: This usage is only recommended if you receive errors during file uploads or require smaller upload segments during the upload of a large file.
More information about additional parameters and expected values can be found in the API Reference.

Ready to Get Started?

Check out the Valence package on NPM →