---
title: "CompleteCodexDeviceLogin"
method: POST
path: "/gitpod.v1.IntegrationService/CompleteCodexDeviceLogin"
tags: ["gitpod.v1.IntegrationService"]
---

# CompleteCodexDeviceLogin

`POST /gitpod.v1.IntegrationService/CompleteCodexDeviceLogin`

Polls the Codex device authorization flow and stores the resulting token when authorized.

## Request body

- GitpodV1CompleteCodexDeviceLoginRequest
  - `loginId` string

## Response `200`

Success

- GitpodV1CompleteCodexDeviceLoginResponse
  - `hostAuthenticationTokenId` string — host_authentication_token_id is set when status is STATUS_CONNECTED.
  - `status` 'STATUS_UNSPECIFIED' | 'STATUS_PENDING' | 'STATUS_CONNECTED' | 'STATUS_EXPIRED'

## Other responses

- `default` — Error

---

[API](https://skmtc.net/gitpod-io/apis/gitpod-v1.md) · [All operations](https://skmtc.net/gitpod-io/apis/gitpod-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gitpod-io/gitpod-v1/revisions/44d50c2ac284/schema)
