Contextual AI · OpenAPI Overlay 1.0.0
API Evangelist conversational phrasing for Endpoints /datastores/{id}/documents API
8 actions
8 updates
phrasing
extends
openapi/contextual-ai-datastores-id-documents-api-openapi.yml
Generated by API Evangelist
Written by API Evangelist tooling for Contextual AI's API. It is a proposal applied on top of the contract, not a document Contextual AI publishes.
What the actions change
x-apievangelist-phrasing
Targets 8
$.info
$.paths['/datastores/{datastore_id}/documents'].get
$.paths['/datastores/{datastore_id}/documents'].post
$.paths['/datastores/{datastore_id}/documents/{document_id}/metadata'].get
$.paths['/datastores/{datastore_id}/documents/{document_id}/metadata'].put
$.paths['/datastores/{datastore_id}/documents/{document_id}'].delete
$.paths['/datastores/{datastore_id}/documents/{document_id}/parse'].get
$.paths['/datastores/{datastore_id}/chunks/{content_id}/content'].put
OpenAPI Overlay
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
title: API Evangelist conversational phrasing for Endpoints /datastores/{id}/documents API
version: 1.0.0
extends: openapi/contextual-ai-datastores-id-documents-api-openapi.yml
actions:
- target: $.info
update:
x-apievangelist-phrasing:
method: generated
generated: '2026-11-22'
generator: build-phrasing.py
label: Generated by API Evangelist
operations: 7
- target: $.paths['/datastores/{datastore_id}/documents'].get
update:
x-apievangelist-phrasing:
intent: List documents in a datastore
effect: read
questions:
- Which documents have been uploaded to a datastore?
- Can I list only documents whose ingestion job failed?
- Can I search a datastore's documents by name prefix?
instructions:
- text: List documents in datastore {datastore_id}.
slots:
datastore_id: path.datastore_id
- text: List documents in {datastore_id} with ingestion status {ingestion_job_status}.
slots:
datastore_id: path.datastore_id
ingestion_job_status: query.ingestion_job_status
- text: Find documents in {datastore_id} whose name starts with {document_name_prefix}.
slots:
datastore_id: path.datastore_id
document_name_prefix: query.document_name_prefix
method: generated
generated: '2026-11-22'
- target: $.paths['/datastores/{datastore_id}/documents'].post
update:
x-apievangelist-phrasing:
intent: Ingest a document into a datastore
effect: write
questions:
- How do I upload a PDF into a datastore so it can be searched?
- Can I attach custom metadata to a document when I ingest it?
- What file types can I ingest into a datastore?
instructions:
- text: Ingest {file} into datastore {datastore_id}.
slots:
file: requestBody.file
datastore_id: path.datastore_id
- text: Upload {file} to {datastore_id} with metadata {metadata}.
slots:
file: requestBody.file
datastore_id: path.datastore_id
metadata: requestBody.metadata
method: generated
generated: '2026-11-22'
- target: $.paths['/datastores/{datastore_id}/documents/{document_id}/metadata'].get
update:
x-apievangelist-phrasing:
intent: Get a document's metadata
effect: read
questions:
- What is the status of a document's ingestion job?
- Can I check whether a document was uploaded successfully?
instructions:
- text: Get metadata for document {document_id} in datastore {datastore_id}.
slots:
document_id: path.document_id
datastore_id: path.datastore_id
- text: Check ingestion status of {document_id} in {datastore_id}.
slots:
document_id: path.document_id
datastore_id: path.datastore_id
method: generated
generated: '2026-11-22'
- target: $.paths['/datastores/{datastore_id}/documents/{document_id}/metadata'].put
update:
x-apievangelist-phrasing:
intent: Update a document's metadata
effect: write
questions:
- Can I add custom metadata to a document after it's ingested?
- How do I change the metadata configuration for a single document?
instructions:
- text: Update metadata of document {document_id} in {datastore_id} with {custom_metadata}.
slots:
document_id: path.document_id
datastore_id: path.datastore_id
custom_metadata: requestBody.custom_metadata
- text: Set metadata config {custom_metadata_config} on {document_id} in {datastore_id}.
slots:
custom_metadata_config: requestBody.custom_metadata_config
document_id: path.document_id
datastore_id: path.datastore_id
method: generated
generated: '2026-11-22'
- target: $.paths['/datastores/{datastore_id}/documents/{document_id}'].delete
update:
x-apievangelist-phrasing:
intent: Delete a document from a datastore
effect: destructive
questions:
- How do I remove a document from a datastore permanently?
- Is deleting a document from a datastore reversible?
instructions:
- text: Delete document {document_id} from datastore {datastore_id}.
slots:
document_id: path.document_id
datastore_id: path.datastore_id
- text: Permanently remove {document_id} in {datastore_id}.
slots:
document_id: path.document_id
datastore_id: path.datastore_id
method: generated
generated: '2026-11-22'
- target: $.paths['/datastores/{datastore_id}/documents/{document_id}/parse'].get
update:
x-apievangelist-phrasing:
intent: Get parse results for a document
effect: read
questions:
- What text did the system extract from an ingested document?
- Can I get parse results for a document uploaded before this endpoint existed?
instructions:
- text: Get parse results for document {document_id} in datastore {datastore_id}.
slots:
document_id: path.document_id
datastore_id: path.datastore_id
- text: Show {output_types} parse results for {document_id} in {datastore_id}.
slots:
output_types: query.output_types
document_id: path.document_id
datastore_id: path.datastore_id
method: generated
generated: '2026-11-22'
- target: $.paths['/datastores/{datastore_id}/chunks/{content_id}/content'].put
update:
x-apievangelist-phrasing:
intent: Edit a chunk's text content
effect: write
questions:
- Can I fix the text of a single chunk in a datastore?
- Does editing a chunk regenerate its embeddings?
instructions:
- text: Change chunk {content_id} in datastore {datastore_id} to {content}.
slots:
content_id: path.content_id
datastore_id: path.datastore_id
content: requestBody.content
- text: Edit the text of chunk {content_id} in {datastore_id} to {content}.
slots:
content_id: path.content_id
datastore_id: path.datastore_id
content: requestBody.content
method: generated
generated: '2026-11-22'
Work with this as data
Every overlay here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for openapi overlays
4 MCP tools reach this
find_overlaysBrowse and filter every overlay in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This overlay
curl "https://apis.io/api/v1/overlays/contextual-ai-datastores-id-documents-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.