Server Environment Quickstart
This guide will help you set up your server environment to work with Openfort, including getting your API keys and configuring the necessary SDKs for backend operations.
Get your API keys
Before you begin, go to the Openfort Dashboard and select your desired project from the dropdown at the top. Then, navigate to the API Keys tab for your app. Then grab your secret key.
One-click deploy
Use our prebuilt endpoint and deploy in one click on Cloudflare or Vercel as a function.
Manual setup
You can also manually set up a backend server using your preferred framework. Below are instructions for setting up with Node.js and .NET.
Server SDKs
These libraries include helpful utilities around verifying access tokens issued by Openfort and interacting with Openfort's API to query and import users, create wallets, verify webhooks, and more.
You can visit the SDK reference documentation to learn more about the available SDKs and how to use them in your server-side application.
const Openfort = require('@openfort/openfort-node').default;
const openfort = new Openfort(YOUR_SECRET_KEY);
Using the REST API
You can visit the API reference documentation to learn more.
For example, in a JavaScript fetch request, your headers should look like:
fetch('https://api.openfort.io/v1/some-endpoint', {
method: 'GET',
headers: {
'Authorization': `Bearer sk_test_...`,
}
});