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

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

# Function: listDeploymentsScapi()

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

Defined in: [packages/b2c-tooling-sdk/src/operations/mrt/deployment.ts:375](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/1dedfc1ffefa01c3d5bff62c8f7e7e682a1a91cd/packages/b2c-tooling-sdk/src/operations/mrt/deployment.ts#L375)

Lists deployments for an environment via the SCAPI MRT Deployments 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`), mirroring the legacy list and the other SCAPI collection
clients (`scapi-sites`, `scapi-catalogs`).

## Parameters

### conn

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

### params

#### environmentId

`string`

#### limit?

`number`

#### offset?

`number`

#### storefrontId

`string`

## Returns

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

## Throws

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