Authentication
All API requests require authentication using an API key tied to your TrendScribbr account.
In a nutshell
Generate an API key from your dashboard settings, then include it on every request using one of the three methods below. The X-API-Key header is recommended.
Security Best Practices
Security Best Practices
- Keep your API keys secure and never expose them in client-side code
- Rotate your API keys regularly for enhanced security
- Use different keys for different applications/environments
- Monitor API key usage through your dashboard
Authentication Methods
You can authenticate requests using any of these methods:
curl -X POST "https://your-domain.com/agents/api/articles/generate/" \
-H "X-API-Key: your-api-key-here" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "content_type=article"
curl -X POST "https://your-domain.com/agents/api/articles/generate/" \
-H "Authorization: Bearer your-api-key-here" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "content_type=article"
curl -X POST "https://your-domain.com/agents/api/articles/generate/?api_key=your-api-key-here" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "content_type=article"