Skip to content
Skip to Content
Coder Docs

Get external auth by ID

GET
/api/v2/external-auth/{externalauth}

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Path Parameters

externalauth*string

Git Provider ID

Formatstring

Response Body

OK

application/json
  1. response
app_install_url?string

AppInstallURL is the URL to install the app.

app_installable?boolean

AppInstallable is true if the request for app installs was successful.

authenticated?boolean
device?boolean
display_name?string
installations?array<>

AppInstallations are the installations that the user has access to.

supports_revocation?boolean
user?

User is the user that authenticated with the provider.

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

curl -X GET \	"$CODER_URL/api/v2/external-auth/{externalauth}" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN"
Example Response200
{  "app_install_url": "string",  "app_installable": true,  "authenticated": true,  "device": true,  "display_name": "string",  "installations": [    {      "account": {        "avatar_url": "string",        "id": 0,        "login": "string",        "name": "string",        "profile_url": "string"      },      "configure_url": "string",      "id": 0    }  ],  "supports_revocation": true,  "user": {    "avatar_url": "string",    "id": 0,    "login": "string",    "name": "string",    "profile_url": "string"  }}