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
| Name | Type | About |
|---|---|---|
site_idrequired | string | The id of the site. list_sites gives the ids of your sites. |
version | one of: draft, live | draft (default) or live: which redirect list to read. |
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.