Learn how to authenticate your requests to the Tuesday Leads API
X-API-KEY
curl --location 'https://api.tuesday.so/api/v1/public/auth' \ --header 'X-API-KEY: your-api-key-here'
{ "data": { "name": "Your Workspace Name", "id": "ws30ngrb03luqxcl27", "user_id": "usr19g6tln8rlii8" }, "statusCode": 200, "message": "Success" }
{ "statusCode": 401, "message": "Unauthorized", "error": "Invalid or missing API key" }
{ "statusCode": 401, "message": "Unauthorized", "error": "API key is required" }
Secure Storage
# Environment variable export TUESDAY_API_KEY="your-api-key-here"
// In your application const apiKey = process.env.TUESDAY_API_KEY;
Key Rotation
Monitoring Usage
Error Handling
try { const response = await fetch(endpoint, { headers }); if (response.status === 401) { throw new Error('Invalid API key - check your authentication'); } const data = await response.json(); return data; } catch (error) { console.error('Authentication error:', error); }