---
title: "Get OPKSSH token status for a host"
method: GET
path: "/host/opkssh/token/{hostId}"
tags: ["SSH"]
---

# Get OPKSSH token status for a host

`GET /host/opkssh/token/{hostId}`

## Path parameters

- `hostId` integer, required

## Response `200`

Token status retrieved successfully

- object
  - `exists` boolean — Whether a valid token exists
  - `expiresAt` string, date-time — Token expiration timestamp
  - `email` string — User email from OIDC identity

## Other responses

- `404` — No valid token found
- `500` — Internal server error

---

[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)
