API ReferenceEnrichmentRules
Generate contextual rules
POST
Generate the eight section contextual rules for a product selection. Returns inline for small selections, or a job (202) for large ones or when mode is async. Requires the enrichment:write scope.
header
AuthorizationBearer <API key>API key in the Authorization header: Authorization: Bearer ace_live_.... Use an ace_test_... key for the free, rate-capped sandbox.
X-Tenant-Id?stringPartner accounts only. The tenant this call is for, as returned by POST /tenants. The call then runs in that tenant exactly as it would with a key pinned to it. Leave it out when you use a tenant's own key.
Format
uuidapplication/json- body
source*|Where products come from: an inline payload or a connected store.
brandVoice?creativityLevel?integerRange
1 <= value <= 5projectId?stringmode?stringValue in
"sync""async"Rules generated inline
application/json- response
data*unknowncurl -X POST 'https://example.com/api/v1/enrichment/rules' \ -H 'Content-Type: application/json' \ -d '{ "source": { "type": "inline", "products": [ { "id": "string", "title": "string" } ] }}'Example Response
{ "data": null}