Account Setup
API Keys
Create and manage your API keys for test and production use.
API Keys
API keys authenticate your integration with Aldersverificering. You manage them at Account → API Keys.
Key types
| Type | Prefix | Use | Billed |
|---|---|---|---|
| Test | pk_test_ | Development against the MitID test environment | Never |
| Production | pk_live_ | Live verifications from real users | Yes |
Creating a key
- Go to Account → API Keys
- Click Create test key or Create production key
- Optionally add a label (e.g. "Production – website") and an expiry date
- Copy the key — it is only shown once
Store the key in an environment variable or secrets manager. Do not commit it to version control.
Key limits
Your plan determines how many keys you can hold at once. You can delete unused keys to free up slots.
Key expiry
If you set an expiry date, the key stops working after that date. This is useful for third-party integrations or temporary access. Keys without an expiry date remain valid until deleted.
Rotating a compromised key
If you suspect a key has been leaked:
- Go to Account → API Keys
- Delete the compromised key
- Create a new key
- Update your integration with the new key
There is no way to recover a deleted key.