API ReferenceEnrichmentContent
Generate rules-grounded content
Generate content for one or many products across one or many content types, grounded in optional pre-generated rules. Small requests run inline (200, or 207 when some units fail); large ones return a job (202). Requires the enrichment:write scope.
AuthorizationBearer <token>
API key in the Authorization header: Authorization: Bearer ace_live_.... Use an ace_test_... key for the free, rate-capped sandbox.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/enrichment/content" \ -H "Content-Type: application/json" \ -d '{ "source": { "type": "inline", "products": [ { "id": "string", "title": "string" } ] }, "contentTypes": [ "string" ] }'{ "data": null}{ "data": { "id": "string", "kind": "rules", "status": "pending", "progress": { "phase": "string", "completed": 0, "total": 0 }, "estimateMs": 0, "productCount": 0, "succeededCount": 0, "failedCount": 0, "storeId": "string", "createdAt": "2019-08-24T14:15:22Z", "links": { "self": "string", "results": "string" } }}Empty
{ "error": { "code": "INSUFFICIENT_CREDITS", "message": "Not enough credits for this request.", "details": null }}{ "error": { "code": "INSUFFICIENT_CREDITS", "message": "Not enough credits for this request.", "details": null }}