Skip to content
Skip to Content
Coder Docs

Watch chat workspace git state via WebSockets

GET
/api/v2/chats/{chat}/stream/git

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Path Parameters

chat*string

Chat ID

Formatuuid

Response Body

OK

application/json
  1. response
message?string
repositories?array<>
scanned_at?string
Formatdate-time
type?codersdk.WorkspaceAgentGitServerMessageType
Value in"changes""error"

The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.

curl -X GET \	"$CODER_URL/api/v2/chats/{chat}/stream/git" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN"
Example Response200
{  "message": "string",  "repositories": [    {      "branch": "string",      "remote_origin": "string",      "removed": true,      "repo_root": "string",      "unified_diff": "string"    }  ],  "scanned_at": "2019-08-24T14:15:22Z",  "type": "changes"}