API Tokens tab
API tokens are how your SDKs and scripts authenticate with Prefactor. Account-wide tokens grant access to all agents in the account; deployment-scoped tokens are narrower and embed the agent identity.
All tokens associated with the account appear in this tab.
Tokens table
Section titled “Tokens table”Each row is a single Token cell stacked with:
- A status badge: Active (authenticates API calls), Suspended (authentication disabled but recoverable), or Revoked (permanently invalidated).
- The token’s scope: Account, Environment (
) , or Agent deployment (· .) - Created – when the token was created.
- Expires – when the token expires.
- Last used – the last time the token was used in an API request, or Never.
- Created by – the user who generated the token.
A row action menu sits beside the cell. Available actions depend on the token’s current state:
- Suspend – on an active token. Disables it without deleting it.
- Activate – on a suspended token. Re-enables it.
- Revoke – on an active or suspended token. Permanently invalidates it. A revoked token cannot be re-enabled.
- Delete – on a revoked token. Removes the row.
Creating a token
Section titled “Creating a token”Token creation from this page produces account-wide tokens only.
- Select Create API token.
- Copy the token value when shown — it is only displayed once.
To create a deployment-scoped token, open the agent’s Agent › Deployments tab and use Create deployment token there.
Environment-scoped tokens may appear in the table if they were created programmatically or through a legacy flow. There is no interface on this page to create new environment-scoped tokens.
Using a token with the SDK
Section titled “Using a token with the SDK”Pass the token as PREFACTOR_API_TOKEN in your environment, or set apiToken in the SDK config directly. See Configuration and environment variables for details.
Related
Section titled “Related”- API token — what API tokens are, scoping, and how they authenticate requests.
- Account page — how Account settings tabs fit together.
- Agent page › Deployments tab — deployment-scoped tokens for a single agent.
- Configuration and environment variables — pass a token to the SDK via
PREFACTOR_API_TOKEN.