HubSpot API Key Tester
Enter your HubSpot API key below and click 'Test Key' to check if it works. This tool will send a request to HubSpot asking, "Does this key work?" and return a response with an explanation.
🔑 How to Get Your API Key
2. Go to Account Settings > API Keys
3. Click 'Create API Key' or use Private App
4. Copy the generated API key
5. Free tier: 1M requests/month
Test Your API Key
🔧 Alternative: cURL Command
You can also test your API key using cURL from your terminal:
curl -sS 'https://api.hubapi.com/crm/v3/objects/contacts?limit=1&hapikey={{KEY}}' -H 'Content-Type: application/json'
💻 How to run this command in your terminal:
- Copy the command above by clicking the "Copy" button
- Open your terminal (Command Prompt on Windows, Terminal on Mac/Linux)
- Paste the command using Ctrl+V (Windows/Linux) or Cmd+V (Mac)
- Press Enter to execute the command
- Check the response - you'll see either a success message or an error explaining what's wrong
💡 Terminal Tips:
- Make sure you have
curl
installed (it comes pre-installed on Mac and most Linux systems) - On Windows, you may need to install curl or use PowerShell's
Invoke-WebRequest
instead - If you see "command not found", try
curl --version
to check if it's installed
🔧 Common Issues & Solutions
❌ 401 Unauthorized
Problem: Invalid, expired, or malformed API key
Solution: Check your key in the HubSpot dashboard and ensure it's active and correctly formatted
❌ 403 Forbidden
Problem: Insufficient permissions or billing issues
Solution: Verify your account has proper permissions and sufficient credits/balance
❌ 429 Rate Limited
Problem: Too many requests in a short period
Solution: Wait a moment and try again, or upgrade your plan for higher limits
🔑 API Key Format Guide
Your HubSpot API key should follow the correct format:
✅ Valid Format
pat-na1-12345678-1234-1234-1234-123456789012
Starts with "pat-" followed by UUID format
❌ Invalid Format
invalid_key_format
Missing required prefix, wrong length, or incorrect format
❓ Frequently Asked Questions
How do I test my HubSpot API key?
Simply paste your API key into the form above and click "Test Key". Our tool will make a test request to HubSpot to verify your key works.
Is it safe to test my API key here?
Yes! All testing happens in your browser - we never see or store your API keys. The key never leaves your device.
What if my API key test fails?
Check the error message above. Common issues include invalid keys, expired keys, insufficient credits, or rate limiting. Use the troubleshooting guide above for specific solutions.
Can I test multiple API keys?
Yes, you can test as many keys as you need. Each test is independent and secure.
Why do I need to use the terminal?
Some providers use server-side authentication for enhanced security. The terminal method provides direct access to test your API key with full compatibility.
Use Cases
- Quickly verify if your HubSpot API key is valid
- Troubleshoot API key-related issues with detailed error messages
- Understand HubSpot API response codes and their meanings
- Verify customer data access and sync capabilities
- Test contact and lead management permissions
Supported HubSpot Responses
This tool handles all HubSpot error codes, including:
- 200 (OK): Key is valid and working correctly
- 201 (Created): Request successful and resource created
- 202 (Accepted): Request accepted and being processed
- 400 (Bad Request): Invalid request format or parameters
- 401 (Unauthorized): The API key is incorrect or invalid
- 403 (Forbidden): API key lacks required permissions
- 404 (Not Found): Requested resource doesn't exist
- 429 (Rate Limit Exceeded): Too many requests in a short period
- 500 (Server Error): HubSpot servers are experiencing issues
Refer to the HubSpot Documentation for more details.