Skip to content
Skip to Content
Coder Docs

Workspace Agent Connection Watch

GET
/api/v2/workspaces/{workspace}/agent-connection-watch

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Path Parameters

workspace*string

Workspace ID

Formatuuid

Response Body

Switching Protocols

application/json
  1. 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  }}