Skip to main content
Fonoster uses a Workspace-centric approach, meaning all operations are performed against a specific Workspace. By default, when you self-host Fonoster, it automatically creates a default Workspace along with a default username and password.
You must create API keys to log in to a Workspace and perform operations.

Create an API Key

1

Prepare the environment

First, create a new folder (e.g., fonoster-apikeys-demo) and navigate to it.
2

Install the SDK

Install the @fonoster/sdk package.
3

Create the script

Once the installation is complete, create a new file called index.js and add the following code:
4

Run the script

Finally, run the script.
If everything goes well, you should see the new API key printed to the console, and you can use it to log in to your Workspace.

SDK

SDK documentation at NPM.

Command-Line

Command-line documentation at NPM.