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 test integrations - Live keys (
gtm_live_*) - For production integrations
Making Authenticated Requests
Include your API key in theX-API-Key header with every request:
Generating API Keys
1
Login to Dashboard
Go to gtmapis.com/dashboard
2
Navigate to API Keys
Click on API Keys in the sidebar
3
Create New Key
Click Generate New Key and choose test or live mode
4
Save Your Key
Copy the full key immediately - it’s only shown once!
API keys are stored as SHA-256 hashes for security. You’ll only see the full key once during creation.
Scoped Keys for Agents and Automations
Create restricted keys for integrations, contractors, automations, and MCP-enabled agents instead of sharing an unrestricted live key. Current public scopes:
For an agent that only needs to inspect docs, do not provide a key. For an agent that only checks balances, grant only
credits:read. For an agent that validates one-off emails, grant only email:validate:single. For an agent that validates lists, grant email:validate:bulk and prefer /v1/validate/bulk over many single-email calls.
Hosted MCP Authentication
Hosted MCP uses a different credential model from the public API. Remote MCP clients connect tohttps://www.gtmapis.com/api/mcp and complete an OAuth-style PKCE flow. GTMAPIs issues bearer tokens scoped to hosted MCP, with expiry and revocation support.
Do not paste public API keys into hosted MCP clients, and do not use hosted MCP bearer tokens for public API calls. Public API requests continue to use X-API-Key.
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 public API rate limit of 10,000 requests per minute. IP-based abuse protection may also apply at 1,000 requests per minute per IP address. 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