Actions13
- Agent Actions
- Datastore Actions
- Query Actions
- Reranker Actions
- LMUnit Actions
- Parser Actions
Datastore → Get Document Metadata
AI-generatedSummary
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.