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 Generative AI API

The Contentstack Generative AI API provides an endpoint for generating AI-powered content using a Brand Kit's knowledge vault and voice profiles. It acts as a communication channel between the vector database and large language models, processing prompts with retrieval augmented generation (RAG) to produce brand-aligned content.

Contentstack Generative AI 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, Brand Kit, Content Generation, and Generative AI. The published artifact set on APIs.io includes API documentation and an OpenAPI specification.

This API exposes 1 operation across 1 path, and defines 4 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.

1 operations 1 paths 4 schemas 1 POST

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/brand-kits
Authentication
HTTP Bearer, API Key
Terms of Service
Resource Areas
1

Authentication & Security 2

Contentstack Generative AI 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 1

Across 1 path, the API surfaces 1 operation — 1 POST. Each is listed below with its method, path, parameters, and response codes.

Generative AI 1

The Generative AI endpoint processes prompts using retrieval augmented generation, retrieving relevant brand knowledge and applying voice profile style guidelines to produce on-br…

POST
/v1/genai/
Generate AI content
generateContent 2 params body → 200400401429

Schemas 4

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

GenAIRequest
object
Parameters for an AI content generation request.
3 properties 1 required
GenAIResponse
object
The AI-generated content response including the generated text and token usage metrics.
2 properties
Error
object
Standard error response.
2 properties
TokenUsage
object
Token consumption metrics for the generation request.
3 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

contentstack-generative-ai-api-openapi.yml Raw ↑

Other APIs contentstack publishes across the network.

Contentstack GraphQL Content Delivery API
Contentstack Image Delivery API
Contentstack Analytics API
Contentstack Knowledge Vault 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