Skip to main content
Verify your API key is working correctly and get information about your account, rate limits, and permissions. This is the first endpoint you should call when integrating with HITL.sh.
This endpoint is perfect for debugging authentication issues and monitoring your API usage.

Authentication

Authorization
string
required
Your API key for authentication. Format: Bearer your_api_key_here

Response

error
boolean
Whether an error occurred (always false for successful requests)
msg
string
Success message confirming API key validity
data
object

Use Cases

Integration Testing

Use this endpoint in your CI/CD pipeline to verify API key setup:

Rate Limit Monitoring

Check your rate limit status before making batch requests:

Health Check Endpoint

Use in your application’s health checks:

Debugging Authentication Issues

When experiencing authentication problems, this endpoint provides detailed information:

Best Practices

  • Call this endpoint periodically in production to monitor API key health
  • Set up alerts if the endpoint returns unexpected responses
  • Include it in your application’s readiness probes
  • Check rate limits before making large batch operations
  • Implement backoff strategies when limits are low
  • Monitor the reset_at timestamp for planning
  • Test API keys in each environment (dev, staging, prod)
  • Verify permissions match expected capabilities
  • Ensure account status is active before deployment
  • Handle all possible response codes (200, 401, 429)
  • Log authentication failures for debugging
  • Implement retry logic with exponential backoff

Common Issues

If this endpoint fails, check these common issues:
  1. Missing Authorization header - Ensure you’re including Authorization: Bearer your_api_key
  2. Incorrect header format - Don’t include extra spaces or use wrong prefixes
  3. Revoked API key - Check your dashboard if the key was revoked
  4. Network issues - Verify you can reach api.hitl.sh
  5. Rate limits - Wait if you’ve exceeded your hourly limit

Next Steps

Create Your First Loop

After verifying your API key, create a loop to start processing requests.

Authentication Guide

Learn more about API key management and security best practices.

Error Handling

Learn how to handle and debug API errors effectively.