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

Send your API key in a request header using either of these methods. Keys in the URL (?api_key=) are not accepted, because URLs end up in server logs and browser history.

curl -X POST "https://www.trendscribbr.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://www.trendscribbr.com/agents/api/articles/generate/" \ -H "Authorization: Bearer your-api-key-here" \ -H "Content-Type: application/x-www-form-urlencoded" \ -d "content_type=article"