API Documentation
Complete reference for programmatic access to your Cension AI datasets - read processed data, upload new items, and trigger AI enrichment.
Quick Navigation
Base URL: https://app.cension.ai
Authentication
All API requests require an API key sent in the Authorization
header. Get your API key from the Exports page in your Cension dashboard under REST API tab.
Header Format:
Authorization: YOUR_API_KEY
Note: Each export has its own unique API key. Generate or regenerate your key from Exports → REST API tab.
/api/export/{feedId}
Retrieve your processed dataset in JSON format with all AI-generated content and field values.
Response: Returns a JSON array of products with all their data, field values, and AI-generated content.
/api/api/horizontal/upload
Upload raw data items to your dataset. Use this to add new products before processing them.
Request Body
feedId
integerRequiredYour feed/dataset ID
projectId
integerRequiredYour project ID
dataItems
arrayRequiredArray of data items with og_id and og_data (JSON string)
/api/api/horizontal/create
Process specific items with specific fields (horizontal enrichment). Use this to generate AI content for selected products and fields.
Request Body
ogIds
arrayRequiredArray of product IDs to process
fieldIds
arrayOptionalArray of field IDs to process (auto-fetched from workspace if not provided)
processingMode
integer0 = FillEmpty, 1 = UpdateExisting, 2 = Both (default)
languages
arrayLanguages to process (e.g., ["english", "spanish"])
/api/api/horizontal/upload-and-process
Combined flow: Upload data and immediately start processing. This is the most efficient way to add new products and generate their content in one request.
/api/api/vertical/create
Add new rows to Create datasets (vertical processing). Use this to generate entirely new products based on your prompts and field context.
Request Body
count
integerRequiredNumber of new rows to create (1-10000)
fieldContextId
integerRequiredField context ID from your Create dataset
SQL & Saved Queries
Execute custom SQL queries or save them for reuse. Perfect for custom data exports and advanced filtering.
/api/api/sql/execute
Execute a custom SQL query
/api/api/saved-queries
Create a new saved query
/api/api/saved-queries
List all saved queries
/api/api/saved-queries/{id}/execute
Execute a saved query by ID