Agents

Get workspace agent external auth

Changed on
get/api/v2/workspaceagents/me/external-auth

Request

  • Base URL
    / (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/v2/workspaceagents/me/external-auth
  • Auth
    API key in header Coder-Session-Token

Query parameters

matchstring required

Match

idstring required

Provider ID

listenboolean

Wait for a new token to be issued

Response

OK

access_tokenstring
expires_atstring

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

passwordstring
token_extraobject
typestring
urlstring
usernamestring

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

Changes