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

# Channel Status

> The channel's live connection status.



## OpenAPI

````yaml /versions/2.0.6dev/en/deploy/openapi.json get /channels/{channel_id}/status
openapi: 3.1.0
info:
  title: AgentScope
  version: 2.0.6dev
servers: []
security: []
paths:
  /channels/{channel_id}/status:
    get:
      tags:
        - channels
      summary: Channel Status
      description: The channel's live connection status.
      operationId: channel_status_channels__channel_id__status_get
      parameters:
        - name: channel_id
          in: path
          required: true
          schema:
            type: string
            title: Channel Id
        - name: x-user-id
          in: header
          required: true
          schema:
            type: string
            description: >-
              Caller's user ID. Temporary header-based identity; will be
              replaced by JWT auth.
            title: X-User-Id
          description: >-
            Caller's user ID. Temporary header-based identity; will be replaced
            by JWT auth.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChannelStatus'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ChannelStatus:
      properties:
        state:
          type: string
          title: State
          default: stopped
        last_error:
          type: string
          title: Last Error
          default: ''
      type: object
      title: ChannelStatus
      description: |-
        Live connection status of a running channel adapter — owned and
        updated by the adapter itself; read by the dispatcher's status API.

        ``state`` transitions (all set by the adapter):
        ``stopped`` (default / on teardown) → ``connecting`` → ``connected``;
        ``retrying`` while reconnecting after a drop; ``failed`` when the
        adapter gave up (parked, no more retries until the channel is edited).
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````