Authentication
Secure access to Venym Search APIs using API keys. Learn about authentication methods, security best practices, and troubleshooting common issues.
Getting Your API Key
Sign up for a free Venym Search account
Get 5,000 free credits to start
Navigate to your dashboard and create a new API key
Keys start with sk_live_64_HEX_CHARS
Authentication Method
Venym Search uses API key authentication. Include your API key in the Authorization: Bearer header with every request to authenticate your application.
Header Format
Authorization: Bearer sk_live_64_HEX_CHARS_key_hereImplementation Examples
# Your API key from the dashboard
API_KEY="sk_live_64_HEX_CHARS"
# Include API key in header
curl -X POST https://www.search.venym.io/api/v1/search \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "test search"}' \
--fail-with-body
# Check exit code
if [ $? -eq 0 ]; then
echo "Authentication successful!"
else
echo "Authentication failed - check your API key"
fiAuthorization: Bearer your_key_here if your HTTP client doesn't support custom headers easily.Security Best Practices
Store your API keys in environment variables, never hardcode them in your source code.
# .env file
VENYM_SEARCH_API_KEY=sk_live_64_HEX_CHARS_key_here
# Load in script
source .env
# Use environment variable
curl -H "Authorization: Bearer $VENYM_SEARCH_API_KEY" \
https://www.search.venym.io/api/v1/searchNever expose API keys client-side
Don't include them in JavaScript that runs in browsers
Don't commit keys to version control
Add your .env files to .gitignore
Don't share keys in public forums
Including Stack Overflow, GitHub issues, etc.
Use separate keys for different environments
Different keys for development, staging, and production
Rotate keys regularly
Generate new keys monthly or when team members change
Monitor usage in dashboard
Watch for unexpected usage patterns that might indicate compromise
Authentication Errors
Common authentication error responses and how to handle them.
401Unauthorized
{
"error": "Invalid or missing API key",
"code": "UNAUTHORIZED",
"message": "Please check your Authorization Bearer header"
}Solution: Check that your API key is correct and included in the Authorization: Bearer header.
403Forbidden
{
"error": "Insufficient plan access",
"code": "FORBIDDEN",
"message": "Contact extraction requires Starter plan or higher",
"upgrade_url": "/dashboard?tab=billing"
}Solution: Upgrade your plan to access this feature, or remove the restricted parameter from your request.
429Rate Limited
{
"error": "Rate limit exceeded",
"code": "RATE_LIMITED",
"message": "Free plan limited to 10 requests per hour",
"retry_after": 3600,
"upgrade_url": "/dashboard?tab=billing"
}Solution: Wait for the specified retry_after period, or upgrade your plan for higher rate limits.
Testing Your Authentication
Use this simple test to verify your API key is working correctly.
curl -X POST https://www.search.venym.io/api/v1/search \
-H "Authorization: Bearer VENYM_SEARCH_API_KEY_HERE" \
-H "Content-Type: application/json" \
-d '{"query": "test", "max_results": 1}'Still having authentication issues?
Our support team can help you troubleshoot authentication problems.