Redirects (301/302)
Manage URL redirects for your website. Redirects are checked in middleware before any page routing on GET requests.
List & Create
GET
POST
/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). hit_count auto-increments on each match.
Get / Update / Delete
GET
PUT
DELETE
/api/v1/projects/{project_id}/redirects/{redirect_id}/
Manage individual redirects. All fields optional for update.