Quick Start
Get your API keys
Make your first request
curl -X POST 'https://www.openindex.ai/api/collections' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <your api key>' \
-d '{
"name": "My test collection",
"description": "My first OpenIndex.ai collection",
"knowledgeBase": "http://www.paulgraham.com/greatwork.html\nhttps://www.youtube.com/watch?v=MqS_GIbXboc"
}'curl -X POST 'https://www.openindex.ai/api/chat' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <your api key>' \
-d '{
"collectionId": "<collectionId returned above>",
"message": "How does Paul Graham define great work?",
"streaming": false,
}'Last updated