API Key Format
GTMAPIs uses API keys for authentication. All API requests must include your API key in theX-API-Key header.
Key Types
- Test keys (
gtm_test_*) - For development and testing - Live keys (
gtm_live_*) - For production use
Making Authenticated Requests
Include your API key in theX-API-Key header with every request:
Generating API Keys
Login to Dashboard
API keys are stored as SHA-256 hashes for security. You’ll only see the full key once during creation.
API Key Security
Best Practices
✅ Do:- Store API keys as environment variables
- Use test keys for development
- Rotate keys regularly
- Use separate keys for different environments
- Revoke compromised keys immediately
- Commit keys to version control
- Share keys in public forums or Slack
- Use live keys in development
- Expose keys in client-side JavaScript
- Hardcode keys in your source code
Key Storage Example
Rate Limits
Each API key has a rate limit of 1000 requests per minute. If you exceed this limit, you’ll receive a429 Too Many Requests response:
Error Responses
Invalid API Key
Missing API Key
Expired or Revoked Key
Next Steps
Make Your First Request
Try the API with your new key
API Reference
Explore all available endpoints