v1

latestOpenAPI 3.0.32026-07-17136180270.3 KB
Credentials

Start GitHub Copilot device code flow

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

post/api/projects/{projectId}/credentials/github-copilot/device-code

Path parameters

projectIdstring required

Project identifier used to scope the request.

Request body

deploymentTypestring

deployment Type value for the git Hub Copilot Device Code Request object.

enterpriseUrlstring

enterprise Url value for the git Hub Copilot Device Code Request object.

Response

Device code

deviceCodestring required

device Code value for the git Hub Copilot Device Code Response object.

userCodestring required

user Code value for the git Hub Copilot Device Code Response object.

verificationUristring required

verification Uri value for the git Hub Copilot Device Code Response object.

expiresIninteger required

expires In value for the git Hub Copilot Device Code Response object.

intervalinteger required

interval value for the git Hub Copilot Device Code Response object.

domainstring required

domain value for the git Hub Copilot Device Code Response object.