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

# Start synchronization for one account

> Requires `account:write` and `Idempotency-Key`.



## OpenAPI

````yaml /openapi/portfobit-openapi.yaml post /accounts/{account_id}/syncs
openapi: 3.1.0
info:
  title: Portfobit Open API
  version: 0.1.0
  description: >
    Public REST API for direct API clients, CI, scripts, service accounts,
    third-party agents, and developer integrations.

    Public REST requests use scoped Portfobit Open API keys. OAuth access tokens
    issued for the Portfobit MCP resource are not accepted by `/api/v1/*`
    endpoints.

    Portfobit is crypto-CEX-only. Financial values are decimal strings and
    timestamps are RFC 3339 UTC strings.

    The API never supports withdrawals, external-address transfers,
    cross-exchange transfers, or P2P transfers.
servers:
  - url: https://api.portfobit.com/api/v1
security:
  - bearerAuth: []
tags:
  - name: Context
  - name: Accounts
  - name: Portfolios
  - name: Valuation
  - name: Activity
  - name: Trading
  - name: Market data
  - name: Support
paths:
  /accounts/{account_id}/syncs:
    post:
      tags:
        - Accounts
      summary: Start synchronization for one account
      description: Requires `account:write` and `Idempotency-Key`.
      operationId: startAccountSync
      parameters:
        - $ref: '#/components/parameters/AccountId'
        - $ref: '#/components/parameters/IdempotencyKey'
      responses:
        '202':
          $ref: '#/components/responses/SyncResponse'
        '429':
          $ref: '#/components/responses/SyncRateLimitedResponse'
        default:
          $ref: '#/components/responses/ErrorResponse'
components:
  parameters:
    AccountId:
      name: account_id
      in: path
      required: true
      schema:
        type: string
      description: Connected CEX account ID.
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      required: true
      schema:
        type: string
        minLength: 1
        maxLength: 255
      description: Opaque retry key, unique to the same user, method, and path.
  responses:
    SyncResponse:
      description: Sync response.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/SyncResponseSchema'
    SyncRateLimitedResponse:
      description: The daily manual synchronization quota is exhausted.
      headers:
        Retry-After:
          schema:
            type: integer
          description: Seconds until another request may be attempted.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/SyncRateLimitedResponseSchema'
    ErrorResponse:
      description: Error response
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
  schemas:
    SyncResponseSchema:
      type: object
      required:
        - data
        - message
        - meta
      properties:
        data:
          type: object
          required:
            - id
            - account_id
            - trigger_type
            - status
            - started_at
            - finished_at
            - balance_count
            - position_count
            - order_count
            - trade_count
            - ledger_entry_count
            - transaction_count
            - error_code
            - error_message
          properties:
            id:
              type: string
            account_id:
              type: string
            trigger_type:
              type: string
            status:
              type: string
            started_at:
              type: string
              format: date-time
            finished_at:
              type: string
              format: date-time
            balance_count:
              type: integer
            position_count:
              type: integer
            order_count:
              type: integer
            trade_count:
              type: integer
            ledger_entry_count:
              type: integer
            transaction_count:
              type: integer
            error_code:
              type:
                - string
                - 'null'
            error_message:
              type:
                - string
                - 'null'
        message:
          type: string
        meta:
          type: object
          required:
            - request_id
            - generated_at
          properties:
            request_id:
              type: string
            generated_at:
              type: string
              format: date-time
      example:
        data:
          id: sync_01J2K8NN5T
          account_id: acc_01H8XFK9A
          trigger_type: manual
          status: succeeded
          started_at: '2026-08-07T08:00:00Z'
          finished_at: '2026-08-07T08:00:03Z'
          balance_count: 4
          position_count: 1
          order_count: 2
          trade_count: 3
          ledger_entry_count: 5
          transaction_count: 1
          error_code: null
          error_message: null
        message: Account_sync_completed
        meta:
          request_id: req_01J2K8B7QW
          generated_at: '2026-08-07T08:00:03Z'
    SyncRateLimitedResponseSchema:
      type: object
      required:
        - error
        - meta
      properties:
        error:
          type: object
          required:
            - code
            - message
            - details
          properties:
            code:
              type: string
            message:
              type: string
            details:
              type: object
              required:
                - sync_quota
              properties:
                sync_quota:
                  type: object
                  required:
                    - limit
                    - remaining
                    - reset_at
                  properties:
                    limit:
                      type: integer
                    remaining:
                      type: integer
                    reset_at:
                      type: string
                      format: date-time
        meta:
          type: object
          required:
            - request_id
            - generated_at
          properties:
            request_id:
              type: string
            generated_at:
              type: string
              format: date-time
      example:
        error:
          code: sync_rate_limited
          message: The daily manual sync limit has been reached.
          details:
            sync_quota:
              limit: 20
              remaining: 0
              reset_at: '2026-08-09T00:00:00Z'
        meta:
          request_id: req_01J2K8B7QW
          generated_at: '2026-08-08T08:00:00Z'
    ErrorEnvelope:
      type: object
      required:
        - error
        - meta
      properties:
        error:
          $ref: '#/components/schemas/Error'
        meta:
          $ref: '#/components/schemas/Meta'
    Error:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
        message:
          type: string
        details:
          type: object
          additionalProperties: true
    Meta:
      type: object
      required:
        - request_id
        - generated_at
      properties:
        request_id:
          type: string
        generated_at:
          type: string
          format: date-time
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Portfobit Open API key

````

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