---
updatedAt: 2025-06-09T22:53:48.000Z
agentTools:
  projectIndex: https://docs.metakeep.xyz/llms.txt
---

# New App

> 📘 This API requires [API Signature](https://docs.metakeep.xyz/reference/api-signature)

Using this API, developers can create new apps. An app is a container for all blockchain objects such as lambdas, collections, NFTs, coins, etc.

# App ID

Each created app will have a unique app ID. This ID is used for initializing MetaKeep user SDKs and updating the app. The app ID is returned in the response of the API.

```json Sample Response
{
  "status": "SUCCESS",
  "app": {
    "appId": "9f456h0f-5f32-468d-6c01-4aa89b1a02ae"
  }
}
```

# App Chain

When creating the app, you need to specify the `chainID `of the chain to use for the app. This is `immutable` and `cannot be changed` after the app is created.

Here's a list of supported `chainIDs` along with the chains they represent:

1. **CHAIN\_ID\_POLYGON\_AMOY**: Polygon Amoy Testnet
2. **CHAIN\_ID\_POLYGON\_MAINNET**: Polygon Mainnet
3. **CHAIN\_ID\_SOLANA\_TESTNET**: Solana Devnet. *Note that this is connected to Solana Devnet, not Solana Testnet. Solana Testnet is not supported.*
4. **CHAIN\_ID\_SOLANA\_MAINNET**: Solana Mainnet
5. **CHAIN\_ID\_BASE\_SEPOLIA**: Base Sepolia Testnet
6. **CHAIN\_ID\_BASE\_MAINNET**: Base Mainnet

> 🚧 Api Error Status
>
> You can find error status returned by the api [here](https://docs.metakeep.xyz/reference/api-error-status#v2appcreate).

© Copyright 2024, Passbird Research Inc.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "production-admin-apis",
    "version": "3.4"
  },
  "servers": [
    {
      "url": "https://api.metakeep.xyz/"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Account-Key"
      },
      "sec1": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Api-Signature"
      },
      "sec2": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Timestamp"
      }
    }
  },
  "security": [
    {
      "sec0": [],
      "sec1": [],
      "sec2": []
    }
  ],
  "paths": {
    "/v2/app/create": {
      "post": {
        "summary": "New App",
        "description": "",
        "operationId": "v2appcreate",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name",
                  "blockchain"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "The name of the app."
                  },
                  "blockchain": {
                    "type": "object",
                    "description": "The blockchain on which the app will be deployed.",
                    "required": [
                      "chainId"
                    ],
                    "properties": {
                      "chainId": {
                        "type": "string",
                        "description": "The chain ID of the chain to use for the app. This is immutable and cannot be changed after the app is created.",
                        "enum": [
                          "",
                          "CHAIN_ID_POLYGON_AMOY",
                          "CHAIN_ID_POLYGON_MAINNET",
                          "CHAIN_ID_SOLANA_TESTNET",
                          "CHAIN_ID_SOLANA_MAINNET"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"status\": \"SUCCESS\",\n  \"app\": {\n    \"appId\": \"9f456h0f-5f32-468d-6c01-4aa89b1a02ae\"\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "SUCCESS"
                    },
                    "app": {
                      "type": "object",
                      "properties": {
                        "appId": {
                          "type": "string",
                          "example": "9f456h0f-5f32-468d-6c01-4aa89b1a02ae"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"status\": \"INVALID_NAME\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "INVALID_NAME"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "403",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"status\": \"FORBIDDEN\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "FORBIDDEN"
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```