---
title: "Start Codex sign-in with ChatGPT"
method: POST
path: "/integrations/codex/device-login/start"
tags: ["Integrations"]
---

# Start Codex sign-in with ChatGPT

`POST /integrations/codex/device-login/start`

## Request

- Base URL: `https://api.sazabi.com/v1`
- URL: `https://api.sazabi.com/v1/integrations/codex/device-login/start`
- Auth: none declared
- TypeScript: <https://skmtc.dev/sazabi/apis/sazabi-public-api/docs/integrations/codex/device-login/start/post.ts> (a function with typed inputs; its response is checked against the schema)

Start a temporary Codex device-code sign-in for a project. Answers with the code to enter in ChatGPT; poll the status for approval.

## Request body

- object
  - `organizationId` string, required
  - `projectId` string, uuid, required
  - `accountLabel` string

## Response `200`

OK

- object
  - `loginId` string, uuid, required
  - `status` 'code_shown', required
  - `verificationUrl` string, uri, required
  - `userCode` string, required
  - `expiresAt` string, date-time, required

## Changes

- **2026-11-02** `7e05bcfa70b4`: 1 breaking, 2 info
  - the `status` response property const value changed from `starting` to `code_shown` for the status `200`
  - added the required property `userCode` to the response with the `200` status
  - added the required property `verificationUrl` to the response with the `200` status
- **2026-10-29** `cc7fabd7b7f2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/sazabi/apis/sazabi-public-api/changes/integrations/codex/device-login/start/post.md)

---

[API](https://skmtc.dev/sazabi/apis/sazabi-public-api.md) - [All operations](https://skmtc.dev/sazabi/apis/sazabi-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sazabi/apis/sazabi-public-api/revisions/dae846531e50?raw)
