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.
Navigate to Service account settings
Click Add
Give the account a meaningful name and decide whether you want to enable Basic Auth
Click Save
Add 1 or more service account keys that may be used for Authentication
Choose the key algorithm. Use
RS256for new integrations; useHS256only for legacy shared-secret integrations.Optionally set a key expiration date.
Copy the details.
Make sure private keys and shared secrets are safely stored. Delete the key if you think it has been compromised in any way.

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