Authentication
Learn how to authenticate your requests to the Tuesday Leads API
Overview
All requests to the Tuesday Leads API must be authenticated using your unique API key. Authentication is handled through HTTP headers, making it simple to integrate into any application or programming language.
API Key Authentication
Getting Your API Key
- Sign up for a Tuesday account at app.tuesday.so
- Navigate to the API Keys section in your dashboard
- Generate a new API key for your application
- Copy the key and store it securely
Your API key is sensitive information. Never share it publicly, commit it to version control, or expose it in client-side code.
How to Authenticate
Include your API key in the X-API-KEY
header of every request:
Testing Authentication
Use the Auth API endpoint to verify your API key is working correctly:
Successful Response:
Authentication Errors
When authentication fails, you’ll receive one of these error responses:
Invalid API Key
Missing API Key
Best Practices
Secure Storage
Secure Storage
Store your API keys in environment variables or secure configuration management systems. Never hardcode them in your application.
Key Rotation
Key Rotation
Regularly rotate your API keys for enhanced security. The Tuesday dashboard allows you to generate new keys and deactivate old ones.
Monitoring Usage
Monitoring Usage
Monitor your API key usage through the Tuesday dashboard to track consumption and detect any unusual activity.
Error Handling
Error Handling
Always implement proper error handling for authentication failures in your applications.
Environment-Specific Keys
Consider using different API keys for different environments (development, staging, production) to better isolate usage and maintain security.
Next Steps
Once you have authentication working:
- Check out Rate Limits & Credits to understand usage limits
- Make your first API call with the People Profile API
- Explore the full API Reference