younifyd
Menu

Retrieve collections

Retrieve collections

GET/browse/collections

Use it in a workflow

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

Request

Query parameters

sectionstring

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

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

sort_bystring

The method to sort collections by.

One ofiddisplay_nameDefault "id"

sort_orderany

The order by which results should be sorted. Only valid in conjunction with `sort_by`.

Default "descending"

nowstring (date-time)

A date time representing the current moment in time when applying filtering by product age. Used to emulate "past/future" requests. Requires authentication.

origin_referrerstring

The url or app location where the request originated.

cstring

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

usarray<string>

A customer defined context (such as `vip-club-member`) used to evaluate redirect or refined tag rules. Pass multiple segments by passing multiple `us` arguments.

uistring

A customer generated anonymized identifier for a user on a customer website. It should only be sent for logged in customers and helps Constructor to tie multiple client and session IDs together to form a behavioral data profile across devices.

display_nameoneOf

Filter collections by display name.

sinteger

An integer representing the users session number (starting with `1`), incremented after a 30 minute period of inactivity.

istring

A globally unique identifier for the user browser (or mobile application instance) making the request.

Response

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

responseobject
collectionsarray<object>required6 fields

Information on browsed collections.

total_num_resultsintegerrequired

Total count of collections.

json
{
  "response": {
    "collections": [
      {
        "id": "string",
        "display_name": "string",
        "data": {},
        "start_time": "2025-01-01T00:00:00Z",
        "end_time": "2025-01-01T00:00:00Z",
        "active_overriding_collection": null
      }
    ],
    "total_num_results": 0
  }
}

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