---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../../modules.md) / [operations/mrt](../index.md) / getRedirectsScapi

# Function: getRedirectsScapi()

> **getRedirectsScapi**(`conn`, `params`): `Promise`\<\{ `count`: `number`; `raw`: `unknown`; `redirects`: [`MrtRedirectView`](../interfaces/MrtRedirectView.md)[]; \}\>

Defined in: [packages/b2c-tooling-sdk/src/operations/mrt/redirect.ts:718](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/8fc17d8708d025c83fb0c44ca73198a200605153/packages/b2c-tooling-sdk/src/operations/mrt/redirect.ts#L718)

Lists redirects for an environment via the SCAPI MRT Environments API.
Forwards the standard SCAPI `limit`/`offset` pagination query parameters when
provided (max 200 per page, default 25 server-side; the response echoes the
full `total`).

## Parameters

### conn

[`ScapiMrtConnection`](../interfaces/ScapiMrtConnection.md)

### params

#### environmentId

`string`

#### limit?

`number`

#### offset?

`number`

#### storefrontId

`string`

## Returns

`Promise`\<\{ `count`: `number`; `raw`: `unknown`; `redirects`: [`MrtRedirectView`](../interfaces/MrtRedirectView.md)[]; \}\>

## Throws

carrying the HTTP status on a non-2xx response.
