---
title: "Complete Cubist login with TOTP code"
method: POST
path: "/v2/account-connections/cubist/login/{loginId}/mfa/totp"
tags: ["Cubist Login"]
---

# Complete Cubist login with TOTP code

`POST /v2/account-connections/cubist/login/{loginId}/mfa/totp`

## Request

- Base URL: `https://api.range.org`
- URL: `https://api.range.org/v2/account-connections/cubist/login/{loginId}/mfa/totp`
- Auth: one of:
  - API key in header `X-API-KEY`
  - API key in header `X-API-KEY`

## Path parameters

- `loginId` string, required

## Request body

- CubistLoginTotpDto
  - `code` string, required

## Response `200`

- CubistLoginStatusResponseDto
  - `status` 'mfa_required' | 'complete' | 'expired', required
  - `login_id` string
  - `mfa_types` string[]: MFA types required (e.g. Totp, Fido)
  - `refresh_token` string: Present when status is complete; use for connection create or direct bootstrap
  - `expiration` number

---

[API](https://skmtc.dev/range/apis/range-platform-api.md) - [All operations](https://skmtc.dev/range/apis/range-platform-api/llms.txt) - [OpenAPI document](https://skmtc.dev/range/apis/range-platform-api/revisions/9926df2e476d?raw)
