Get document chunks
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.supermemory.ai/v3/documents/{id}/chunks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.supermemory.ai/v3/documents/{id}/chunks"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)curl --request GET \
--url https://api.supermemory.ai/v3/documents/{id}/chunks \
--header 'Authorization: Bearer <token>'{
"documentId": "<string>",
"chunks": [
{
"id": "<string>",
"position": 123,
"content": "<string>",
"type": "<string>",
"createdAt": "<string>",
"metadata": {}
}
],
"total": 123
}{
"error": "<string>",
"details": "<string>"
}{
"error": "<string>",
"details": "<string>"
}{
"error": "<string>",
"details": "<string>"
}Get document chunks
Get all chunks for a document, ordered by position
GET
/
v3
/
documents
/
{id}
/
chunks
Get document chunks
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.supermemory.ai/v3/documents/{id}/chunks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.supermemory.ai/v3/documents/{id}/chunks"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)curl --request GET \
--url https://api.supermemory.ai/v3/documents/{id}/chunks \
--header 'Authorization: Bearer <token>'{
"documentId": "<string>",
"chunks": [
{
"id": "<string>",
"position": 123,
"content": "<string>",
"type": "<string>",
"createdAt": "<string>",
"metadata": {}
}
],
"total": 123
}{
"error": "<string>",
"details": "<string>"
}{
"error": "<string>",
"details": "<string>"
}{
"error": "<string>",
"details": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Was this page helpful?