Notebooks
Knowledge Bash reads before it answers: notebooks, and the documents in them.
GET/v1/notebooks/{notebook_id}/documentsIts documents.
Request1 field
Path
notebook_idstringrequiredThe notebook's id (nb_...).
- Type
string
Answers 2002 fields
dataobject[]The items on this page.
object"document"Always document.
- Type
"document"
idstringThe document's id.
- Type
string
notebook_idstringThe notebook it is in.
- Type
string
titlestringIts title.
- Type
string
content_typestringThe type of its text, such as text/markdown or text/plain.
- Type
string
bytesintegerIts size, in bytes.
- Type
integer
sha256stringA hash of its text.
- Type
string
created_atstringWhen it was added, as an ISO 8601 date and time in UTC.
- Type
string
next_cursorstring | nullSend it as cursor for the next page; null on the last page.
- Type
string | null
No sample in your language for this route, so here it is over HTTP.
curl "$VESTRA_BASE_URL/v1/notebooks/{notebook_id}/documents" \ -H "Authorization: Bearer $VESTRA_API_KEY"