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

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

# Function: createNotification()

> **createNotification**(`options`, `auth`): `Promise`\<`object` & `object` & `object`\>

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

Creates a notification for an MRT project.

## Parameters

### options

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

Create notification options

### auth

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

Authentication strategy (ApiKeyStrategy)

## Returns

`Promise`\<`object` & `object` & `object`\>

The created notification

## Throws

Error if request fails

## Example

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

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

const notification = await createNotification({
  projectSlug: 'my-storefront',
  targets: ['staging', 'production'],
  recipients: ['team@example.com'],
  deploymentStart: true,
  deploymentFailed: true
}, auth);
```
