One endpoint. Send content, get analysis.
curl -X POST https://getvajra.ai/api/analyze \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{"content": "https://example.com/article", "type": "url"}'Pass your API key in the Authorization header:
Authorization: Bearer vaj_your_key_hereGet your key at getvajra.ai/dashboard
Analyze a URL, YouTube video, or raw text.
Requestcontenttype{
"success": true,
"cached": false,
"credits_used": 1,
"credits_remaining": 99,
"processing_time_ms": 8200,
"analysis": {
"id": "uuid",
"title": "Article Title",
"quality_score": 8,
"bias_level": "moderate",
"markdown": "# Full Vajra Report...",
"html": "<html>...</html>",
"metadata": {
"tldr": "...",
"verdict": "...",
"key_takeaways": ["..."],
"warnings": ["..."]
}
}
}curl -X POST https://getvajra.ai/api/analyze \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{"content": "https://paulgraham.com/avg.html", "type": "url"}'curl -X POST https://getvajra.ai/api/analyze \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{"content": "https://youtube.com/watch?v=...", "type": "url"}'curl -X POST https://getvajra.ai/api/analyze \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{"content": "Your text here...", "type": "text"}'If someone already analyzed the same URL, you get the result instantly for free. The more people use Vajra, the more content is cached.
400Missing or invalid parameters401Invalid or missing API key402Out of credits500Server errorNo code required. Send URLs directly in Telegram.
/start YOUR_API_KEY