# appstore_create_app

> Create an app's record on App Store Connect, registering its bundle id with Apple first when needed.

Source: https://air.build/docs/mcp-tools/appstore_create_app/

Creates the app's record on App Store Connect: the step before its first TestFlight build or App Review submission. When the Apple team has not registered the bundle id as an App ID yet, the tool registers it first. Apple creates the app with a first version, `1.0`, as App Store Connect itself does. The name is the app's App Store name and must not be in use anywhere on the App Store. It is not undone by any tool.

This tool works through the Team owner's Apple sign-in in AirBuild (see [Connect your Apple Developer account](https://air.build/docs/app-store/connect-apple-developer-account/)). Any member of the Team can call it; when the owner's sign-in has lapsed and only the owner can renew it, the call fails with the sentence below until they sign in again.

The app is created in the Team's only connected Apple team, or in `appleTeamId`.

| Read-only | Destructive | Idempotent |
| --- | --- | --- |
| No | No | No |

## Inputs

| Input | Type | Required | Default | What it does |
| --- | --- | --- | --- | --- |
| `teamId` | string (UUID) | yes | — | The Team, from [list_teams](https://air.build/docs/mcp-tools/list_teams/). |
| `appleTeamId` | string (UUID) | when several Apple teams are connected | the only connected one | The Apple team to create the app in, from [appstore_list_apple_teams](https://air.build/docs/mcp-tools/appstore_list_apple_teams/). |
| `projectId` | string (UUID) | this or `bundleId` | — | Create the app for this Project, from [list_projects](https://air.build/docs/mcp-tools/list_projects/): its bundle id is used. When the Project has a bundle id, it wins over `bundleId`. |
| `bundleId` | string | this or `projectId` | — | The bundle id, e.g. `com.example.app`, when no Project names it (or the Project has not been built yet). |
| `name` | string, at most 30 characters | yes | — | The App Store name. |
| `sku` | string | no | the bundle id | Your own unique id for the app. When left out, the bundle id is used, with any character other than letters, digits, `.`, `_` and `-` replaced by `-`. |
| `primaryLocale` | string | no | `en-US` | The listing's primary language, e.g. `en-US`, `zh-Hans`. |
| `platforms` | array of `IOS`, `MAC_OS`, `TV_OS`, `VISION_OS` | no | `["IOS"]` | The platforms the app ships on. |

The checks every tool makes on its inputs are on [Server and sign-in](https://air.build/docs/mcp-tools/server/#errors).

## Result

A JSON object, as text and as `structuredContent`.

| Field | What |
| --- | --- |
| `appId` | App Store Connect's id of the new app |
| `name`, `bundleId`, `sku`, `primaryLocale` | As Apple saved them |
| `appleTeamId`, `appleTeam` | The Apple team it was created in |
| `registeredBundleId` | true when the bundle id was registered as an App ID by this call |
| `projectId` | The Project that builds it (the one sent, or the Project with that bundle id), or null |

```json
{
  "appId": "1234567890",
  "name": "Notes",
  "bundleId": "com.example.notes",
  "sku": "com.example.notes",
  "primaryLocale": "en-US",
  "appleTeamId": "00000000-0000-0000-0000-000000000000",
  "appleTeam": "Example Inc.",
  "registeredBundleId": true,
  "projectId": "00000000-0000-0000-0000-000000000000"
}
```

## Errors

Each comes back as a tool error (`isError: true`). _Italic_ words stand for the values in the sentence. The errors every tool can return are on [Server and sign-in](https://air.build/docs/mcp-tools/server/#errors).

| Message | When | What to do |
| --- | --- | --- |
| Pass projectId or bundleId. | Neither was sent | Send one |
| No such Project in this Team. | `projectId` is not a Project of the Team | Take it from [list_projects](https://air.build/docs/mcp-tools/list_projects/) |
| This Project has no bundle id yet: it gets one with its first iOS build. Pass bundleId to choose one now. | The Project has never been built for iOS and no `bundleId` was sent | Send `bundleId`, or have the Project built first |
| The Bundle ID _bundle id_ is already in use by another Apple developer account. Choose a different Bundle ID. | Another Apple developer account holds the bundle id | Choose another bundle id with the person |
| This Apple team is read-only because the signed-in Apple ID is not an Admin or Account Holder. | The owner's Apple ID has no Admin or Account Holder role in that Apple team (for an individual enrollment: "…because it is an individual enrollment and the signed-in Apple ID is not its Account Holder.") | The Team owner needs that role at Apple, or use another Apple team |
| This Team has no Apple Developer account connected. The Team's owner connects one in AirBuild (Settings → Apple Developer). | The Team owner has connected no Apple Developer account | Ask the Team owner to connect one (in the app: **Settings** › **Developer**) |
| None of this Team's Apple teams is connected yet. The Team's owner finishes connecting it in AirBuild. | The owner's Apple teams exist but none is switched on and ready | Ask the Team owner to finish connecting it |
| This Team works with several Apple teams; pass appleTeamId: _name_ = _id_, …. | More than one Apple team is connected and `appleTeamId` was not sent | Send `appleTeamId`, one of the ids the sentence lists |
| That Apple team is not one of this Team's. See appstore_list_apple_teams. | `appleTeamId` is not one of the Team's Apple teams | Take it from [appstore_list_apple_teams](https://air.build/docs/mcp-tools/appstore_list_apple_teams/) |
| The Team owner's Apple sign-in has lapsed and only they can renew it: ask them to open AirBuild and sign in to Apple again, then try once more. | The Team owner's Apple sign-in in AirBuild has expired and AirBuild could not renew it without them | Tell the Team owner; they sign in again in AirBuild (see [Connect your Apple Developer account](https://air.build/docs/app-store/connect-apple-developer-account/)). Retrying before that gives the same answer |
| Another Apple account operation is already in progress. | Another App Store action on the same Apple account was running | Try again shortly; the owner does not need to sign in |
| Apple has locked this Apple Account for security reasons. Unlock it at account.apple.com by signing in with the Apple ID and password, then sign in again. | Apple locked the Team owner's Apple Account | Only the Team owner can unlock it at account.apple.com and sign in again in AirBuild |
| _Apple's sentence_ | Apple refused the app, for example because the name is taken or an agreement is waiting | Act on Apple's words: choose another name, or have the Account Holder accept the agreement in App Store Connect |
| App Store Connect: _Apple's sentence_ | Apple refused the request. Up to five of Apple's own sentences follow, each with the field it is about in brackets when Apple names one. An Apple agreement waiting in App Store Connect is refused this way too | Act on Apple's words. Agreements are accepted by the Apple Developer account's Account Holder in App Store Connect (Business › Agreements) |
| App Store Connect answered _status_. Try again in a moment. | Apple refused without saying why | Try again in a moment |

## Example

```json
{
  "name": "appstore_create_app",
  "arguments": {
    "teamId": "00000000-0000-0000-0000-000000000000",
    "projectId": "00000000-0000-0000-0000-000000000000",
    "name": "Notes"
  }
}
```
