---
title: "List 301 redirects"
method: GET
path: "/redirects"
---

# List 301 redirects

`GET /redirects`

## Request

- Base URL: `https://api.ecommerceapi.uk/v1`
- URL: `https://api.ecommerceapi.uk/v1/redirects`
- Auth: HTTP basic

Retrieves a list of 301 redirects, with optional filtering by path.

## Query parameters

- `count` integer
- `offset` integer
- `path` string
- `fields` string

## Response `200`

A list of 301 redirects.

- Redirect[]
  - `id` integer: Unique identifier for the redirect.
  - `oldPath` string: The old URL path to redirect from (must start with '/').
  - `newPath` string: The new URL path to redirect to (must start with '/').
  - `createdAt` string, date-time: Timestamp when the redirect was created.

## Other responses

- `400`: Invalid request parameters.
- `401`: Unauthorized. Invalid or missing API key.
- `500`: Server error.

---

[API](https://skmtc.dev/ecommerceapi/apis/301-redirects.md) - [All operations](https://skmtc.dev/ecommerceapi/apis/301-redirects/llms.txt) - [OpenAPI document](https://skmtc.dev/ecommerceapi/apis/301-redirects/revisions/c24d1b1e917a?raw)
