---
title: "Poll Codex device flow"
method: POST
path: "/api/projects/{projectId}/credentials/codex/poll"
tags: ["Credentials"]
---

# Poll Codex device flow

`POST /api/projects/{projectId}/credentials/codex/poll`

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

## Path parameters

- `projectId` string, required

## Request body

- CodexPollRequest — codex Poll Request payload accepted by the API.
  - `deviceAuthId` string, required — device Auth Id value for the codex Poll Request object.
  - `userCode` string, required — user Code value for the codex Poll Request object.

## Response `200`

Poll result

- CodexExchangeResponse — codex Exchange Response payload returned by the API.
  - `success` boolean, required — Whether the requested action succeeded.
  - `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)
