URL Rewrite Detail
Returns a single URL rewrite with its full field set — the data behind the admin Marketing → Search & SEO → URL Rewrites view screen.
TIP
New here? Read the URL Rewrites overview for what a URL rewrite does and how its fields behave.
Endpoint
| Endpoint | Method |
|---|---|
/api/admin/marketing/url-rewrites/{id} | GET |
Details
- Requires an admin Bearer token in the
Authorizationheader. - An unknown id returns a
404.
Response fields
| Field | Type | Notes |
|---|---|---|
id | int | Numeric id |
entityType | string | product, category, or cms_page |
requestPath | string | Source path the shopper requests |
targetPath | string | Path the shopper is redirected to |
redirectType | string | 301 permanent / 302 temporary |
locale | string | Locale code the rewrite applies to |
createdAt | string | Creation timestamp |
updatedAt | string | Last-update timestamp |

