Skip to content
Skip to Content
Coder Docs

Get workspace external agent credentials

GET
/api/v2/workspaces/{workspace}/external-agent/{agent}/credentials

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Path Parameters

workspace*string

Workspace ID

Formatuuid
agent*string

Agent name

Response Body

OK

application/json
  1. response
agent_token?string
command?string

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