Get workspace agent reinitialization
GET
CoderSessionTokenheader
Coder-Session-Token<token>wait?booleanOpt in to durable reinit checks
OK
application/json- response
owner_id?stringFormat
uuidreason?"prebuild_claimed"Value in
"prebuild_claimed"workspace_id?stringFormat
uuidThe samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.
curl -X GET \ "$CODER_URL/api/v2/workspaceagents/me/reinit" \ -H "Coder-Session-Token: $CODER_SESSION_TOKEN"Example Response
{ "owner_id": "8826ee2e-7933-4665-aef2-2393f84a0d05", "reason": "prebuild_claimed", "workspace_id": "0967198e-ec7b-4c6b-b4d3-f71244cadbe9"}