Skip to content
Skip to Content
Coder Docs

Get workspace agent external auth

GET
/api/v2/workspaceagents/me/external-auth

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Query Parameters

match*string

Match

id*string

Provider ID

listen?boolean

Wait for a new token to be issued

Response Body

OK

application/json
  1. response
access_token?string
expires_at?string

ExpiresAt is the time the token expires, normalized to UTC (for example, "2024-06-01T15:04:05Z"). Zero value means no expiry.

password?string
token_extra?
type?string
url?string
username?string

Deprecated: Only supported on /workspaceagents/me/gitauth for backwards compatibility.

The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.

curl -X GET \	"$CODER_URL/api/v2/workspaceagents/me/external-auth?match={match}&id={id}" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN"
Example Response200
{  "access_token": "string",  "expires_at": "string",  "password": "string",  "token_extra": {},  "type": "string",  "url": "string",  "username": "string"}