Skip to main content

Node.js SDK

Node.js SDK



Basis Theory Node.js SDK uses conventional camel case for most methods and converts these properties to snake case when sending requests to the API. One notable exception to this is the Tokenize method which uses snake case for the request body.

Getting Started

This SDK requires the use of an API Key. To create one, login into our Portal and create a new "Private" Application with the permissions you require.


npm install --save @basis-theory/basis-theory-js


import { BasisTheory } from "@basis-theory/basis-theory-js";

const bt = await new BasisTheory().init("<API_KEY>");