Skip to content
Skip to Content
Coder Docs

Get chat diff contents

GET
/api/v2/chats/{chat}/diff

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Path Parameters

chat*string

Chat ID

Formatuuid

Query Parameters

origin?string

Remote origin selecting the ref to diff

branch?string

Git branch selecting the ref to diff

Response Body

OK

application/json
  1. response
branch?string
chat_id?string
Formatuuid
diff?string
provider?string
pull_request_url?string
remote_origin?string

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

curl -X GET \	"$CODER_URL/api/v2/chats/{chat}/diff" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN"
Example Response200
{  "branch": "string",  "chat_id": "efc9fe20-a1e5-4a8c-9c48-f1b30c1e4f86",  "diff": "string",  "provider": "string",  "pull_request_url": "string",  "remote_origin": "string"}