Overview
All Call24x7.AI API requests require authentication using an API key. This guide explains how to obtain, use, and secure your API keys.Getting Your API Key
- Sign in to the Call24x7.AI Developer Portal
- Navigate to the API Keys section
- Click Create New API Key
- Give your key a descriptive name (e.g., “Production API Key” or “Development Key”)
- Copy the key immediately - it won’t be shown again
Using Your API Key
Include your API key in theAuthorization header of all API requests as a Bearer token:
Example Request
API Key Format
Call24x7.AI API keys follow this format:- Production keys: Start with
sk_live_ - Test keys: Start with
sk_test_
Best Practices
Environment Variables
Store your API key in environment variables rather than hardcoding:Key Rotation
Regularly rotate your API keys for security:- Create a new API key
- Update your applications to use the new key
- Test that everything works
- Revoke the old key
Multiple Keys
Create separate API keys for different environments or purposes:- Development: For testing and development
- Staging: For staging environment
- Production: For live production use
- Service-specific: One key per service or application
Error Responses
Invalid API Key
If your API key is invalid or missing, you’ll receive a401 Unauthorized response:
Expired or Revoked Key
If your API key has been revoked or expired:Security Checklist
- Store API keys in environment variables
- Never commit keys to version control
- Use different keys for different environments
- Rotate keys regularly
- Revoke unused or compromised keys immediately
- Use HTTPS for all API requests
- Monitor API usage for suspicious activity
Rate Limits
API requests are subject to rate limiting based on your plan. If you exceed the rate limit, you’ll receive a429 Too Many Requests response.
Rate limits are applied per API key. Contact support if you need higher limits.
Troubleshooting
Getting 401 Unauthorized errors
Getting 401 Unauthorized errors
API key not working
API key not working
- Check that the key is copied correctly (no extra spaces)
- Verify the key hasn’t expired
- Ensure you’re using the correct base URL (
https://api.call24x7.ai) - Try creating a new key
Key exposed in logs
Key exposed in logs
If you’ve accidentally exposed your API key:
- Revoke the exposed key immediately
- Create a new API key
- Update all applications using the old key
- Review your logs and remove any instances of the exposed key
Support
If you’re having authentication issues:- Check the API Reference for detailed endpoint documentation
- Visit our Help Center
- Contact support: support@call24x7.ai

