For the complete documentation index, see llms.txt. This page is also available as Markdown.

Creating service accounts

A quick guide on how to create a Service Account for our REST API.

Overview

We will here create a new Service Account using either the web application or our REST API.

Prerequisites

In order to create the initial service account, the logged in user needs to have a role of Admin.

Create using app

The first service account needs to be created using our App. Whereas subsequent accounts may be created using the REST API.

  1. Click Add

  2. Give the account a meaningful name and decide whether you want to enable Basic Auth

  3. Click Save

  4. Add 1 or more service account keys that may be used for Authentication

  5. Choose the key algorithm. Use RS256 for new integrations; use HS256 only for legacy shared-secret integrations.

  6. Optionally set a key expiration date.

  7. Copy the details.

For RS256 keys, store the private key securely; Neowit stores only the public key. For HS256 keys, the shown secret will not be shown again.

If a key has an expiration date, it cannot be used after that date. Create and deploy a replacement key before the current key expires.

Dialog showing the created key information

Create using REST API

Service accounts may be created, and keys may be rotated or deleted using the REST API shown below. When creating a key through the API, expiresAt is an optional Unix timestamp in seconds. See our API reference for more operations.

Last updated