Skip to content

Personal Access Tokens

Personal Access Tokens (PATs) let you authenticate to the SenseOn Customer Accessible API (CAA) programmatically, without your account password. Tokens have scopes and an expiry date, and SenseOn audits them fully.

You can use PATs for scripted integrations, for automatic case exports, and to send SenseOn data to external SIEM or SOAR platforms.

💡 Relationship to SenseOn Connect: PATs use the same token mechanism as the SenseOn Connect API. For a full description of the available API endpoints, refer to SenseOn Connect.


Creating a Token

  1. Go to Settings > Integrations > API Configuration.
  2. Click Create Token.
  3. Enter a name that describes the purpose of the token (for example, SIEM export or nightly-case-sync).
  4. Set an expiry date. You cannot create a token without an expiry date.
  5. Select the scopes that are necessary for the token (refer to Available Scopes).
  6. Click Create.

SenseOn shows the token value one time only. Copy it immediately, because you cannot get it again. If you lose the token value, revoke the token. Then create a new token.


Available Scopes

Scopes control which parts of the API the token can access. Give only the scopes that are necessary for your integration.

Scope Access granted
cases/read Read case details, observations linked to cases, and AI case summaries
cases/write Update case status and add comments
devices/read Read device and identity records
observations/read Read security observations
telemetry/read Read raw telemetry data
observations/write Create observations (you must first get approval from SenseOn: contact support)
settings/read Read appliance settings, which include escalation contacts
settings/write Update appliance settings

Listing Your Tokens

To see all the tokens that you created:

  1. Go to Settings > Integrations > API Configuration.
  2. The page shows your tokens. Each token has its name, creation date, expiry date, scopes, and last-used timestamp.

An expired token shows an Expired badge. You cannot use an expired token for authentication.


Revoking a Token

To revoke a token immediately:

  1. Go to Settings > Integrations > API Configuration.
  2. Find the token that you want to revoke.
  3. Click the three-dot menu next to it.
  4. Select Revoke.

A revoked token shows the Revoked status. You cannot restore a revoked token. If access is still necessary, create a new token.


Admin: Viewing All Tokens

Admins can see the tokens that all users in the organisation created:

  1. Go to Settings > Integrations > API Configuration.
  2. Turn on the Show all users' tokens switch at the top of the table.

This view shows the token name, owner, scopes, expiry, and last-used date for each token in the organisation. Admins can also revoke tokens that other users created.


Service Accounts

A service account is a non-human identity for an integration, for example a SIEM export or an automation pipeline. The integration does not use the personal access token of a person. It authenticates as the service account, through one Customer Accessible API token that the service account owns.

An Admin manages service accounts at Settings > Service Accounts. A service account has no role. Its access to the API comes only from the scopes of its token.

💡 Why use a service account? A personal access token belongs to the user who created it. If the account of that user is deleted, the token no longer works. A service account does not depend on a person. Thus, an integration continues to work when a team member leaves. Also, SenseOn attributes the actions of the integration to the integration, not to a person.

Service accounts compared to personal access tokens

Personal access token Service account
Belongs to The individual who creates it The organisation (a non-human identity)
Created by Any user, for their own use An Admin, at Settings > Service Accounts
Number of tokens A user can hold several Exactly one active token at a time
Expiry Required Optional (a token can be set never to expire)
Attribution The individual's name The service account's name, with a service-account badge

Creating a Service Account

  1. Go to Settings > Service Accounts.
  2. Click Create service account.
  3. Enter a Name that identifies the integration (for example, SOC Automation).
  4. (Optional) Enter a Description of the purpose of the account.
  5. Click Create.

SenseOn creates the account without a token. When SenseOn creates the account, it makes an identifier from the name. This identifier does not change if you rename the account later. Each name must be unique across your service accounts.

Issuing and Rotating the Token

A service account has at most one active token.

  1. On the Service Accounts page, find the account.
  2. Click Issue token. If the account already has a token, click Rotate token.
  3. Under Select the type of access you want to grant, select the scopes that are necessary for the integration (refer to Available Scopes).
  4. Set an Expiry date, or select the Token never expires checkbox.
  5. Click Issue token (or Rotate token).

SenseOn shows the token value one time only. Copy it immediately, because you cannot get it again.

âš  Update the integration immediately after you rotate the token. If an account already has a token, a new token revokes the current token immediately. The old token no longer works from the moment that you rotate it. Copy the new token. Then update the integration.

You cannot issue a token for a disabled account. First, enable the account again.

Managing a Service Account

Use the row menu on the Service Accounts page to:

  • Edit details: change the name or the description of the account.
  • Disable / Enable: disable the account so that its token cannot authenticate. This action does not delete the account. When you enable the account again, the token works again.
  • Revoke token: revoke the active token, but keep the account.
  • Delete: permanently delete the account and revoke its token.

The disable, revoke and delete actions ask for your confirmation first.

âš  You cannot undo the deletion of a service account. When you delete a service account, SenseOn revokes its token. The integration loses access immediately.

Identifying Service Account Actions

When a service account acts through the API, SenseOn shows the name of the service account with a service-account badge (a key icon). Thus, you do not confuse automated actions with the actions of a person. The badge shows next to a service account in case history and in case comments. In the Show all users' tokens view of Settings > Integrations > API Configuration, the account name is the label of its tokens.


Token Audit Events

The audit log records all token lifecycle events:

Event Description
caa__pat_created A new token was created
caa__pat_deleted A token was revoked

For information on how to access and filter audit events, refer to Audit Log.


Security Best Practices

  • Use the minimum scopes required: if your integration must only read cases, do not create tokens with broad access.
  • Set short expiry dates: rotate tokens regularly, especially the tokens for automated pipelines.
  • Revoke tokens when no longer needed: for example, when you decommission an integration, or when a team member with access to the token leaves.
  • Store tokens securely: treat a PAT like a password. Do not commit tokens to source control. Do not share tokens in plaintext.