Get workspace agent Git SSH key
GET
CoderSessionTokenheader
Coder-Session-Token<token>OK
application/json- response
private_key?stringpublic_key?stringThe samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.
curl -X GET \ "$CODER_URL/api/v2/workspaceagents/me/gitsshkey" \ -H "Coder-Session-Token: $CODER_SESSION_TOKEN"Example Response200
{ "private_key": "string", "public_key": "string"}