> ## Documentation Index
> Fetch the complete documentation index at: https://perps-api.vooi.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Resolve missing exchange account ids (admin)

> Resolves the exchange-side account id for every active connection that has none yet. Connections whose exchange exposes no identity to the stored key receive a random id.



## OpenAPI

````yaml https://vooi-api-app.fly.dev/swagger/json post /user-exchange/exchange-account-ids/sync
openapi: 3.1.0
info:
  title: VOOI API
  description: Unified perps API
  version: '1.0'
  contact: {}
servers:
  - url: https://perps-api.vooi.io
security: []
tags: []
paths:
  /user-exchange/exchange-account-ids/sync:
    post:
      tags:
        - User exchange
      summary: Resolve missing exchange account ids (admin)
      description: >-
        Resolves the exchange-side account id for every active connection that
        has none yet. Connections whose exchange exposes no identity to the
        stored key receive a random id.
      operationId: UserExchangeController_syncExchangeAccountIds
      parameters:
        - name: X-Admin-Key
          in: header
          required: true
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SyncExchangeAccountIdsResultDto'
components:
  schemas:
    SyncExchangeAccountIdsResultDto:
      type: object
      properties:
        failed:
          type: array
          items:
            type: object
            properties:
              exchange:
                type: string
                enum:
                  - aster
                  - binance
                  - bybit
                  - extended
                  - gate
                  - hyperliquid
                  - lighter
                  - mexc
                  - ondo
                  - robinhood
                description: Perpetual exchange
              userId:
                type: string
                description: VOOI user id
              error:
                type: string
                description: Error message returned by the exchange
            required:
              - exchange
              - userId
              - error
          description: Connections whose exchange account id request failed
        synced:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
          description: >-
            Number of connections that received an exchange account id in this
            run
      required:
        - failed
        - synced
      title: SyncExchangeAccountIdsResult

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.