curl -X POST https://api.zenbird.online/analyze \
-H "Content-Type: application/json" \
-d '{
"nonce": "random_string_nonce",
"timestamp": 1715335200000,
"signature": "hmac_sha256_hex_hash_of_nonce_time_text",
"text": "Is this post toxic?"
}'
Setup Instructions
Step 1: Save Environment Variables — Copy the `.env.example` file to `.env` on your server and populate your secret `GROQ_API_KEY` and custom `SYSTEM_CRYPTOGRAPHIC_SALT`.
Step 2: Startup Daemon — Install dependencies and launch the background daemon. If using PM2, run `pm2 start server.js --name "zenbird-api"`.
Step 3: Integrate with Extension — Configure your extension background script to sign payloads with HMAC-SHA256 matching the key from step 1.