Skip to main content
To connect your application with StackOne securely, you need to generate API keys. These keys authenticate your application and protect your data.

Step-by-Step Guide to Generating an API Key

1

Access the API Key Management Section

Log in to StackOne and go to Project Settings > API Keys in the left navigation menu. This is where you can generate and manage your API keys.
API Keys management page
2

Generate a New API Key

Click the Create API key button. In the popup dialog, enter a name for your key (e.g., my-agent-key or production-hris-sync). This name is a label and cannot be changed later.
Create API key dialog with scopes
3

Configure API Key Scopes (optional)

New keys come with a default set of scopes enabled (see the Default column below). Expand the Scopes section to enable or restrict access based on your application’s needs.

Available Scopes

ScopeDefaultDescription
Platform APIRead + WriteAccess to account management, session tokens, and connector profiles. Required for Platform API operations such as StackOne Connect and account management.
ActionsExecuteAllows you to interact with actions via RPC and MCP.
ConnectorsReadAccess to custom connector management. Read (connectors:read) allows downloading connectors from the registry. Write (connectors:write) allows pushing and deleting connectors. Required for Connector Engine operations.
CredentialsOffRetrieve stored credentials for direct provider access (read-only). Required for StackOne CLI and running actions outside the platform.
Unified APIRead + WriteAccess to all legacy (unified) endpoints (HRIS, ATS, CRM, LMS, etc.) for reading and writing data across connected providers.
For AI agents, you typically need:
  • Platform API Read: to list connected accounts
  • Actions Execute: to interact with actions via RPC and MCP
  • Connectors Read: to download connectors from the registry
  • Credentials Read: to retrieve stored credentials for direct provider access
4

Copy and Store the API Key

After clicking Generate, the API key is displayed on-screen. Copy it immediately and store it securely. This is the only time it will be shown. If you lose the key, you’ll need to generate a new one.
Store the key in a secure location such as a password manager or secrets vault. Never commit API keys to source control.
5

Manage Your API Keys

Your new API key appears in the API Keys table. From here you can:
  • Enable/Disable keys using the toggle switch
  • View scopes for each key
  • Delete keys that are no longer needed
The Last used column helps you identify stale keys that should be revoked.

Using the generated API Key

You will need to include the API key for every API call. Pass the API key as the username for Basic authentication (no password required) when calling any API endpoint, such as the List Accounts endpoint. The use of API keys is tracked, allowing you to monitor their activity and revoke them if necessary. The Last used column on the API keys table indicates the last call made with each key. For security reasons, you are encouraged to regularly review your API keys list and revoke any that are no longer needed.