Creating API Keys
API keys authenticate your applications with tagd-ai. This guide walks through creating and managing keys.
Prerequisites
- Pro or Enterprise subscription
- Account owner or admin access
Create Your First Key
Step 1: Access API Settings
- Sign in to tagd-ai
- Click avatar → Settings
- Select API Keys
Step 2: Create New Key
- Click Create API Key
- Fill in details:
- Name: Descriptive name (e.g., "Production Server")
- Description: Optional notes
Step 3: Select Permissions
Choose what this key can access:
Tag Permissions:
- ☑️
tags:read- Read tags - ☐
tags:write- Create/update tags - ☐
tags:delete- Delete tags
File Permissions:
- ☑️
files:read- Download files - ☐
files:write- Upload files
Other:
- ☐
webhooks:read- List webhooks - ☐
webhooks:write- Manage webhooks - ☐
analytics:read- View analytics
Step 4: Configure Options
Optional settings:
- IP Restrictions: Limit to specific IPs
- Expiration: Auto-expire after date
- Rate Limit: Custom rate limit (Enterprise)
Step 5: Generate Key
- Click Create Key
- Copy the key immediately
- Key shown only once
- Store securely
Key Naming Conventions
Use clear, descriptive names:
Good names:
Production-App-ServerDevelopment-LocalCI-CD-PipelineAnalytics-Dashboard
Bad names:
key1testmy key
Permission Templates
Read-Only Access
For analytics dashboards:
☑️ tags:read
☑️ files:read
☑️ analytics:read
Full Tag Management
For content management:
☑️ tags:read
☑️ tags:write
☑️ tags:delete
☑️ files:read
☑️ files:write
Webhook Management
For integration setup:
☑️ tags:read
☑️ webhooks:read
☑️ webhooks:write
Complete Access
For admin tools:
☑️ All permissions
Managing Keys
View All Keys
Go to API Keys to see:
- Key name
- Permissions summary
- Created date
- Last used
- Status
Key Details
Click a key to view:
- Full permission list
- Usage statistics
- IP restrictions
- Expiration date
Edit Key
Modify existing key:
- Click the key
- Click Edit
- Change name, description, permissions
- Save changes
Note: Key value cannot be changed. Regenerate for new value.
Disable Key
Temporarily stop a key:
- Find the key
- Click the toggle or Disable
- Requests fail immediately
- Re-enable anytime
Delete Key
Permanently remove:
- Click the key
- Click Delete
- Type key name to confirm
- Key cannot be recovered
Regenerating Keys
Get a new key value (same settings):
- Click the key
- Click Regenerate
- Confirm action
- Copy new key immediately
- Update your applications
Old key stops working instantly.
IP Restrictions
Limit where key can be used:
Add IP Whitelist
- Edit the key
- Go to IP Restrictions
- Add IPs:
192.168.1.100
10.0.0.0/8 - Save
IP Formats
- Single IP:
192.168.1.1 - CIDR range:
192.168.0.0/16 - Multiple entries allowed
Testing IP Restrictions
- Make request from allowed IP ✅
- Make request from other IP ❌ 403 error
Key Expiration
Set automatic expiration:
- Edit the key
- Set Expiration Date
- Save
On expiration:
- Key stops working
- Email notification sent
- Can extend before expiration
Multiple Keys
Why Use Multiple Keys
- Different permissions per service
- Easy revocation per service
- Better security isolation
- Clearer usage tracking
Example Setup
| Key Name | Use | Permissions |
|---|---|---|
| Web-App | Main website | tags:read, write |
| Analytics | Dashboard | tags:read, analytics:read |
| CI-CD | Deployment | tags:write, webhooks:write |
| Mobile | Mobile app | tags:read, files:read |
Key Limits
Per-plan key limits:
| Plan | Max Keys |
|---|---|
| Pro | 10 |
| Enterprise | Unlimited |
Test vs Production Keys
Test Keys
- Prefix:
tagd_test_ - Use sandbox environment
- No real data affected
- For development only
Production Keys
- Prefix:
tagd_live_ - Access real data
- Use in production apps
- Keep highly secure
Storing Keys Securely
Environment Variables
# .env (never commit)
TAGD_API_KEY=tagd_live_xxxxx
Secret Managers
Use services like:
- AWS Secrets Manager
- Google Secret Manager
- Azure Key Vault
- HashiCorp Vault
What NOT to Do
- ❌ Commit to Git
- ❌ Include in client-side code
- ❌ Share via email/chat
- ❌ Hardcode in source files
Troubleshooting
Can't Create Key
- Verify Pro/Enterprise subscription
- Check you have account admin access
- Ensure within key limit
Key Not Working
- Copy includes full key
- No extra whitespace
- Key is enabled
- Permissions include needed access
- Check IP restrictions