Generating API keys for authentication
With an API key, you can automatically authenticate to IBM Data Product Hub from a script or application. Your API keys are associated with your credentials and are specific to you. With API keys, you can authenticate without entering your password.
You can also generate a new API key programmatically by using the Get API key endpoint. However, this endpoint requires a ZenApiKey
authorization token or Bearer token, and it is not recommended.
Your platform API key enables scripts and applications to access everything that you would typically be able to access when you log in to the IBM Data Product Hub web client. An instance API key enables access only to the specific instance that it is generated from.
Platform API key
With a platform API key, you can access everything that you would typically be able to access when you log in to the IBM Data Product Hub web client.
To generate a platform API key:
- Log in to the web client.
- From the toolbar, click your avatar.
- Click Profile and settings.
- Click .
- Click Generate.
- Click Copy and save your key somewhere safe. You cannot recover this key if you lose it.
If you lose your API key, repeat the preceding steps to generate a new API key. Your old API key becomes invalid, and any applications or scripts cannot authenticate to the platform until you provide your new API key.
If you believe that your API key is compromised:
- Log in to the web client.
- From the toolbar, click your avatar.
- Click Profile and settings.
- Click .
- Click Revoke.
Any applications or scripts that use the key won't be able to authenticate to the platform.
API tokens
To generate an API authorization token, use one of the following methods.