younifyd
Menu

Retrieve redirect rule

Retrieve redirect rule

GET/v1/redirect_rules/{redirect_rule_id}

Use it in a workflow

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

Request

Path parameters

redirect_rule_idinteger (int32)required

Query parameters

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

idinteger

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.

urlstring

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>

A list of redirect rule matches.

patternstringrequired

The pattern for the redirect rule match.

match_typestringrequired

The match type for the redirect rule.

One ofEXACTPHRASEUNORDERED

idintegerrequired

The identifier for the redirect rule match.

json
{
  "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"
  ]
}

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