This is the API reference for the Flowglad API! We highly recommend using our SDKs to interact with the API. But if you need to interact with API resources directly, this is the place to be.
In the case that you need to interact with the REST API directly, the easiest way is to install @flowglad/node:
Copy
Ask AI
pnpm install @flowglad/node
This will give you a Flowglad class that you can use to interact with the API.
Copy
Ask AI
import { Flowglad } from '@flowglad/node'const flowglad = new Flowglad({ apiKey: 'sk_test_.......', // or set your FLOWGLAD_SECRET_KEY environment variable})