# defineApp

> API reference for defineApp: parameters, properties, and return types.

Defines a custom app and its pages.

```ts
import { defineApp } from '@rippling/rippling-sdk';
```

## Properties

| Property | Required | Type | Description |
| --- | --- | --- | --- |
| `apiName` | Required | `string` | Unique identifier for this app (e.g. `'gym_membership_management_app__c'`).<br>New Custom Apps must use an API name ending in `__c`. Preserve existing unsuffixed API names when editing or importing apps; the SDK passes API names through unchanged. |
| `description` | Required | `null \| string` | Human-readable description of what this app does. |
| `name` | Required | `string` | Display name shown as the app title in the Rippling UI. |
| `pages` | Required | `[Array](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/defineApp-pages-34e46011)` | — |
| `adminGroup` | Optional | `null \| [DefinedGroup](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/DefinedGroup-09c3816e)` | — |
| `appType` | Optional | `string` | App type discriminator.<br>**Documented default:** `` `'custom'` `` |
| `icon` | Optional | `[AppIcon](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/AppIcon-5298f9d0)` | S3 icon for this app.<br>**Documented default:** `null` |
| `sharedGroup` | Optional | `null \| [DefinedGroup](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/DefinedGroup-09c3816e)` | Embedded app audiences; use defineGroup, not a standalone saved-group wrapper. |
| `visibilityPlatforms` | Optional | `[AppVisibilityPlatform](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/AppVisibilityPlatform-2b3761f2)[]` | Platforms this app is visible on.<br>**Documented default:** `` `['WEB']` `` |

[Complete options type](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/DefineAppProps-37aade13)

TypeScript signature

```ts
defineApp(props: DefineAppProps): App;
```

## Returns

```
App
```

## Availability

| Capability | Support |
| --- | --- |
| Pull into a project | Supported |
| Runtime operations | Not available for this helper |

Source: https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/defineApp

> For the complete documentation index, see [llms.txt](https://developer.rippling.com/llms.txt). Public pages have a Markdown version at the same URL with .md added.
