Retrieve document contents
Returns the content of the document with the specified ID, along with the index of the latest retrieved chunk. Each call fetches up to 20 chunks. To get more, use the end_chunk value from the response as the start_chunk for the next call.
Path parameters
document_idintegerRequired
The ID of the document to retrieve contents for.
Query parameters
start_chunkintegerOptional
Indicate the starting chunk that you want to retrieve. If not specified, the default value is 0.
end_chunkintegerOptional
Indicate the ending chunk that you want to retrieve. If not specified, the default value is start_chunk + 20.
Responses
200
Content of the document and index of the latest retrieved chunk.
application/json
404
Document not found.
500
Internal server error.
get
GET /api/v1/documents/{document_id}/contents/ HTTP/1.1
Host: api.rememberizer.ai
Accept: */*
{
"content": "text",
"end_chunk": 1
}
Last updated