---
title: "Get Predictions and Element Details"
slug: "get-predictions-and-element-details"
updated: 2024-12-11T15:47:45Z
published: 2026-03-16T14:44:43Z
canonical: "docs.xgen.ai/get-predictions-and-element-details"
---
> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xgen.ai/llms.txt
> Use this file to discover all available pages before exploring further.
# Get Predictions and Element Details
Post/render/customers/{customerId}/users/{userId}
SecurityAPI Key: AccessTokenAuthHeader parameter nameaccess_token
Access token Authentication
Path parameterscustomerIdstringRequired
userIdstringRequired
Body parametersExpand Allobject contextobject (Context)
the context object used for dynamic data
excludestring
Context used to exclude specific items by id
Example123|456|789
pathnamestring
The pathname of the page
Example/en-us/men/shirts
queryStringstring
The query string of the page
Example?color=red&size=large&xse_page=home
recentlyViewedstring
The recently viewed items
Example123|456|789
pdpCodestring
The product code of the current PDP page
Example123
xt_genderstring
Example how to pass dynamic context - The dynamic gender context
Examplefemale
Responses200
Successful response
Expand Allobject render_data Array of object
The render data object - includes the recommendations and the element details
object elementobject
The element details
element_namestring
The element's name
ExamplePDP Element
element_hookstring
The element's hook - the element used to render the recommendations
Example#element-hook
element_bodystring
The element's html
Example
Element Body
element_scriptstring
The element's JavaScript'
Exampleconsole.log('Element Script');
element_stylestring
The element's CSS
Example.element-style { color: red; }
element_idstring
The element's id
Examplesm_el_1234
element_previewstring
Can the element be previewed
Exampletrue
enabledstring
Whether the element is enabled. If "true" the element is published and can be used live.
Exampletrue
localizationobject
The localization settings for the element - this is where you can set language specific content
Example{
"view-all": {
"en-us": "View All",
"es-es": "Ver Todo"
}
}property*object additionalPropertiesproperty*string additionalProperties
max_recommendationsinteger
The maximum number of recommendations to return
Example5
min_recommendationsinteger
The minimum number of recommendations to return
Example1
no_recommendationsboolean
Whether to return no recommendations
Examplefalse
preview_links Array of string
The preview links used to preview the element
Example[
"https://www.example.com/preview-link-1?xse_preview=sm_el_1234",
"https://www.example.com/preview-link-2?xse_preview=sm_el_1234"
]string
ruleset_inactiveobject
An inactive ruleset
exceptionstring
excludestring
triggerstring
seml_versionstring
The SEML version used to render the element
Example2.0
template_typeboolean
The template type used to render the element
Examplefalse
tts_settingsobject
The TTS settings used for a search element. This only applies to search elements.
ps_enabledboolean
Primary search enabled
ps_triggerstring
Trigger type for primary search
ps_valueinteger
The value of the trigger for primary search
tts_enabledboolean
Whether TTS is enabled
tts_triggerstring
Trigger type for TTS
tts_value
The value of the trigger for TTS
OneOfintegerinteger
stringstring
booleanboolean
prediction Array of object (Product)
The predictions array
object brandstring ExampleYour brand
colorstring ExampleGreen
currencystring ExampleUSD
currency_symbolstring Example$
custom_string_1string Examplesome string 1
custom_string_2string Examplesome string 2
custom_string_3string Examplesome string 3
custom_string_4string Examplesome string 4
custom_string_5string Examplesome string 5
genderstring Examplefemale
imagestring (uri) Examplehttps://www.example.com/image.jpg
image_altstring (uri) Examplehttps://www.example.com/image-alt.jpg
is_in_stockstring Example1
is_on_salestring Example0
item_typestring Exampleadult
macroCategorystring ExampleDresses
macroColorstring ExampleOrange
microCategorystring ExampleLong Dresses
pricenumber (float) Example11500.0
prod_codestring Exampleabc123
prod_namestring ExampleYour Prod Name
product_types Array of string Example[
"Woman",
"Dresses",
"Long Dresses"
]string
product_urlstring (uri) Examplehttps://link-to-product.com
sale_pricenumber (float) Example11000.0
sizestring Example2
400
Bad request
401
Unauthorized
403
Forbidden
500
Internal server error