# Example request using curl
curl -X GET http://coder-server:8080/api/v2/gitauth/{gitauth} \
-H 'Accept: application/json' \
-H 'Coder-Session-Token: API_KEY'GET /gitauth/{gitauth}
| Name | In | Type | Required | Description |
|---|---|---|---|---|
gitauth |
path | string(string) | true | Git Provider ID |
200 Response
{
"app_install_url": "string",
"app_installable": true,
"authenticated": true,
"device": true,
"installations": [
{
"account": {
"avatar_url": "string",
"login": "string",
"name": "string",
"profile_url": "string"
},
"configure_url": "string",
"id": 0
}
],
"type": "string",
"user": {
"avatar_url": "string",
"login": "string",
"name": "string",
"profile_url": "string"
}
}| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | OK | codersdk.GitAuth |
To perform this operation, you must be authenticated. Learn more.
# Example request using curl
curl -X GET http://coder-server:8080/api/v2/gitauth/{gitauth}/device \
-H 'Accept: application/json' \
-H 'Coder-Session-Token: API_KEY'GET /gitauth/{gitauth}/device
| Name | In | Type | Required | Description |
|---|---|---|---|---|
gitauth |
path | string(string) | true | Git Provider ID |
200 Response
{
"device_code": "string",
"expires_in": 0,
"interval": 0,
"user_code": "string",
"verification_uri": "string"
}| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | OK | codersdk.GitAuthDevice |
To perform this operation, you must be authenticated. Learn more.
# Example request using curl
curl -X POST http://coder-server:8080/api/v2/gitauth/{gitauth}/device \
-H 'Coder-Session-Token: API_KEY'POST /gitauth/{gitauth}/device
| Name | In | Type | Required | Description |
|---|---|---|---|---|
gitauth |
path | string(string) | true | Git Provider ID |
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 204 | No Content | No Content |
To perform this operation, you must be authenticated. Learn more.