---
title: "Complete TOTP verification for metrics"
method: POST
path: "/metrics/connect-totp"
tags: ["Host Metrics"]
---

# Complete TOTP verification for metrics

`POST /metrics/connect-totp`

Verifies the TOTP code and completes the metrics SSH connection.

## Request body

- object
  - `sessionId` string
  - `totpCode` string

## Response `200`

TOTP verified, metrics connection established.

## Other responses

- `400` — Missing sessionId or totpCode.
- `401` — Session expired or invalid TOTP code.
- `404` — TOTP session not found or expired.
- `500` — Failed to verify TOTP.

---

[API](https://skmtc.dev/termix/apis/termix-api.md) · [All operations](https://skmtc.dev/termix/apis/termix-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/termix/termix-api/revisions/f4ef343eff1b/schema)
