| Method | POST |
|---|---|
| Endpoint | https://<platform-domain.com>/api/public/apps/createApp |
| Content-type | application/json |
| Authorization Header | x-api-key: <API-KEY> |
Additional Request Headers
| Fields | Description | Mandatory |
|---|---|---|
| accountid | Account Id to be used for app creation. | Yes |
| userid | Unique user Id to be used for app creation. | Yes |
Request Parameters
| Fields | Description | Mandatory |
|---|---|---|
| name | Unique name of the app to be created | Yes |
| description | Brief description of the purpose of the app. | Yes |
| appIcon | Details of the icon to be used for the app. Use the following fields to describe the app icon. If this field isn’t provided, a random icon is used for the app.
| No |
Sample Request
Example Curl CommandResponse
On successful creation of the app, response in the following format is received. Sample response - Success (201)| HTTP Status | Error Code | Description |
|---|---|---|
| 400 | VALIDATION_ERROR | One or more request parameters are invalid. |
| 400 | INVALID_APP_ICON | App icon name, type, or color is invalid. When this error occurs, a random icon is added to the app. |
| 400 | INVALID_NAME_FORMAT | App name contains special characters or an invalid format. |
| 401 | UNAUTHORIZED | API key is missing, invalid, or expired. |
| 401 | API_KEY_EXPIRED | The provided API key is no longer valid. |
| 401 | API_KEY_REVOKED | The API key has been manually revoked. |
| 403 | INSUFFICIENT_SCOPE | The API key does not have the required scope |
| 403 | ACCOUNT_ACCESS_DENIED | The user does not have access to the account. |
| 403 | USER_PERMISSION_DENIED | User does not have permission to create apps. |
| 409 | RESOURCE_CONFLICT | An app with this name already exists in the workspace. |
| 500 | INTERNAL_ERROR | Unexpected server error during processing. |
| 503 | SERVICE_UNAVAILABLE | The API service is temporarily down for maintenance. |