keyAPI Key
••••••••••••••••••••••
Include as X-API-Key header in all requests
apiEndpoints
GET /healthPublic
GET /statsPublic
POST /queryAPI Key
POST /ingestAPI Key
POST /ingest-urlAPI Key
GET /admin/*Admin Key
codeQuick Reference
# Query books
curl -X POST https://rag.afaqzaid.com/query \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "سؤالك هنا", "session_id": "user1"}'
# Ingest PDF by URL
curl -X POST https://rag.afaqzaid.com/ingest-url \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com/book.pdf"}'
Claude AI
API key & usage tracking