Creating API Keys
API keys are created from the agntdata dashboard. Each key is associated with a workspace and shares that workspace’s credit balance.1
Log in to the Dashboard
Go to app.agntdata.dev and sign in to your account.
2
Navigate to API Keys
From the dashboard sidebar, click on API Keys.
3
Create New Key
Click Create API Key, give it a descriptive name (e.g., “Production Server” or “Development”), and click Create.
4
Copy Your Key
Your new API key will be displayed once. Copy it immediately and store it securely — you won’t be able to see it again.
Managing Keys
Viewing Keys
The API Keys page shows all keys for your workspace:Revoking Keys
To revoke an API key:- Find the key in the API Keys list
- Click the Revoke button
- Confirm the action
Key Naming Best Practices
Use descriptive names that help you identify where each key is used:Good Names
Production API ServerDevelopment LocalCI/CD PipelineAnalytics Service
Avoid
Key 1TestMy Keyasdf
Multiple Keys
You can create multiple API keys for a single workspace. Common patterns:Environment Separation
Environment Separation
Create separate keys for development, staging, and production. This lets you revoke a compromised dev key without affecting production.
Service Isolation
Service Isolation
Give each service or application its own key. If one service is compromised, you can revoke just that key.
Team Members
Team Members
Create individual keys for team members during development. Revoke them when someone leaves the team.
Key Rotation
Periodically rotating API keys is a security best practice:1
Create New Key
Create a new API key with a descriptive name like “Production Server (Rotated April 2024)”.
2
Update Applications
Update all applications to use the new key. Verify they’re working correctly.
3
Revoke Old Key
Once all applications are using the new key, revoke the old one.
Next Steps
Authentication Overview
Learn how authentication works with the API.
Quickstart
Make your first API request.