Skip to main content
GET

Overview

Get text chunks from a text-type namespace. Use this to list stored text and summary chunks for display, export, or bulk RAG context loading. Results are returned one page at a time. Each page returns up to 100 items. When more data exists, the response includes pagination.has_more and pagination.next_token — pass that token on the next request to fetch the following page.
Only namespaces with type === "text" are supported. Vector-only namespaces are not supported.

Path parameters

namespace_name
string
required
Name of the text namespace (e.g. my-documents)

Query parameters

limit
integer
Maximum number of items to return in this page. Default: 100. Maximum: 100.
next_token
string
Opaque cursor from the previous response’s pagination.next_token. Omit on the first request.
next_token is tied to the requested namespace. Do not reuse a token from a different namespace.

Pagination

1

First request

GET .../fetch-text-data?limit=100 (or omit limit for the default of 100).
2

Check pagination

If pagination.has_more is true, more chunks exist in the namespace.
3

Next page

Call again with next_token from the previous response: GET .../fetch-text-data?limit=100&next_token=<token>
4

Stop

Repeat until pagination.has_more is false or next_token is null.

Response fields

status
string
"success" for 200 responses.
message
string
Human-readable summary for this page (e.g. “Fetched N text items from namespace ’…’”).
namespace
string
The requested namespace name.
statistics
object
Aggregated counts and timestamps for items in this page only (not the full namespace total).
statistics.total_items
number
Number of items in items on this page.
statistics.total_text_chunks
number
Count of non-summary chunks on this page.
statistics.total_summary_chunks
number
Count of summary chunks on this page.
statistics.created_at_min
string | null
Earliest item timestamp on this page as ISO 8601. null when the page is empty.
statistics.created_at_max
string | null
Latest item timestamp on this page as ISO 8601. null when the page is empty.
statistics.source_counts
object
Map of source name → count on this page.
items
array
Text chunks for this page (length ≤ limit, max 100).
items[].id
string
Item/chunk identifier.
items[].text
string
Text content of the chunk.
items[].metadata
object
Arbitrary metadata (e.g. source, heading, chunk_index).
items[].created_at
string
Creation time as ISO 8601.
items[].is_summary
boolean
true for summary chunks, false for regular text chunks.
pagination.limit
number
Page size used for this request (≤ 100).
pagination.has_more
boolean
true if additional pages exist after this one.
pagination.next_token
string | null
Pass as query param next_token to fetch the next page. null when has_more is false.
execution_time
number
Request processing time in seconds.

Example response

Errors