pagehive

read_redirects

Read the site's redirect list: source as stored and rules with line, from, to and status.

Draft contentRead-onlyAll plansUpdated

What it does

Read the site's redirect list: source as stored and rules with line, from, to and status. version is draft (default) or live. source is null when the site has no list.

Plans

Works on every plan: Free, Basic, Pro and Ultra.

Parameters

NameTypeAbout
site_idrequiredstringThe id of the site. list_sites gives the ids of your sites.
versionone of: draft, livedraft (default) or live: which redirect list to read.
draftstringOptional name of your own draft of this site (lowercase letters, digits and dashes, at most 40), such as "pricing-redesign". Each agent has its own drafts, so other agents' work never mixes into yours; give a name when you might work on this site from more than one chat at once, and use the same name on every read, write and publish of that piece of work. Without it you use your default draft.

Example

Call read_redirects with these arguments:

{
  "site_id": "01a1…"
}

Ids like 01a1… stand for your own. list_sites and list_tables give you the real ones.

Related guides

  • RedirectsKeep old addresses working after a move.
  • Clean addressesServe /article/my-title instead of /article?a=my-title.