Skip to content

Server Environment Setup

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

To start, go to the Openfort Dashboard and select your desired project from the dropdown at the top. Then, navigate to the Developers page > API Keys tab for your app. Then grab your secret key.

Once you've retrieved your API keys, you can begin interacting with Openfort's API in one of two ways: using the server-side SDKs, or querying Openfort's REST API directly.

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.

Node.js
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:

headers: {
    'Authorization': `Bearer sk_test_...`,
}