Workspace Agent Connection Watch
GET
CoderSessionTokenheader
Coder-Session-Token<token>workspace*stringWorkspace ID
Format
uuidSwitching Protocols
application/json- response
agent_update?build_update?error?The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.
curl -X GET \ "$CODER_URL/api/v2/workspaces/{workspace}/agent-connection-watch" \ -H "Coder-Session-Token: $CODER_SESSION_TOKEN"Example Response101
{ "agent_update": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "lifecycle": "created" }, "build_update": { "job_status": "pending", "transition": "start" }, "error": { "code": 0, "details": "string", "message": "string", "retryable": true }}