younifyd
Menu

Retrieve campaigns

Retrieve campaigns

GET/v1/campaigns

Use it in a workflow

  1. Add a step and choose the Constructor connector.
  2. Pick the Retrieve campaigns action (under Campaigns).
  3. Fill in the fields below, then reference the result from later steps as {{retrieveCampaigns.response.data}}.

Request

Query parameters

sectionstring

The section of the index to use. Defaults to `Products`.

idoneOf

The ID(s) of campaigns to filter by.

refined_filtersobject

A list of refined filters.

num_results_per_pageinteger

The number of results per page to return.

Default 20

pageinteger

The page of results to return.

offsetinteger

The number of results to skip from the beginning. Cannot be used together with `page`.

cstring

The ID of the client and version that the request is coming from, such as `cio-js-2.90`.

refined_recommendation_contextsany

A filter for refined recommendation contexts.

refined_queriesarray<string>

A list of refined queries.

Response

Returns 200 with an object. Read it in later steps with {{retrieveCampaigns.response.data.<field>}}.

campaignsarray<object>

A list of campaigns.

request_tag_nameany

Request tag name to be used to activate this entity for, used only with `request_tag_value`.

request_tag_valuestring

Request 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.

namestring

The name of the campaign.

descriptionstring

The description of the campaign.

refined_queriesarray<object>1 fields

A list of refined queries.

refined_filtersarray<object>2 fields

A list of refined filters.

refined_recommendation_contextsarray<object>2 fields

A list of refined recommendation contexts.

boost_rulesarray<object>12 fields

A list of boost rules.

blacklist_rulesarray<object>12 fields

A list of blacklist rules.

slot_rulesarray<object>13 fields

A list of slot rules.

content_rulesarray<object>12 fields

A list of content rules.

filters_slot_rulesarray<object>12 fields

A list of filters slot rules.

face_out_variation_rulesarray<object>12 fields

A list of face out variation rules.

whitelist_ruleany

A whitelist rule.

variation_slicing_ruleany

A variation slicing rule.

metadata_jsonany

Metadata related to the campaign.

idintegerrequired

The ID of the campaign.

created_atstring (date-time)required

The creation time of the campaign.

updated_atstring (date-time)required

The last updated time of the campaign.

total_countinteger

The total count of campaigns.

json
{
  "campaigns": [
    {
      "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
        }
      ]
    }
  ],
  "total_count": 0
}

Need more? See the Constructor guide for connection setup and behaviour shared by every action.