Skip to content
Skip to Content
Coder Docs

Get workspace agent reinitialization

GET
/api/v2/workspaceagents/me/reinit

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Query Parameters

wait?boolean

Opt in to durable reinit checks

Response Body

OK

application/json
  1. response
owner_id?string
Formatuuid
reason?"prebuild_claimed"
Value in"prebuild_claimed"
workspace_id?string
Formatuuid

The 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"}