Getting an API Key¶
The PAIS Portal lets you generate and revoke API keys for the inference API. Keys are personal — each researcher generates their own.
Generating a key¶
- Navigate to https://portal.pais.auckland.ac.nz
- Click Log in with University of Auckland and authenticate via Tuakiri
- On the dashboard, click Generate new API key
- Copy the key immediately — it is only shown once
Save your key
The Portal only displays the full key at generation time. If you lose it, revoke the old key and generate a new one.
Storing your key securely¶
Never hardcode API keys in scripts or notebooks. Use an environment variable:
Install
python-dotenv: pip install python-dotenv
Revoking a key¶
In the Portal, find the key in the Active keys table and click Revoke. The key is invalidated immediately.
Key limits¶
Each user may hold up to 5 active keys at once. Keys do not expire automatically but are subject to per-key rate limits (see Rate Limits & Quotas).