API Key Authentication
Include your API key in theX-API-Key header:
API Key Format
TapKit API keys follow this format:TK_ followed by a random string.
Request Examples
GET Request
POST Request
Error Responses
Invalid API Key
401 Unauthorized
Missing Authentication
401 Unauthorized
Getting Your API Key
- Sign in to the TapKit Dashboard
- Navigate to Settings > API Keys
- Click Create API Key
- Copy and securely store your key
Security Best Practices
Keep keys secret
Keep keys secret
Never expose API keys in client-side code, public repositories, or logs.
Use environment variables
Use environment variables
Store keys in environment variables rather than hardcoding:
Rotate keys regularly
Rotate keys regularly
Create new keys periodically and revoke old ones.
Use separate keys per environment
Use separate keys per environment
Maintain different keys for development, staging, and production.
Revoking Keys
Revoke compromised keys immediately via the dashboard:- Go to Settings > API Keys
- Find the key and click Revoke
- Create a new key for your applications