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

[@salesforce/b2c-tooling-sdk](../../modules.md) / [clients](../index.md) / MrtClient

# Type Alias: MrtClient

> **MrtClient** = `Client`\<`paths`\>

Defined in: [packages/b2c-tooling-sdk/src/clients/mrt.ts:54](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/clients/mrt.ts#L54)

The typed MRT client for Managed Runtime operations.

## Common Endpoints

| Method | Path | Description |
|--------|------|-------------|
| GET | `/api/projects/` | List all projects |
| GET | `/api/projects/{projectSlug}/` | Get project details |
| POST | `/api/projects/{projectSlug}/builds/` | Push a bundle |
| GET | `/api/projects/{projectSlug}/target/{targetId}/` | Get target/environment |
| POST | `/api/projects/{projectSlug}/target/{targetId}/deploy/` | Deploy to target |

## Example

```typescript
import { createMrtClient } from '@salesforce/b2c-tooling-sdk/clients';
import { ApiKeyStrategy } from '@salesforce/b2c-tooling-sdk/auth';

const auth = new ApiKeyStrategy(apiKey, 'Authorization');
const client = createMrtClient({}, auth);

// List all projects
const { data, error } = await client.GET('/api/projects/', {});
```

## See

 - [createMrtClient](../functions/createMrtClient.md) for instantiation
 - [MRT Admin API Reference](https://developer.salesforce.com/docs/commerce/pwa-kit-managed-runtime/references/mrt-admin?meta=Summary)
