Get a Document.
Get a Document.
Path Parameters
The ID of the corpus owning the document to retrieve.
The ID of the source owning the document to retrieve.
The ID of the document to retrieve.
- 200
- default
OK
Schema
document object
A single complete source of information included in a corpus. In the most straight-forward case, this could be a webpage with authoritative information on some subject. However, documents can also be created from other documents by some processing step and may not even be text-based. For example, you could have an audio document that contains the source of truth on some subject and that produces a separate text transcript document during processing. The derived transcript document could then be embedded for use in queries.
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 the document.
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.
{
"document": {
"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.245Z"
},
"created": "2024-03-07T22:56:08.245Z",
"sizeBytes": "string"
}
}
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"
}
]
}