aireg signs in to Atlan Trident on its own and never prints its token, so it cannot supply one for direct API requests; see Use aireg with Atlan.
Before you begin
Before you start, make sure you have:- Approved secret store: An ignored local file such as
.env.local, a secret manager, or encrypted CI secrets. - Target workspace: The workspace you intend to read or write.
1
Get API key
Get a key for the identity the requests should act as:
- For yourself or a service account: In Atlan Trident, open Settings, select API keys, then New API key, and grant it access to the workspaces it needs. The value is shown once.
- For an agent: Use the agent’s own key from Settings > Identity on its profile, so its traces and records belong to the agent.
2
Store key securely
Load local keys from an ignored
.env.local file or a secret manager, and store CI keys in encrypted secrets such as GitHub Actions secrets. Never put a key in a URL, example, log, screenshot, browser local storage, or committed .env file. Rotate it immediately if it appears in source control or build output.4
Verify resolved identity
Call
GET /registry/v1/auth/whoami, or client.auth.whoami() in the Identity, and confirm the account it returns. It does not prove access to every workspace or operation, so make a read in the target workspace before any write.Troubleshooting
For a401 or 403, see Errors and retries. For a rejected SDK management call, see AtlanAPIError from management call.
Next steps
- Connect to Atlan Trident: Make your first reads with the key.
See also
- Errors and retries: Error codes, causes, and when to retry.
- Organization roles: Who can manage API keys.