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

# POST /internal/account/credentials

`POST /internal/account/credentials`

Update account credentials (customer app token, secret, scope)

## Request body

- object
  - `clientId` string, nullable
  - `clientSecret` string, nullable
  - `scopes` string[], nullable
  - `tpId` 'hubspot' | 'zohocrm' | 'sfdc' | 'pipedrive' | 'slack' | 'closecrm' | 'ms_dynamics_365_sales', required
  - `isRevertApp` boolean, required
  - `appId` string, required
  - `appConfig` CommonAppConfig
    - `bot_token` string, nullable
    - `org_url` string, nullable

## Response `200`

- CommonApp
  - `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
    - `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
    - `isOnboardingCompleted` CommonEnvironment
      - `development` boolean, required
      - `production` boolean, required
  - `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

## Other responses

- `401`
- `404`
- `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)
