Skip to main content
POST
List Knowledge

Overview

Lists the documents in a collection, newest first. To get the next page, pass the oldest document’s created_at as before. A page shorter than limit means there are no more. Operation name: knowledge.list.

Authorization

string
required
Your Composer API key

Headers

string
required
Must be set to application/json

Body

string
The collection to list. Default semantic.
integer
How many documents to return, 1–200. Default 30.
Example
string
Only documents created before this time (RFC 3339). Use it to page.
string
Only documents created at or after this time (RFC 3339).
Example Request

Response

string
The collection listed.
array
Each has id, title, doc_type, subject_id, metadata, created_at, withdrawn_at and chunks. A withdrawn document has withdrawn_at set and no chunks.
Example Success Response

Example cURL

cURL

Error Codes