Skip to content
Skip to Content
Coder Docs

Get external auth device by ID.

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

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Path Parameters

externalauth*string

Git Provider ID

Formatstring

Response Body

OK

application/json
  1. response
device_code?string
expires_in?integer
interval?integer
user_code?string
verification_uri?string

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

curl -X GET \	"$CODER_URL/api/v2/external-auth/{externalauth}/device" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN"
Example Response200
{  "device_code": "string",  "expires_in": 0,  "interval": 0,  "user_code": "string",  "verification_uri": "string"}