Menu
Retrieve campaign
Retrieve campaign
/v1/campaigns/{campaign_id}Use it in a workflow
- Add a step and choose the Constructor connector.
- Pick the Retrieve campaign action (under Campaigns).
- Fill in the fields below, then reference the result from later steps as
{{retrieveCampaign.response.data}}.
Request
Path parameters
campaign_idinteger (int32)requiredQuery parameters
sectionstringThe section of the index to use. Defaults to `Products`.
cstringThe ID of the client and version that the request is coming from, such as `cio-js-2.90`.
Response
Returns 200 with an object. Read it in later steps with {{retrieveCampaign.response.data.<field>}}.
request_tag_nameanyRequest tag name to be used to activate this entity for, used only with `request_tag_value`.
request_tag_valuestringRequest tag value to be used to activate this entity for, used only with request_tag_name.
start_timestring (date-time)The start time of the campaign.
end_timestring (date-time)The end time of the campaign.
namestringThe name of the campaign.
descriptionstringThe description of the campaign.
refined_queriesarray<object>A list of refined queries.
querystringrequiredA refined query string
refined_filtersarray<object>A list of refined filters.
filter_namestringrequiredThe name of the refined filter.
filter_valuestringrequiredThe value of the refined filter.
refined_recommendation_contextsarray<object>A list of refined recommendation contexts.
pod_idstringrequiredThe ID of the pod.
conditiononeOfrequiredCondition of the context
boost_rulesarray<object>A list of boost rules.
idintegerrequiredThe ID of the rule, must be unique.
request_tag_nameanyRequest tag name to be used to activate this entity for, used only with `request_tag_value`.
request_tag_valuestringRequest tag value to be used to activate this entity for, used only with request_tag_name.
activebooleanIndicates whether this rule is active or not.
start_timestring (date-time)Date and time when the rule should be enabled.
end_timestring (date-time)Date and time when the rule should be disabled.
campaign_idintegerautomatically_generatedbooleanBoolean to indicate if this rule is automatically generated or not.
ruleanyrequiredRule definition of the boost rule.
rule_typestringrequiredOne ofboost
created_atstring (date-time)Date & time in ISO 8601 format for the creation of this rule.
updated_atstring (date-time)Date & time in ISO 8601 format for last update for this rule.
blacklist_rulesarray<object>A list of blacklist rules.
idintegerrequiredThe ID of the rule, must be unique.
request_tag_nameanyRequest tag name to be used to activate this entity for, used only with `request_tag_value`.
request_tag_valuestringRequest tag value to be used to activate this entity for, used only with request_tag_name.
activebooleanIndicates whether this rule is active or not.
start_timestring (date-time)Date and time when the rule should be enabled.
end_timestring (date-time)Date and time when the rule should be disabled.
campaign_idintegerautomatically_generatedbooleanBoolean to indicate if this rule is automatically generated or not.
ruleanyrequiredRule definition of the blacklist rule.
rule_typestringrequiredOne ofblacklist
created_atstring (date-time)Date & time in ISO 8601 format for the creation of this rule.
updated_atstring (date-time)Date & time in ISO 8601 format for last update for this rule.
slot_rulesarray<object>A list of slot rules.
request_filtersobjectFacet conditions for the rule to be applied.
idintegerrequiredThe ID of the rule, must be unique.
request_tag_nameanyRequest tag name to be used to activate this entity for, used only with `request_tag_value`.
request_tag_valuestringRequest tag value to be used to activate this entity for, used only with `request_tag_name`.
activebooleanIndicates whether this rule is active or not.
start_timestring (date-time)Date and time when the rule should be enabled.
end_timestring (date-time)Date and time when the rule should be disabled.
campaign_idintegerautomatically_generatedbooleanBoolean to indicate if this rule is automatically generated or not.
ruleanyrequiredParameters of the slot rule.
rule_typestringrequiredOne ofslot
created_atstring (date-time)Date & time in ISO 8601 format for the creation of this rule.
updated_atstring (date-time)Date & time in ISO 8601 format for last update for this rule.
content_rulesarray<object>A list of content rules.
idintegerrequiredThe ID of the rule, must be unique.
request_tag_nameanyRequest tag name to be used to activate this entity for, used only with `request_tag_value`.
request_tag_valuestringRequest tag value to be used to activate this entity for, used only with request_tag_name.
activebooleanIndicates whether this rule is active or not.
start_timestring (date-time)Date and time when the rule should be enabled.
end_timestring (date-time)Date and time when the rule should be disabled.
campaign_idintegerautomatically_generatedbooleanBoolean to indicate if this rule is automatically generated or not.
ruleanyrequiredParameters of the content rule.
rule_typestringrequiredOne ofcontent
created_atstring (date-time)Date & time in ISO 8601 format for the creation of this rule.
updated_atstring (date-time)Date & time in ISO 8601 format for last update for this rule.
filters_slot_rulesarray<object>A list of filters slot rules.
idintegerrequiredThe ID of the rule, must be unique.
request_tag_nameanyRequest tag name to be used to activate this entity for, used only with `request_tag_value`.
request_tag_valuestringRequest tag value to be used to activate this entity for, used only with request_tag_name.
activebooleanIndicates whether this rule is active or not.
start_timestring (date-time)Date and time when the rule should be enabled.
end_timestring (date-time)Date and time when the rule should be disabled.
campaign_idintegerautomatically_generatedbooleanBoolean to indicate if this rule is automatically generated or not.
ruleanyrequiredParameters of the filters slot rule.
rule_typestringrequiredOne offilters_slot
created_atstring (date-time)Date & time in ISO 8601 format for the creation of this rule.
updated_atstring (date-time)Date & time in ISO 8601 format for last update for this rule.
face_out_variation_rulesarray<object>A list of face out variation rules.
idintegerrequiredThe ID of the rule, must be unique.
request_tag_nameanyRequest tag name to be used to activate this entity for, used only with `request_tag_value`.
request_tag_valuestringRequest tag value to be used to activate this entity for, used only with request_tag_name.
activebooleanIndicates whether this rule is active or not.
start_timestring (date-time)Date and time when the rule should be enabled.
end_timestring (date-time)Date and time when the rule should be disabled.
campaign_idintegerautomatically_generatedbooleanBoolean to indicate if this rule is automatically generated or not.
ruleanyrequiredParameters of the face out variation rule.
rule_typestringrequiredOne offace_out_variation
created_atstring (date-time)Date & time in ISO 8601 format for the creation of this rule.
updated_atstring (date-time)Date & time in ISO 8601 format for last update for this rule.
whitelist_ruleanyA whitelist rule.
variation_slicing_ruleanyA variation slicing rule.
metadata_jsonanyMetadata related to the campaign.
idintegerThe ID of the campaign.
created_atstring (date-time)The creation time of the campaign.
updated_atstring (date-time)The last updated time of the campaign.
{
"id": 0,
"created_at": "2025-01-01T00:00:00Z",
"updated_at": "2025-01-01T00:00:00Z",
"request_tag_name": null,
"request_tag_value": "string",
"start_time": "2025-01-01T00:00:00Z",
"end_time": "2025-01-01T00:00:00Z",
"name": "string",
"description": "string",
"refined_queries": [
{
"query": "string"
}
],
"refined_filters": [
{
"filter_name": "string",
"filter_value": "string"
}
],
"refined_recommendation_contexts": [
{
"pod_id": "string",
"condition": null
}
]
}
Need more? See the Constructor guide for connection setup and behaviour shared by every action.