Redirects (301/302)
Manage URL redirects for your website. Redirects are checked before any page is served (GET and HEAD). Exact redirects are found directly, so 10 or 10,000 rules cost a visit the same.
List & Create
/api/v1/projects/{project_id}/redirects/
List all redirects or create a new one.
{
"source_path": "/old-page/",
"destination": "/new-page/",
"redirect_type": 301,
"is_active": true
}
Types: 301 (permanent) | 302 (temporary). match_type: exact (default), prefix, wildcard, regex. hit_count and last_hit_at are updated on each match. List filters: ?q=, ?match_type=, ?used=yes|no, ?order=-hits|-last_hit|source|-created.
Get / Update / Delete
/api/v1/projects/{project_id}/redirects/{redirect_id}/
Manage individual redirects. All fields optional for update.
Import & export (website migrations)
/api/v1/projects/{project_id}/redirects/bulk/
Up to 10,000 redirects in one call, as a list or as CSV text (source,destination[,301|302[,match_type]] per line; comma, semicolon or tab). A full URL as the source keeps its path, so the old website's URLs can be pasted as they are. dry_run only reports; flatten_chains sends A→B→C straight to C (and the saved redirects that pointed to A).
{
"csv": "source,destination,type\n/old-page/,/new-page/,301\nhttps://old-site.com/about.html,/about/",
"dry_run": true,
"flatten_chains": true
}
Answer 207: one result per row (status 201 created, 200 updated, 400 refused, with error, codes and warnings) and a summary (create, update, errors, chains, loops, duplicates, over_limit). Refused, never saved: invalid source or destination, duplicates in the list, loops (also through saved redirects), rows beyond the plan limit. Warnings: chains, a page at the source address.
/api/v1/projects/{project_id}/redirects/export/
Every redirect as CSV: source, destination, type, match, active, visits, last_visit.
404 log
/api/v1/projects/{project_id}/redirects/not-found/
The addresses people (not bots) asked for and did not find in the last 90 days, most requested first: path, hits, last_seen, referrer and a suggestion (the page of the website most like it). ?limit= (1–500), ?all=1 also lists the ones a redirect or a page answers now (fixed: true). Scanner noise is not recorded; at most 1,000 addresses per website.
Limits
Redirects per account, and of them the prefix, wildcard and regex ones (checked one by one on every visit, so they have their own cap). GET /api/v1/usage/ reports redirects and redirect_patterns.
| Plan | Redirects | Patterns |
|---|---|---|
| Starter | 500 | 25 |
| Growth | 2,000 | 100 |
| Scale | 10,000 | 500 |
| Enterprise | 50,000 | 5,000 |