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

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

# Function: listProjects()

> **listProjects**(`options`, `auth`): `Promise`\<[`ListProjectsResult`](../interfaces/ListProjectsResult.md)\>

Defined in: [packages/b2c-tooling-sdk/src/operations/mrt/project.ts:111](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/operations/mrt/project.ts#L111)

Lists projects accessible to the authenticated user.

## Parameters

### options

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

List options including organization filter and pagination

### auth

[`AuthStrategy`](../../../auth/interfaces/AuthStrategy.md)

Authentication strategy (ApiKeyStrategy)

## Returns

`Promise`\<[`ListProjectsResult`](../interfaces/ListProjectsResult.md)\>

Paginated list of projects

## Throws

Error if request fails

## Example

```typescript
import { ApiKeyStrategy } from '@salesforce/b2c-tooling-sdk/auth';
import { listProjects } from '@salesforce/b2c-tooling-sdk/operations/mrt';

const auth = new ApiKeyStrategy(process.env.MRT_API_KEY!, 'Authorization');

// List all projects
const result = await listProjects({}, auth);

// List projects for a specific organization
const orgProjects = await listProjects({ organization: 'my-org' }, auth);
```
