API Keys
API keys are essential for authenticating your applications with the Qanapi service. They allow you to make secure API calls to encrypt, decrypt, and manage your data.Creating an API Key
To create a new API key for your project:- Navigate to the project for which you want to create an API key
- Click on the API Keys tab in the project navigation
- Click on the Create API Key button
- A prompt will appear with a security notice, informing you that:
- The API key will only be displayed once
- You must store the key securely
- The key will be irretrievable after it is shown
- Click Create API Key to generate the new key
Managing API Keys
The API Keys tab displays a list of all API keys created for your project, including:- Key ID: A unique identifier for the API key (not the full key)
- Creation Date: When the API key was created
- Status: Whether the key is active or has been revoked
- Last Used: When the API key was last used
Revoking API Keys
If you need to disable an API key (for example, if it has been compromised):- Locate the key you want to revoke in the API Keys list
- Click the Revoke button next to the key
- Confirm the revocation when prompted
Revoking an API key immediately prevents it from being used for authentication. Any applications using the revoked key will no longer be able to access the Qanapi API.
Using API Keys
API keys are used in various Qanapi API calls and with the Smart Data Proxy:API Authentication
When making direct API calls to Qanapi, include your API key in the request header:Data Proxy Authentication
When using the Smart Data Proxy, include your API key in theX-Qanapi-Authorization header:
API Key Best Practices
To ensure the security of your API keys and data:- Never hardcode API keys in your application source code
- Don’t commit API keys to version control systems
- Use environment variables or secure key management systems to store API keys
- Create separate API keys for different applications or environments
- Rotate API keys periodically for enhanced security
- Monitor API key usage through the Event Log
- Revoke unused or compromised keys immediately
API Key Limitations
Be aware of the following limitations:- You can create up to 10 active API keys per project (contact support if you need more)
- API keys are specific to a project and cannot be used across different projects
- API key requests are rate-limited for security purposes