Creating service accounts
A quick guide on how to create a Service Account for our REST API.
We will here create a new a new Service Account using either the web application or our REST API.
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.
Give the account a meaningful name and decide whether you want to enable Basic Auth
Add 1 or more service account keys that may be used for Authentication
Make sure the secret is safely stored. Delete the key if you think it has been compromised in any way.
Dialog showing the created key information Create using REST API
Service accounts may be created, and keys may be rotated deleted using the REST API shown below. See our API reference for more operations
Create a new serviceAccount
post
Creates a new serviceAccount and sends an email confirmation request to the supplied email.
AuthorizationstringRequiredType "Bearer " and then your API Token
orgIdstringOptionalPin to organization.Organization.id
Body
enableBasicAuthbooleanOptionalWhether Basic Auth can be used with this service account
Example: true namestringRequiredName of the serviceAccount
Example: John Doe 400Invalid serviceAccount data
application/json
403Not authorized to create new serviceAccounts
application/json
409ServiceAccount already exists
application/json
Delete a serviceAccount
delete
AuthorizationstringRequiredType "Bearer " and then your API Token
orgIdstringOptionalPin to organization.Organization.id
400Invalid serviceAccount id
application/json
403Not authorized to delete this serviceAccount
application/json
Create a new serviceAccount key
post
Creates a new serviceAccount key
AuthorizationstringRequiredType "Bearer " and then your API Token
orgIdstringOptionalPin to organization.Organization.id
Body
201ServiceAccount key created
application/json
400Invalid serviceAccount id
application/json
403Not authorized to create new serviceAccounts
application/json
409ServiceAccount already exists
application/json
Delete a serviceAccount key
delete
AuthorizationstringRequiredType "Bearer " and then your API Token
key-idstringRequiredThe id of the key to delete
orgIdstringOptionalPin to organization.Organization.id
204ServiceAccount key deleted
400Invalid serviceAccount key id
application/json
403Not authorized to delete this serviceAccount
application/json
Last updated