Contextual AI icon

Contextual AI

Access Contextual AI tools for agents, parsing, querying, and reranking.

Datastore → Get Document Metadata

AI-generated

Summary

Retrieves metadata and processing status for a document given its datastore and document IDs.

Inputs

  • datastoreId (required) — ID of the datastore containing the document (must be a valid UUID)
  • documentId (required) — ID of the document to get metadata for (must be a valid UUID)
  • authentication — Choose which authentication method to use (default: contextualAiApi)

Output shape

object

Returns the metadata object from the Contextual AI API for the specified document. Response body includes datastoreId, documentId, and the API‑returned metadata field.

Examples

Example 1: Fetch metadata for a specific document

Provide a valid datastore ID and document ID; the operation validates UUID format and issues a GET request to /v1/datastores/{datastoreId}/documents/{documentId}/metadata.

Discussion