Products
Generate product artifacts
This endpoint triggers Trainfog's AI processing engine to generate and elaborate comprehensive artifacts (descriptions, SEO copy, etc.) for a specified product.
Authorization
ApiKey AuthorizationBearer <token>
In: header
Path Parameters
productId*string
Unique product identifier
Request Body
application/json
model*string
The AI model to use for artifact generation.
Response Body
application/json
application/json
application/json
curl -X POST "https://api.trainfog.com/developers/v1.0/products/688893ebd804d8588b1afbe0/artifacts" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-4o" }'{
"ok": true
}{
"error": "Unauthorized"
}{
"error": "Not found"
}