Skip to main content

API Key Authentication

All Data Docked API requests require authentication using an API key. Pass your API key in the x-api-key header with every request.

Getting Your API Key

1

Create an account

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

Never expose your API key in client-side code or public repositories.

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 a 401 Unauthorized response:

Common Issues