---
title: "POST /internal/account/apps"
method: POST
path: "/internal/account/apps"
tags: ["InternalAccount"]
---

# POST /internal/account/apps

`POST /internal/account/apps`

create Revert App for Account

## Request body

- object
  - `userId` string, required
  - `tpId` 'hubspot' | 'zohocrm' | 'sfdc' | 'pipedrive' | 'slack' | 'closecrm' | 'ms_dynamics_365_sales', required
  - `environment` string, required

## Response `200`

- InternalGetAccountDetailsResponse
  - `account` CommonAccount, required
    - `id` string, required
    - `tenant_count` integer, required
    - `private_token` string, required
    - `public_token` string, required
    - `domain` string, required
    - `skipWaitlist` boolean, required
    - `users` CommonRevertUser[], nullable
      - `id` string, required
      - `domain` string, required
      - `email` string, required
      - `accountId` string, required
      - `account` CommonAccount — recursive
    - `apps` CommonApp[], nullable
      - `id` string, required
      - `tp_id` 'hubspot' | 'zohocrm' | 'sfdc' | 'pipedrive' | 'slack' | 'closecrm' | 'ms_dynamics_365_sales', required
      - `scope` string[], nullable
      - `available_scope` string[], required
      - `app_client_id` string, nullable
      - `app_client_secret` string, nullable
      - `owner_account_public_token` string, required
      - `account` CommonAccount — recursive
      - `connections` CommonConnection[], nullable
        - `tp_id` 'hubspot' | 'zohocrm' | 'sfdc' | 'pipedrive' | 'slack' | 'closecrm' | 'ms_dynamics_365_sales', required
        - `tp_access_token` string, required
        - `tp_refresh_token` string, nullable
        - `tp_customer_id` string, required
        - `t_id` string, required
        - `tp_account_url` string, nullable
        - `owner_account_public_token` string, required
        - `app_client_id` string, nullable
        - `app_client_secret` string, nullable
        - `app` CommonApp — recursive
      - `is_revert_app` boolean, required
      - `app_config` CommonAppConfig
        - `bot_token` string, nullable
        - `org_url` string, nullable
    - `isOnboardingCompleted` CommonEnvironment
      - `development` boolean, required
      - `production` boolean, required

## Other responses

- `401`
- `500`

---

[API](https://skmtc.net/revertinc/apis/revert-api.md) · [All operations](https://skmtc.net/revertinc/apis/revert-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/revertinc/revert-api/versions/698ea54a2330/schema)
