---
title: "Get a specific 301 redirect"
method: GET
path: "/redirects/{id}"
---

# Get a specific 301 redirect

`GET /redirects/{id}`

## Request

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

Retrieves a single 301 redirect by ID.

## Path parameters

- `id` integer, required

## Query parameters

- `fields` string

## Response `200`

The 301 redirect details.

- 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.
- `404`: Redirect not found.
- `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)
