---
title: "Watch chat workspace git state via WebSockets"
method: GET
path: "/api/experimental/chats/{chat}/stream/git"
tags: ["Chats"]
---

# Watch chat workspace git state via WebSockets

`GET /api/experimental/chats/{chat}/stream/git`

Experimental: this endpoint is subject to change.

## Path parameters

- `chat` string, uuid, required

## Response `200`

OK

- CodersdkWorkspaceAgentGitServerMessage
  - `message` string
  - `repositories` CodersdkWorkspaceAgentRepoChanges[]
    - `branch` string
    - `remote_origin` string
    - `removed` boolean
    - `repo_root` string
    - `unified_diff` string
  - `scanned_at` string, date-time
  - `type` 'changes' | 'error'

---

[API](https://skmtc.net/coder/apis/coder-api.md) · [All operations](https://skmtc.net/coder/apis/coder-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/coder/coder-api/versions/56b6e9f08540/schema)
