---
title: "Start GitHub device code flow"
method: POST
path: "/api/projects/{projectId}/credentials/github-git/device-code"
tags: ["Credentials"]
---

# Start GitHub device code flow

`POST /api/projects/{projectId}/credentials/github-git/device-code`

Start GitHub device code flow. Accepts a JSON request body when defined and returns the resulting resource or action status.

## Path parameters

- `projectId` string, required

## Request body

- GitHubDeviceCodeRequest — git Hub Device Code Request payload accepted by the API.
  - `enterpriseUrl` string — enterprise Url value for the git Hub Device Code Request object.
  - `scopes` string[] — Collection of scope values.

## Response `200`

Device code

- GitHubCopilotDeviceCodeResponse — git Hub Copilot Device Code Response payload returned by the API.
  - `deviceCode` string, required — device Code value for the git Hub Copilot Device Code Response object.
  - `userCode` string, required — user Code value for the git Hub Copilot Device Code Response object.
  - `verificationUri` string, required — verification Uri value for the git Hub Copilot Device Code Response object.
  - `expiresIn` integer, required — expires In value for the git Hub Copilot Device Code Response object.
  - `interval` integer, required — interval value for the git Hub Copilot Device Code Response object.
  - `domain` string, required — domain value for the git Hub Copilot Device Code Response object.

---

[API](https://skmtc.net/ibuildthecloud/apis/discobot-server-api.md) · [All operations](https://skmtc.net/ibuildthecloud/apis/discobot-server-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ibuildthecloud/discobot-server-api/versions/4de3fcd6be56/schema)
