---
title: "Poll GitHub Copilot device flow"
method: POST
path: "/api/projects/{projectId}/credentials/github-copilot/poll"
tags: ["Credentials"]
---

# Poll GitHub Copilot device flow

`POST /api/projects/{projectId}/credentials/github-copilot/poll`

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

## Path parameters

- `projectId` string, required

## Request body

- GitHubCopilotPollRequest — git Hub Copilot Poll Request payload accepted by the API.
  - `deviceCode` string, required — device Code value for the git Hub Copilot Poll Request object.
  - `domain` string, required — domain value for the git Hub Copilot Poll Request object.

## Response `200`

Poll result

- GitHubCopilotPollResponse — git Hub Copilot Poll Response payload returned by the API.
  - `status` string, required — Current status value.
  - `error` string — Error message when the operation failed.

---

[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)
