younifyd
Menu

Retrieve redirect rules

Retrieve redirect rules

GET/v1/redirect_rules

Use it in a workflow

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

Request

Query parameters

idoneOf

The ID(s) of redirect rules to filter by.

querystring

A search query for redirect rules.

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_orderany

The sort order for redirect rules.

statusstring

A filter by status of redirect rules.

One ofcurrentpendingexpired

cstring

The 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 {{retrieveRedirectRules.response.data.<field>}}.

redirect_rulesarray<object>

A list of redirect rules.

idintegerrequired

The identifier for the redirect rule match.

start_timestring (date-time)

The start time for the redirect rule.

end_timestring (date-time)

The end time for the redirect rule.

urlstringrequired

The target URL for redirect the rule.

metadataobject

The metadata for the redirect rule.

last_updatedstring (date-time)

The last updated time for the redirect rule.

user_segmentsarray<string>

A list of user segments for the redirect rule.

matchesarray<object>required3 fields

A list of redirect rule matches.

total_countinteger

The total count of redirect rules.

json
{
  "redirect_rules": [
    {
      "id": 0,
      "url": "string",
      "matches": [
        {
          "pattern": "string",
          "match_type": "EXACT",
          "id": 0
        }
      ],
      "start_time": "2025-01-01T00:00:00Z",
      "end_time": "2025-01-01T00:00:00Z",
      "metadata": {},
      "last_updated": "2025-01-01T00:00:00Z",
      "user_segments": [
        "string"
      ]
    }
  ],
  "total_count": 0
}

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