List summaries
import requests
url = "https://api.datagrid.com/v1/tables/{table_id}/summaries"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.datagrid.com/v1/tables/{table_id}/summaries', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.datagrid.com/v1/tables/{table_id}/summaries \
--header 'Authorization: Bearer <token>'{
"object": "list",
"data": [
{
"object": "summary",
"id": "<string>",
"table_id": "<string>",
"record_type": "row",
"summary": "<string>",
"is_vectorized": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"primary_key": "<string>",
"title": "<string>",
"source_data": {},
"file_id": "<string>",
"page_number": 123
}
],
"cursor": "<string>",
"has_more": true
}{
"status_code": 123,
"error": "rate_limit_exceeded",
"message": "<string>",
"retryable": true,
"statusCode": 123,
"mitigation": "<string>",
"details": {
"reason": "<string>"
}
}Tables
List summaries
Returns indexed summary content for a knowledge table. Use record_type=row (the default) for per-row summaries, record_type=table for the table-level summary, record_type=file for file-level overviews, or record_type=page for page extraction bodies. This endpoint reflects the current index state and does not consume AI credits.
GET
/
tables
/
{table_id}
/
summaries
List summaries
import requests
url = "https://api.datagrid.com/v1/tables/{table_id}/summaries"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.datagrid.com/v1/tables/{table_id}/summaries', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.datagrid.com/v1/tables/{table_id}/summaries \
--header 'Authorization: Bearer <token>'{
"object": "list",
"data": [
{
"object": "summary",
"id": "<string>",
"table_id": "<string>",
"record_type": "row",
"summary": "<string>",
"is_vectorized": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"primary_key": "<string>",
"title": "<string>",
"source_data": {},
"file_id": "<string>",
"page_number": 123
}
],
"cursor": "<string>",
"has_more": true
}{
"status_code": 123,
"error": "rate_limit_exceeded",
"message": "<string>",
"retryable": true,
"statusCode": 123,
"mitigation": "<string>",
"details": {
"reason": "<string>"
}
}Authorizations
Query Parameters
Which summary variant to return. row (default) returns one summary per source row. table returns the table-level summary. file returns file-level overviews. page returns page extraction bodies. Matches record_type on each Summary in the response.
Available options:
row, table, file, page Response
List of summaries