Skip to main content

Node.js SDK

Node.js SDK

node-sdk

Installation​

npm install --save @basis-theory/node-sdk

Initialization​

BasisTheoryEnvironment values: Default (api.basistheory.com), Us (api.us.basistheory.com), Eu (api.eu.basistheory.com), Test (api.test.basistheory.com). Omitting environment uses Default. See Regional Endpoints.
import { BasisTheoryClient, BasisTheoryEnvironment } from "@basis-theory/node-sdk";

const client = new BasisTheoryClient({ apiKey: "YOUR_API_KEY", environment: BasisTheoryEnvironment.Test });