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

# Start Codex device code flow

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

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

## Path parameters

- `projectId` string, required

## Response `200`

Device code

- CodexDeviceCodeResponse — codex Device Code Response payload returned by the API.
  - `deviceAuthId` string, required — device Auth Id value for the codex Device Code Response object.
  - `userCode` string, required — user Code value for the codex Device Code Response object.
  - `verificationUri` string, required — verification Uri value for the codex Device Code Response object.
  - `interval` integer, required — interval value for the codex 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)
