API Documentation
Quiz Submissions Multiplayer
Quiz Submissions Singleplayer
Share
Documents
Documents
Search documents
Search documents using hybrid search (full-text + semantic)
POST
/
api
/
v1
/
documents
/
search
curl --request POST \
--url http://localhost:8787/api/v1/documents/search \
--header 'Content-Type: application/json' \
--data '{
"query": "<string>",
"language": "<string>",
"page": 1,
"limit": 10
}'
{
"data": [
{
"id": 123,
"title": "<string>",
"type": "<string>",
"uploadDate": "<string>",
"size": "<string>",
"quizCount": 123,
"processingStatus": "pending"
}
],
"pagination": {
"page": 123,
"limit": 123,
"totalItems": 123,
"totalPages": 123,
"hasNextPage": true,
"hasPreviousPage": true
}
}
Body
application/json
Response
200 - application/json
Documents retrieved successfully
The response is of type object
.
curl --request POST \
--url http://localhost:8787/api/v1/documents/search \
--header 'Content-Type: application/json' \
--data '{
"query": "<string>",
"language": "<string>",
"page": 1,
"limit": 10
}'
{
"data": [
{
"id": 123,
"title": "<string>",
"type": "<string>",
"uploadDate": "<string>",
"size": "<string>",
"quizCount": 123,
"processingStatus": "pending"
}
],
"pagination": {
"page": 123,
"limit": 123,
"totalItems": 123,
"totalPages": 123,
"hasNextPage": true,
"hasPreviousPage": true
}
}
Assistant
Responses are generated using AI and may contain mistakes.