Securely authenticate your CleverSearch API requests.
Use the secret key for server-side API calls.
curl https://api.cleversearch.ai/v1/analysis \
-H "Authorization: Bearer YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com"}'CLEVERSEARCH_SECRET_KEY=sk_live_...Rotate keys in Settings → API KeysKeep secret keys on the server and read them from environment variables.
// Node.js example
const response = await fetch("https://api.cleversearch.ai/v1/analysis", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.CLEVERSEARCH_SECRET_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ url: "https://example.com" }),
});Harden auth flows early to avoid security debt during scale.
Phase 1: Integration
Implement auth, request validation, and core endpoint flow.
Output: Stable API client with retries and typed payloads.
Phase 2: Automation
Add async handling and webhook-driven workflows.
Output: Background jobs connected to reliable event processing.
Phase 3: Hardening
Improve observability, rate-limit handling, and security.
Output: Production-ready monitoring and incident runbooks.
Successful Request Rate
>= 99% for non-4xx requests
Indicates resilient client logic and error handling.
Webhook Processing Delay
< 60 seconds median end-to-end
Keeps downstream automation timely and useful.
Auth Error Frequency
< 1% of total calls
Confirms credential management is stable.