文書の内容を取得する

Retrieve contents of a document by its ID.

get

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
curl -L \
  --url 'https://api.rememberizer.ai/api/v1/documents/{document_id}/contents/'
{
  "content": "text",
  "end_chunk": 20
}

Last updated