Authentication
All API requests require an API key passed in the x-api-key header.
Getting your API key
- Create an account or sign in
- Go to your dashboard
- Create an API key and give it a name (e.g. Production, Development)
Using your API key
Include the x-api-key header in every request:
curl "https://api.secdailyapi.com/filings?limit=5" \
-H "x-api-key: YOUR_API_KEY"Security best practices
- Never expose your API key in client-side code or public repositories
- Use environment variables to store your key
- Rotate keys if you suspect they may be compromised
Environment variable example
# .env file (never commit this!)
SEC_API_KEY=your_api_key_here
# In your code
import os
api_key = os.environ["SEC_API_KEY"]Error responses
If your API key is missing or invalid, you'll receive a 403 response:
{
"error": "Forbidden",
"message": "Invalid API key"
}