Documentation
Feedback
Guides
VTEX IO Apps

VTEX IO Apps
search-session
Official extension
Version: 0.5.1
Latest version: 0.5.1

The search-session listens to changes in the user session via the search/session/transform and writes it to the segment cookie.

When the session API is called:


_11
curl --request POST \
_11
--url https://{ws}--{account}.myvtex.com/api/sessions \
_11
--header 'Content-Type: application/json' \
_11
--header 'Cookie: vtex_session={mysession}' \
_11
--data '{
_11
"public": {
_11
"facets": {
_11
"value": "myfacet=myvalue;"
_11
}
_11
}
_11
}'

It will call the search/session/transform with the following body:


_10
{
_10
"public": {
_10
"facets": {
_10
"value": "myfacet=myvalue;"
_10
}
_10
}
_10
}

Then, the search session will add the facets: myfacet=myvalue to the segment cookie.

See also
VTEX App Store
VTEX IO Apps