Skip to main content

Getting Started

JavaScript

If integrating directly into your JavaScript frontend, our Client Library simplifies the process.

// yarn
yarn add @segna/segna-sdk

// npm
npm i @segna/segna-sdk

Import the library and initialize with your API Key, which can be found in your Account Settings.

import segna from '@segna/segna-sdk';

segna.initialize({apiKey: '<YOUR_API_KEY>'});