Trainfog API Documentation
Programmatic access to content automation, product catalog management, and AI services.
Welcome to the Trainfog API
Trainfog brings the power of artificial intelligence and streamlined content automation directly into your business processes. Our API is designed for developers who need to seamlessly integrate product data management with advanced, AI-driven content generation.
By connecting to the Trainfog API, you can simplify operational complexities, automate content creation workflows, and focus more time on strategic decision-making.
🚀 Getting Started
The first step to accessing Trainfog's powerful features is securing your connection using the industry-standard OAuth 2.0 protocol.
-
Authentication & Setup: Learn how to register your application, initiate the OAuth 2.0 Authorization Code flow, and manage token refresh. This process grants you secure API access scoped to your user's workspace.
-
API Reference: Explore every available endpoint, including required parameters, request/response schemas, and error codes for all resources.
🧩 Core API Capabilities
1. Data Connectivity & Catalog Management
Trainfog integrates with your business tools (PIM, e-commerce, CRM) to create a single, interconnected ecosystem. The API provides programmatic access to manage your essential e-commerce assets:
- Products: CRUD operations for product details, pricing, SKUs, and media (
/products). - Categories: Structure and organize your catalog hierarchy (
/categories). - Brands: Define and manage product brands (
/brands).
2. AI-Powered Content Automation
Harness the power of artificial intelligence to instantly transform raw product data into ready-to-use marketing and sales copy.
- Generate Product Artifacts: Trigger AI processing to enrich individual products with detailed descriptions and SEO copy (
POST /products/{productId}/artifacts). - Generate Posts: Create and update general marketing content like blog posts and social media updates (
POST /posts/{id}/generate).
3. Custom Workflows
The API enables you to build custom applications that interact directly with all systems via intuitive endpoints, simplifying daily operations and transforming operational complexity into simple, fast decisions.