Manage API Keys¶
API keys are bound to a specific API. You generate a key directly for an API, and that key authenticates your requests to it — no application is required.
Prerequisites¶
The API must have API key authentication enabled — check the API's documentation or the security section of its specification to confirm. If the API requires a subscription, subscribe to it first.
Generate an API Key¶
- Sign in to the Developer Portal.
- Click APIs from the sidebar and open the API you want to invoke.
- In the API's submenu, click API Keys.
- Click Generate API key.
- In the Generate API key dialog, enter a Name for the key (e.g.
my-prod-key) and optionally set an Expires at date. - Click Generate and wait for the key to be created.
- Copy the API key immediately. The key won't be visible in the UI after you close this dialog.
- Click Done.
Once you have a key, see Consume an API Secured with API Key for how to use it.
Rotate an API Key¶
If a key is compromised, or you want to rotate it as a security practice:
- Navigate to the API's API Keys page.
- Click Regenerate next to the key.
- Confirm the regeneration. The old key is immediately invalidated.
- Copy the new key from the dialog.
Warning
Update all services using the old key before or immediately after regenerating. The old key stops working as soon as regeneration is complete.
Revoke an API Key¶
To permanently invalidate a key:
- Navigate to the API's API Keys page.
- Click Revoke next to the key.
- Confirm the revocation.
Revoked keys can't be recovered. Generate a new key if you need access again.
Associate an API Key with an Application¶
API keys are always generated for an API directly — never for an application. Associating a key with an application afterward is optional and exists purely for usage analytics attribution: it groups a key's request metrics under an application in reporting. It has no effect on the key's validity or authorization, and a key works identically whether or not it's associated with an application.
- Sign in to the Developer Portal and open Applications in the sidebar.
- Select the application you want to attribute usage to.
- Go to the application's API Keys tab.
- Click Associate existing key.
- In the dialog, select the API the key belongs to, then select the specific Key from that API's existing keys.
- Click Associate.
The key now appears in the application's API Keys list, alongside the API it belongs to and its status.
To remove the association later, click Remove next to the key in the same list — this only detaches the key from the application; the key itself remains active and usable.
Note
An application can have keys associated from multiple different APIs, and a single API key can be reassociated to a different application at any time by repeating this flow.
Key Lifecycle Events¶
When you generate, regenerate, or revoke an API key, the portal publishes a real-time webhook event to the organization's configured webhook subscriber(s). If the organization has a subscriber wired up to its API Gateway, the change is enforced immediately — there's no propagation delay. See Webhook Integration.
Related¶
- Subscribe to an API — subscribe if the API requires a subscription
- Consume an API Secured with API Key — use the key to invoke the API
- Consume an API Secured with OAuth2 — alternative for OAuth2-secured APIs
- Create an Application — set up an application to associate keys with