Once you have setup your Nonci instance, you can start using it via the REST API or the SDK.

To install the SDK, run the following command -

Authentication

In the quickstart, when you ran the setup script, a .env file was created with an SECRET environment variable. This is your API secret and must be set as the Authorization header when using the REST API. If you are using the SDK, initialize the SDK with the secret.

const nonci = new Nonci({
  secret: process.env.SECRET,
  hostUri: "https://yournonciinstance.com",
});