Learn how to authenticate with the Cool Web Tool API and make secure requests to access your data.
The Cool Web Tool API uses session-based authentication for security and simplicity. All API requests must include proper authentication headers to access your account data.
First, log in to your Cool Web Tool account through the web interface. This establishes your session and authentication cookies.
Retrieve a CSRF token from the API to protect against cross-site request forgery attacks.
Include your session cookies and CSRF token in all API requests to authenticate properly.
{"csrfToken": "abc123def456ghi789"}{"data": [{"id": "project-uuid", "name": "My Website", "domain": "example.com"}]}Your session has expired or is invalid. Re-authenticate by logging in again.
You don't have permission to access this resource. Check your subscription tier.
You've exceeded your rate limit. Wait before making more requests.
Never hardcode authentication tokens in your code. Use environment variables or secure storage.
Implement proper error handling for expired sessions and re-authentication flows.
Implement exponential backoff when hitting rate limits to avoid being blocked.
Always use HTTPS for API requests to ensure your authentication data is encrypted.
API requests are rate-limited based on your subscription tier to ensure fair usage and system stability.
100 requests/hour
500 requests/hour
2000 requests/hour
API responses include headers showing your current usage:
X-RateLimit-Limit: 100 X-RateLimit-Remaining: 85 X-RateLimit-Reset: 1640995200