Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Contentstack Knowledge Vault API

The Contentstack Knowledge Vault API provides endpoints for ingesting, updating, and deleting content items stored in a Brand Kit's Knowledge Vault. The Knowledge Vault is a vector database that stores brand-specific knowledge content which is retrieved during AI content generation to provide accurate, brand-aligned responses. Content ingested via this API is vectorized and made available to the Generative AI API for retrieval augmented generation (RAG) workflows.

Contentstack Knowledge Vault API is one of 45 APIs that contentstack publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include AI, Knowledge Management, RAG, and Vector Database. The published artifact set on APIs.io includes API documentation and an OpenAPI specification.

This API exposes 3 operations across 2 paths, and defines 5 schemas. It is described by OpenAPI 3.1.0, at version v2.

Requests are made against 3 base URLs: https://api.contentstack.io, https://eu-api.contentstack.com, https://au-api.contentstack.com.

3 operations 2 paths 5 schemas 1 DELETE1 POST1 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
v2
Base URL
https://ai.contentstack.com
Authentication
HTTP Bearer, API Key
Terms of Service
Resource Areas
1

Authentication & Security 2

Contentstack Knowledge Vault API declares 2 security schemes for authenticating requests. It accepts HTTP bearer tokens (bearerAuth). An API key is passed in the header as authtoken (authtokenAuth). By default, every request must be authenticated.

  • bearerAuth — OAuth 2.0 Bearer token (M2M) with analytics access.
  • authtokenAuth — Contentstack user authtoken. Only organization Owners and Admins can access analytics.

Paths & Operations 3

Across 2 paths, the API surfaces 3 operations — 1 DELETE, 1 POST, 1 PUT. Each is listed below with its method, path, parameters, and response codes.

Knowledge Vault 3

Knowledge Vault endpoints allow developers to programmatically manage the brand knowledge content stored in a Brand Kit's vector database. Content items are vectorized upon ingest…

POST
/v1/knowledge-vault/
Ingest content into Knowledge Vault
ingestKnowledgeVaultContent 2 params body → 200400401429
PUT
/v1/knowledge-vault/{content_uid}
Update Knowledge Vault content
updateKnowledgeVaultContent 3 params body → 200400401404429
DELETE
/v1/knowledge-vault/{content_uid}
Delete Knowledge Vault content
deleteKnowledgeVaultContent 3 params → 200401404429

Schemas 5

The contract defines 5 schemas that model the data the API accepts and returns. The most detailed are IngestContentRequest (3 properties), KnowledgeVaultResponse (3 properties), TokenUsage (2 properties), Error (2 properties). Each schema is shown below with its type and property counts.

DeleteResponse
object
Response returned after a successful Knowledge Vault delete operation.
1 property
KnowledgeVaultResponse
object
Response returned after a successful Knowledge Vault ingest or update operation.
3 properties
IngestContentRequest
object
Parameters for ingesting or updating a Knowledge Vault content item.
3 properties 1 required
Error
object
Standard error response.
2 properties
TokenUsage
object
Token consumption metrics for the vectorization operation.
2 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

contentstack-knowledge-vault-api-openapi.yml Raw ↑

Other APIs contentstack publishes across the network.

Contentstack GraphQL Content Delivery API
Contentstack Image Delivery API
Contentstack Analytics API
Contentstack Generative AI API
contentstack Accounts API
contentstack Assets API
contentstack Attributes API
contentstack Audiences API
contentstack Audit Logs API
contentstack Automations API
contentstack Brand Kits API
contentstack Cache Analytics API