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://api.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_KEYNote: Each export has its own unique API key. Generate or regenerate your key from Exports → REST API tab.
/api/export/{exportId}Retrieve your processed dataset in JSON format with all AI-generated content and field values.
Export ID: You can find the Export ID for your dataset by going to your dataset → Exports → REST API tab.
Response: Returns a JSON array of products with all their data, field values, and AI-generated content.
/api/horizontal/uploadUpload raw data items to your dataset. Use this to add new products before processing them.
Request Body
feedIdintegerRequiredYour feed/dataset ID. You can find this in the address bar when viewing your dataset.
projectIdintegerRequiredYour project ID. You can find this in the address bar when viewing your dataset.
dataItemsarrayRequiredArray of data items to upload. Each item must contain:
og_id- A unique identifier for the product/item (string)og_data- The raw product data as a JSON string containing all fields you want to process (e.g., title, brand, description, price, etc.)
/api/horizontal/createProcess specific items with specific fields (horizontal enrichment). Use this to generate AI content for selected products and fields.
Request Body
ogIdsarrayRequiredArray of product IDs to process
fieldIdsarrayOptionalArray of field IDs to process (auto-fetched from dataset if not provided)
processingModeinteger0 = FillEmpty, 1 = UpdateExisting, 2 = Both (default)
languagesarrayLanguages to process (e.g., ["english", "spanish"])
/api/horizontal/upload-and-processCombined 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/vertical/createAdd new rows to Create datasets (vertical processing). Use this to generate entirely new products based on your prompts and field context.
Request Body
countintegerRequiredNumber of new rows to create (1-10000)
fieldContextIdintegerRequiredField 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/sql/executeExecute a custom SQL query
/api/saved-queriesCreate a new saved query
/api/saved-queriesList all saved queries
/api/saved-queries/{id}/executeExecute a saved query by ID