Menu
Redirect
Execute a search redirect query
POST
/rest/organizations/{organizationId}/commerce/v2/search/redirectUse it in a workflow
- Add a step and choose the Coveo connector.
- Pick the Redirect action (under Commerce).
- Fill in the fields below, then reference the result from later steps as
{{redirect.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"context": {
"view": {
"url": "https://acme.com/summersale",
"referrer": "https://example.com/"
},
"capture": true,
"source": [
"@coveo/headless@2.61.0",
"custom.library.js@2.0.0"
],
"user": {
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36"
}
},
"country": "US",
"currency": "USD",
"language": "en",
"query": "blue shoes",
"trackingId": "acmecorporation_ca",
"clientId": "58bb4b98-1daa-4767-8c15-90a0ea67645c",
"debug": true
}
Response
Returns 200 with an object. Read it in later steps with {{redirect.response.data.<field>}}.
{
"redirect": "https://example.com/products"
}
Need more? See the Coveo guide for connection setup and behaviour shared by every action.
Was this page helpful?