API Key Authentication
All Data Docked API requests require authentication using an API key. Pass your API key in thex-api-key header with every request.
Getting Your API Key
1
Create an account
Sign up at datadocked.com/signup
2
Navigate to API Keys
Go to your dashboard and find the API Keys section
3
Copy your key
Copy your API key and store it securely
Best Practices
Keep Your Key Secure
- Store API keys in environment variables
- Use server-side code to make API requests
- Never commit API keys to version control
- Rotate keys if you suspect they’ve been compromised
Environment Variables
Authentication Errors
If your API key is invalid or missing, you’ll receive a401 Unauthorized response: