Skip to main content
Rezolve Ai
API ReferenceEnrichmentRules

Generate contextual rules

POST
/enrichment/rules

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.

Authorization

headerAuthorizationBearer <API key>

API key in the Authorization header: Authorization: Bearer ace_live_.... Use an ace_test_... key for the free, rate-capped sandbox.

Header Parameters

X-Tenant-Id?string

Partner 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.

Formatuuid

Request Body

application/json
  1. body
source*|

Where products come from: an inline payload or a connected store.

brandVoice?
creativityLevel?integer
Range1 <= value <= 5
projectId?string
mode?string
Value in"sync""async"

Response Body

Rules generated inline

application/json
  1. response
data*unknown
Example Request
curl -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}