---
title: "Sync Legacy Accounts"
method: POST
path: "/api/platform/scopes/accounts/sync-legacy"
tags: ["platform"]
---

# Sync Legacy Accounts

`POST /api/platform/scopes/accounts/sync-legacy`

## Request body

- LegacyAccountsSyncRequest — Operator-supplied input for a legacy account sync. ``legacy_token`` is a bearer token for the legacy ``platform.gocrisp.com`` GraphQL gateway, pasted by the operator at sync time. That gateway is the old Firebase-backed API and does not accept the dock's Auth0 tokens, so the credential cannot be derived from the request's own ``Authorization`` header. When omitted, the backend falls back to the configured ``LEGACY_PLATFORM_BEARER_TOKEN``.
  - `legacyToken` string

## Response `200`

Successful Response

- LegacyAccountsSyncResponse
  - `created` integer
  - `updated` integer
  - `total` integer
  - `accounts` AccountSummary[]
    - `id` string, required
    - `accountNumber` string, required
    - `name` string, required
    - `shortName` string, nullable
    - `isTest` boolean, required
    - `businessDashboardsEnabled` boolean, required
    - `segment` string, required
    - `status` string, required
    - `portfolioId` string, nullable
    - `portfolioName` string, nullable
    - `fgaSyncStatus` string, required
    - `fgaLastError` string, nullable
    - `fgaLastReconciledAt` string, date-time, nullable
    - `createdAt` string, date-time, nullable
    - `updatedAt` string, date-time, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/gocrisp/apis/crisp-app-dock.md) · [All operations](https://skmtc.dev/gocrisp/apis/crisp-app-dock/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gocrisp/crisp-app-dock/revisions/e56bd3c1a9db/schema)
