Skip to content

Create an API key

Every call to the regfish API needs an API key in the x-api-key header. You create it in the dash.

Account → Security → API Keys, direct address: dash.regfish.de/my/setting/security/api-keys

The API key overview

The table lists, for each key:

Column Meaning
Created When the key was created
Status Active or disabled
API key (last 4 characters) Only the end of the key — the full value is never shown again
Permissions Which areas the key may use, editable via Manage
Last used How to spot keys that are no longer in use

Add another API key creates a new one, disable switches a key off temporarily, and delete removes it for good.

When you create a key, you see its full value once and only once. After that the dash shows only the last four characters. So copy it straight to where it belongs — into a password manager, into your CI configuration, or into a .env file outside the repository.

Manage is where you decide what a key is allowed to do. A key with Full product access can do everything you can do yourself. For a script that only reads DNS records that is more than necessary — restrict it to the smallest scope that still does the job.

Which permissions a call needs is listed with every endpoint in the API reference. If one is missing, the API responds with 401 and the error message points you to where to grant it.

The API can also tell you which permissions an existing key actually holds: Inspect the current API key.

Terminal-Fenster
curl -X GET 'https://api.regfish.com/dns/zones' \
-H 'x-api-key: $REGFISH_API_KEY'

Keep the key in an environment variable rather than in the command itself — otherwise it ends up in your shell history.