Skip to main content

redirect_user

Internal beta โ€” config shape is being migrated

The Automation API is an internal beta and is not released yet โ€” endpoints and payloads may change or be withdrawn without notice. This action's config is being migrated to a typed schema; the fields below reflect that in-progress shape. Always read the authoritative, live shape from GET /v1/automation/meta/action before building against it.

Redirect user โ€” redirects the user to a target URL. group: "action". Requires the weblink_clicked trigger context.

Part of the Automation calls & weblinks family. This page documents the typed config; for how an action sits inside an automation definition, see Actions and Action examples.

Configโ€‹

KeyTypeRequiredDescription
redirect_urltemplate valueyesTarget URL to redirect the user to.

Exampleโ€‹

An action entry inside an automation definition's actions[]:

{
"type": "redirect_user",
"config": {
"redirect_url": ["https://example.com/records/", { "kind": "variable", "source": "meta", "meta_type": "app_record_id" }]
}
}

Validation & behaviorโ€‹

  • redirect_url is the only member and is required โ€” it has no canonical default, so it must always be supplied.
  • The action runs in the weblink_clicked trigger context; the redirect happens when the user clicks the weblink.
  • redirect_url is a template value, so it can interpolate variables and references resolved at run time.

See alsoโ€‹