Get Started
API Keys
Manage secret keys for the GetProfile API
Your API key is the gateway to your app’s profiling data and must be handled with care.
What is an API Key?
Each app in GetProfile has a unique API key that:
- Authenticates your requests
- Enforces your usage quotas and plan limits
- Segregates your data from other apps
Best Practices
- Keep it secret! Never share your API key publicly or commit it to version control.
- Use environment variables to store your API key securely in your applications.
- Rotate keys periodically for added security — you can do this from your dashboard.
Example for a secure environment variable in a .env
file:
Then, access it in your code:
In Python:
In Node.js:
Rotating or Revoking API Keys
- Go to your API Keys page in the dashboard.
- Use the rotate button to generate a new API key — the old one will stop working immediately.
- If you suspect your key has been exposed, revoke it right away.
Where is the API Key used?
Your API key must be included in the Authorization
header for every API request:
Example curl
request:
Lost your API key?
No worries! Just rotate it in the dashboard to generate a fresh one. Your existing integrations will need to be updated with the new key.
For any questions or concerns, contact our support team at [email protected].
Stay secure and keep building amazing experiences!