Getting Started
How to copy your API key
Find and copy your API key from the dashboard.
Finding your API key
- Log in to your dashboard
- Navigate to API Keys
- Click Create new key if you don't have one yet
- Give it a descriptive name (e.g., "Production server" or "WordPress plugin")
- Click Create and immediately copy the key
Important: Your API key is only shown once at creation time. If you lose it, you'll need to create a new one.
Using your API key
Include it in the X-API-Key header on every request:
curl -X POST https://predax.io/api/v1/check/ip \
-H "X-API-Key: prdx_abc123..." \
-H "Content-Type: application/json" \
-d '{"ip": "1.2.3.4"}'Key security best practices
- Never commit API keys to source control
- Use environment variables to store keys
- Create separate keys for development and production
- Rotate keys regularly
- If a key is compromised, revoke it immediately from the dashboard
