List Documents for a Source.
List Documents for a Source.
Path Parameters
The ID of the corpus owning the source to list documents in.
The parent source to list documents in.
Query Parameters
The maximum number of results to return. The service may return fewer than this value. If unspecified, the service will choose a sensible default. The maximum allowed value is 1000.
The number of entries in the result set to skip.
- 200
- default
OK
Schema
- Array [
- ]
documents object[]
The list of Documents.
The corpus that this document belongs to.
The source that this document belongs to.
The unique ID of this document.
The MIME type of the document. https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types
A URL from which this document's contents can be downloaded. This URL may expire after a few minutes.
metadata object
Metadata about a document. This is typically not included in the document's chunks, but can be used for filtering or citations. Derived documents inherit metadata from their source documents in general.
The public URL of the document, if any.
The BCP47 language code of the document, if known.
The title of the document, if known.
The description of the document, if known.
The timestamp that the document was published, if known.
When this Document was created in the Fixie system.
See the metadata.published
field for the timestamp that the document
was originally published, if known.
The size of the document, in bytes, as it is stored by Fixie.
Note that a Document may be the result of processing a source document, which may involve conversion from another format. This value represents the size of the content stored by Fixie, which may not match the original source document.
pageInfo object
Information about the page of results returned.
The number of results requested.
The offset specified in the request.
The total number of results available.
{
"documents": [
{
"corpusId": "string",
"sourceId": "string",
"documentId": "string",
"mimeType": "string",
"downloadUrl": "string",
"metadata": {
"publicUrl": "string",
"language": "string",
"title": "string",
"description": "string",
"published": "2024-03-07T22:56:08.243Z"
},
"created": "2024-03-07T22:56:08.243Z",
"sizeBytes": "string"
}
],
"pageInfo": {
"requestedPageSize": 0,
"requestedOffset": 0,
"totalResultCount": 0
}
}
Default error response
Schema
- Array [
- ]
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
details object[]
A list of messages that carry the error details. There is a common set of message types for APIs to use.
The type of the serialized message.
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}