Gå til hovedindhold
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

TypePrefixUseBilled
Testpk_test_Development against the MitID test environmentNever
Productionpk_live_Live verifications from real usersYes

Creating a key

  1. Go to Account → API Keys
  2. Click Create test key or Create production key
  3. Optionally add a label (e.g. "Production – website") and an expiry date
  4. 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:

  1. Go to Account → API Keys
  2. Delete the compromised key
  3. Create a new key
  4. Update your integration with the new key

There is no way to recover a deleted key.

On this page