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

# Sync chat state

> Read the saved task count, status and event sequence for one of your chats. This does not resume a live stream.

Operation ID: get__chat_id_sync.



## OpenAPI

````yaml /openapi/itoflow-public.openapi.json get /chat/{id}/sync
openapi: 3.1.0
info:
  description: >-
    All Itoflow APIs are experimental and may change without notice. Read-only
    operations marked interactive can be tried from the documentation; the
    others are reference-only.
  title: Itoflow Developer API
  version: 1.0.0
servers:
  - description: Itoflow API
    url: https://api.itoflow.ai
security: []
tags:
  - name: Account
  - name: Billing
  - name: Brokers
  - name: Chat
  - name: Connected MCP servers
  - name: GitHub
  - name: Market data
  - name: Monitors
  - name: Notifications
  - name: Portfolios
  - name: Risk runs
  - name: Sharing and data
  - name: Strategies
paths:
  /chat/{id}/sync:
    get:
      tags:
        - Chat
      summary: Sync chat state
      description: >-
        Read the saved task count, status and event sequence for one of your
        chats. This does not resume a live stream.


        Operation ID: get__chat_id_sync.
      operationId: get__chat_id_sync
      parameters:
        - description: id path parameter
          in: path
          name: id
          required: true
          schema:
            description: id path parameter
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChatSyncResponse'
          description: Sync chat state
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Bad request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Authentication required
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Not found
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Server error
      security:
        - bearerAuth: []
components:
  schemas:
    ChatSyncResponse:
      properties:
        active_stream_id:
          type:
            - string
            - 'null'
        lastTaskEventSequence:
          type:
            - integer
            - 'null'
        lastTaskStatus:
          anyOf:
            - $ref: '#/components/schemas/ChatProjectionTaskStatus'
            - type: 'null'
        lastTaskUpdatedAt:
          type:
            - string
            - 'null'
        taskCount:
          minimum: 0
          type: integer
      required:
        - active_stream_id
        - lastTaskEventSequence
        - lastTaskStatus
        - lastTaskUpdatedAt
        - taskCount
      type: object
    Error:
      properties:
        available:
          description: Optional available amount or value
          type: string
        billing_action:
          $ref: '#/components/schemas/BillingAction'
        code:
          description: Machine-readable error code
          type: string
        currentVersion:
          description: Current server-side version, when relevant
          type: number
        details:
          description: Optional structured error details
        error:
          description: Error type or code
          type: string
        expectedVersion:
          description: Client-provided expected version, when relevant
          type: number
        message:
          description: Human-readable error message
          type: string
        requested:
          description: Optional requested amount or value
          type: string
        usage:
          description: Optional usage metadata for limit errors
      required:
        - error
      type: object
    ChatProjectionTaskStatus:
      enum:
        - queued
        - dispatching
        - acknowledged
        - processing
        - completed
        - rendered
        - error
        - awaiting_input
        - cancelled
      type: string
    BillingAction:
      description: Action that resolves a billing-related rejection
      properties:
        href:
          type: string
        kind:
          enum:
            - upgrade
            - payment_method
            - spending_cap
            - billing
          type: string
        label:
          type: string
      required:
        - href
        - label
        - kind
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT
      description: Itoflow access token issued for the Itoflow API.
      scheme: bearer
      type: http

````

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