Skip to content

Get Customizations

POST
View MD

Retrieve a list of existing recommendation customizations. This endpoint supports pagination through query parameters and additional filtering through query parameters or a criteria object in the request body.

Send a POST request with the tracker_id in the path. Pagination and simple filters go in the query string.

ParameterTypeRequiredDescription
TRACKER_IDstringYour unique tracker identifier.
ParameterTypeDescription
limitintegerNumber of customizations to return.
offsetintegerNumber of results to skip.
modelarray[string]Filter by recommender model, for example model=basket&model=home.
tagarray[string]Filter by tags.
target_typearray[string]Filter by scope type: item, criteria, or all.
target_identityarray[string]Filter by specific target item IDs.
sortarray[string]Sort by attribute, for example created_at:desc.
HeaderValueDescription
Content-Typeapplication/json; charset=utf-8Required.
DateHTTP dateRequired for HMAC.
AuthorizationApiAuth {TRACKER_ID}:{SIGNATURE}Required for HMAC.

The body accepts a JSON object with a criteria array for advanced filtering. The criteria structure follows the same rules described in Recommendations Customization.

All requests to this endpoint must be authenticated with HMAC SHA-256.

  1. Build the string to sign from the HTTP method, content type, current date, and the resource path.
  2. Exclude query parameters from the signed path for this endpoint.
  3. Generate the Base64-encoded signature with your private key.
  4. Send the request with Date, Content-Type, and Authorization headers.

The response contains pagination metadata and the list of matching customization objects.

FieldTypeDescription
paginationobjectMetadata about the result set.
pagination.totalintegerTotal number of items matching the filter.
resultsarrayList of customization objects.
HTTP StatusDescription
200 OKSuccess.
401 UnauthorizedMissing or invalid authentication.
404 Not FoundTracker not found.
422 Unprocessable EntityValidation error, for example an invalid sort field.