Get workspace external agent credentials
GET
CoderSessionTokenheader
Coder-Session-Token<token>workspace*stringWorkspace ID
Format
uuidagent*stringAgent name
OK
application/json- response
agent_token?stringcommand?stringThe samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.
curl -X GET \ "$CODER_URL/api/v2/workspaces/{workspace}/external-agent/{agent}/credentials" \ -H "Coder-Session-Token: $CODER_SESSION_TOKEN"Example Response200
{ "agent_token": "string", "command": "string"}