Skip to main content

Access (API Tokens and OAuth)

The Access tab controls what can read and manage your workspace's data besides a person signed in to the app: AI assistants, MCP clients and scripts. The SparkLogs Agent does not use this tab. Agents enroll with registration tokens.

Open Workspace Settings in the sidebar, then Access.

Access tab listing API tokens, app registrations and connected apps, with a connected app selectedAccess tab listing API tokens, app registrations and connected apps, with a connected app selected

The list on the left has three sections:

ListWhat it holdsWho needs it
Connected appsAI apps that someone approved by signing in.Anyone who connects an AI assistant.
App registrationsA client ID and secret that an Administrator created for one app.Administrators, for an app that cannot register itself.
API tokensSecrets for hosts that cannot sign in.Anyone building a programmatic integration or an automation.

When you connect an AI assistant, it opens the SparkLogs consent screen in your browser. You pick the workspace, the scopes the app may use, and the organizations it may reach.

Consent screen for Claude: your account, the app's name and return address, the workspace, the scopes, and the organizationsConsent screen for Claude: your account, the app's name and return address, the workspace, the scopes, and the organizations

After you approve, the app appears under Connected apps. It acts as you, so it can do no more than your own access allows, and the scopes you approve narrow that further. Anyone who has access in the workspace can approve an app. To revoke an app's access, select it and choose Disconnect.

ScopeShown asWhat it allows
workspace:readRead workspace informationFind organizations, devices, agents and sources. Always included.
events:queryAnalyze and query patterns in collected dataCount events, chart trends and find patterns. No raw log events.
events:readRead and export raw log eventsRead individual log events and authorize exports of raw logs.
devices:readQuery device health and stateRead and analyze device health and state over time.
analytics:readQuery App AnalyticsRun queries over App Analytics. Offered only when the workspace has App Analytics and your role includes it.

The consent screen offers only the scopes your access can use. If you gain access later, reconnect the app to add the matching scope.

App registrations​

Most AI apps register themselves when they connect and need no setup here. That includes Claude, Cursor, Codex, and Copilot Studio with Dynamic discovery.

Create an app registration when a platform cannot register itself, or when you want to hold the client ID and secret yourself, as with Copilot Studio's Manual OAuth type. Only an Administrator can create one. It is a fixed client ID and secret, bound to this workspace.

Select a registration to see its notes, return addresses, the access it may ask for and the organizations it may reach. Change any of them with Edit Registration on the command bar, or with the pencil beside the field. The + on Secrets adds a secret and keeps the previous one working for 21 days, which gives you time to update the platform.

API tokens​

Use an API token for a programmatic integration or an automation whose host cannot sign in with OAuth, such as a scheduled job that accepts only a static secret. There are two kinds.

Personal tokenWorkspace token
Who can create itAnyone with access, for themselves.Administrators and Organization Administrators.
What it can doWhat you can do. You can fix it to a narrower role, chosen permissions or chosen organizations.What its own access grants allow: a role and where it applies. That can be no more than your access when you create it.
When its creator leaves the workspaceIt is revoked.It keeps working.

When you create either kind, Further limit this token's access fixes the token to the scopes you pick. Left off, the token can use every scope its access allows.

New API token dialog with Further limit this token's access on and two scopes chosenNew API token dialog with Further limit this token's access on and two scopes chosen

Use a token​

The app shows the secret once, when you create the token. Treat it like a password and keep it in your host's secret store.

Send it as a bearer token on each request:

Authorization: Bearer <token>

Where that header goes depends on the host. For the MCP server, see Connect.

Change, rotate or revoke a token​

Select a token to see its owner, what it may do, its access limits, when it expires and when it was last used. Access limits lists the scopes the token is fixed to by name, or says No limits.

A personal API token selected on the Access tab, showing its owner, and its permissions, authorized organizations and access limits, each with a pencilA personal API token selected on the Access tab, showing its owner, and its permissions, authorized organizations and access limits, each with a pencil

The command bar acts on the selected token, and the pencil beside a field opens the same editor.

ActionWhat it does
RenameChanges the token's name.
Edit PermissionsOn a personal token, changes what it may do and in which organizations.
Edit AccessOn a workspace token, changes its access grants.
Edit LimitsChanges which scopes it may use.
Rotate TokenReplaces the secret. The old secret stops working at once.
RevokeStops the token at once and keeps it listed as a record. You cannot undo it, so create a new token if you still need access.
DeleteStops the token and removes it from the list.

Revoke and Delete are in the danger zone on the token's details. A button you cannot use says why when you point at it.

Who sees which tokens and apps​

The lists always show your own tokens and connected apps. Administrators, Organization Administrators and Auditors also see other people's tokens and apps, and workspace tokens, when that access is given on their organizations or below them.

You can manage another person's token or app, or a workspace token, only when your own access includes all of its access. One that also covers organizations you can't see is read-only for you. The rule is the same as for people and groups, described in Who you can see.