Skip to content
Get started

List all document summaries

get/document-summaries

Retrieve a paginated list of document summaries

Query ParametersExpand Collapse
document_id: optional string

Filter summaries by document ID

household_id: optional string

Filter summaries by household ID

limit: optional number

Maximum number of summaries to return

maximum1000
minimum1
offset: optional number

Number of summaries to skip

minimum0
ReturnsExpand Collapse
data: array of DocumentSummary { id, created_at, display_name, 6 more }
id: string

Unique identifier for the document summary

created_at: string

Timestamp when the summary was created

formatdate-time
display_name: string

Display name for the summary

document_id: string

ID of the document this summary belongs to

household_id: string

ID of the household this summary belongs to

summary: string

The summary text content

updated_at: string

Timestamp when the summary was last updated

formatdate-time
entry_mode: optional DocumentSummaryEntryMode

Indicates if the summary was AI-generated or user-entered

Accepts one of the following:
"AI_AUTO"
"USER"
summary_format: optional DocumentSummaryFormat

Format of the summary content

Accepts one of the following:
"MARKDOWN"
"PLAIN_TEXT"
List all document summaries
curl https://$WITHLUMINARY_SUBDOMAIN.withluminary.com/api/public/v1/document-summaries
{
  "data": [
    {
      "id": "document_summary_01ARZ3NDEKTSV4RRFFQ69G5FAV",
      "created_at": "2019-12-27T18:11:19.117Z",
      "display_name": "Default summary",
      "document_id": "document_01ARZ3NDEKTSV4RRFFQ69G5FAV",
      "household_id": "household_01ARZ3NDEKTSV4RRFFQ69G5FAV",
      "summary": "summary",
      "updated_at": "2019-12-27T18:11:19.117Z",
      "entry_mode": "AI_AUTO",
      "summary_format": "MARKDOWN"
    }
  ],
  "pagination": {
    "limit": 20,
    "offset": 0,
    "total": 150
  }
}
Returns Examples
{
  "data": [
    {
      "id": "document_summary_01ARZ3NDEKTSV4RRFFQ69G5FAV",
      "created_at": "2019-12-27T18:11:19.117Z",
      "display_name": "Default summary",
      "document_id": "document_01ARZ3NDEKTSV4RRFFQ69G5FAV",
      "household_id": "household_01ARZ3NDEKTSV4RRFFQ69G5FAV",
      "summary": "summary",
      "updated_at": "2019-12-27T18:11:19.117Z",
      "entry_mode": "AI_AUTO",
      "summary_format": "MARKDOWN"
    }
  ],
  "pagination": {
    "limit": 20,
    "offset": 0,
    "total": 150
  }
}