---
title: "Retrieves a list of URL redirects"
method: GET
path: "/admin/redirects.json"
tags: ["Redirect"]
---

# Retrieves a list of URL redirects

`GET /admin/redirects.json`

## Query parameters

- `limit` number
- `since_id` number
- `path` string
- `target` string
- `fields` string

## Response `200`

OK

- RedirectsSwaggerResponse
  - `redirects` Redirect[]
    - `from_url` string — The old path to be redirected. When the user visits this path, they will be redirected to the target.
    - `id` integer — The ID for the redirect.
    - `to_url` string — The target location where the user will be redirected. When the user visits the old path specified by the `from_url` property, they will be redirected to this location. This property can be set to any path on the shop's site, or to an external URL. (maximum: 255 characters)

---

[API](https://skmtc.net/shopbase/apis/shopbase-internal-api.md) · [All operations](https://skmtc.net/shopbase/apis/shopbase-internal-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/shopbase/shopbase-internal-api/revisions/353ccde6240d/schema)
