Skip to main content

Service Accounts

Overview​

A service account is a machine identity — an account that belongs to an integration rather than to a person. It holds its own roles, and it owns the API keys that an external system uses to authenticate. Use one whenever another system needs to talk to QAbility without a person signing in: syncing records with an ERP, feeding a dashboard, or running a scheduled job.

You'll find Service Accounts in the Settings section of the sidebar. The page lists every service account in your company, with its status and roles. Select the chevron on a row to expand it and see that account's keys.

note

QAbility used to offer personal API keys — a key you created against your own login, which then carried your permissions. Personal keys were retired in September 2026 and replaced by service accounts. A personal key silently picked up every new permission its owner was later granted; a service account has exactly the roles someone deliberately gave it. If you used a personal key before, create a service account for that integration and issue it a new key.

Why a service account, not a person's key​

Personal key (retired)Service account
Whose permissions?Whatever its owner happens to hold, now and in futureOnly the roles assigned to the account
When the owner leavesKey dies with the account — the integration breaksUnaffected; the integration keeps running
Who does the audit trail name?The personThe integration
Who can see it?Only its ownerEveryone with access to the Service Accounts page, in one list

Because every service account appears in one list, the Service Accounts page is a complete map of what is connected to your company's QAbility account.

Key concepts​

ConceptWhat it means
Service accountThe machine identity. It has a name, a description, roles, and a status. It has no email and no password, so it cannot sign in to the app.
RolesWhat the account is allowed to do. They are chosen when you create the account.
API keyA long, random secret an external system sends with each request. An account can own several. Each is shown once, when it is issued.
Account statusActive or Disabled. Disabling the account stops every key it owns at once.
Key statusActive, Revoked, or Expired.
ExpiryAn optional date after which an individual key stops working on its own.
Last usedWhen a request last authenticated with a key — useful for spotting keys nothing uses any more.
note

QAbility stores only a hashed copy of each key — never the original. That's why the full key is displayed only when it is issued. If you lose it, you can't recover it; revoke it and issue a new one.

How to create a service account​

  1. Open Service Accounts from the Settings section of the sidebar.
  2. Select New Service Account.
  3. Enter a clear Name (at least 3 characters) describing the system it represents, such as "ERP nightly sync" or "Dashboard feed", and a short Description of what it does.
  4. Under Roles, choose the roles it needs — and only those. An integration that reads suppliers should not hold a role that can approve documents.
  5. Select Create. The account appears in the list as Active.
warning

You can only give a service account permissions you hold yourself, at the same scope or narrower. Anything wider is refused, and the message names the permissions involved. The same check runs again when you issue a key, so an existing account can't be used to reach access you were not granted.

note

A service account's name, description, and roles can't be edited after it is created. To change what an integration is allowed to do, create a new service account with the right roles, issue it a key, switch the integration over, and then delete the old account.

How to issue an API key​

  1. On the Service Accounts page, select the chevron on the account's row to expand its keys.
  2. Select Issue key. (The button is unavailable while the account is disabled.)
  3. Enter a Key Name describing where the key will live (which server, which script), and optionally an Expires At date. Leave the date empty for a key that doesn't expire.
  4. Select Issue Key. The dialog changes to Key Issued and shows the key once. It starts with sk_ and is masked by default — use the eye icon to reveal it, or the copy icon to copy it.
  5. Copy it immediately and store it in a secrets manager or password vault, then select Done. Once you close the dialog, the key can't be shown again.

Give each system its own key, so you can revoke one without disrupting the others.

How to use an API key​

Send the key with each request to the QAbility REST API, in either of these HTTP headers:

x-api-key: <your-key-value>
Authorization: Bearer <your-key-value>

The request is treated as if the service account made it, with the account's roles. Anything those roles don't allow is refused, just as it would be in the app.

note

API keys are not accepted on the GraphQL endpoint, and they can't be used to manage service accounts or issue further keys — a leaked key can't be used to create more keys.

How to turn access off​

You have three options, from broadest to narrowest:

  • Disable the account — select the disable icon on the account's row. Every key the account owns stops working, and no new key can be issued. Select the enable icon to turn it back on.
  • Revoke a key — expand the account, select Revoke next to the key, and confirm. That key stops working permanently while the account's other keys keep working. A revoked key can't be restored; issue a new one instead.
  • Delete the account — select the delete icon on the account's row and confirm. Every key the account owns is revoked immediately, and any integration using one stops working. This can't be undone.
tip

Rotate keys periodically: issue a new key, switch the integration over to it, confirm everything still works, then revoke the old one. Both keys are valid during the changeover, so there's no downtime.

warning

Anyone holding a key can act as the service account. Never paste keys into emails, chat messages, shared documents, or source code committed to a repository. Store them in a secrets manager, and revoke immediately if a key is ever exposed.

Tips​

  • Use the Last used time on each key to find keys nothing uses any more, and revoke them.
  • Name keys after the system that uses them, so a key found in a log can be traced back to one place.
  • If you can't see Service Accounts in the sidebar, or an action is refused, ask an administrator to grant you access to service accounts.