---
title: "Terminate Session"
method: DELETE
path: "/v1/auth/sessions/{sessionId}"
tags: ["Auth"]
---

# Terminate Session

`DELETE /v1/auth/sessions/{sessionId}`

Terminates a specific login session (remote logout). Removes the login token from the user document. User identity is read from the x-user-id header.

## Path parameters

- `sessionId` string, required

## Response `200`

Default Response

- object
  - `success` boolean, required
  - `message` string, required
  - `hashedToken` string — Hashed login token of the terminated session (for DDP cleanup)
  - `ip` string — IP address of the terminated session
  - `location` object — Geo-resolved location of the terminated session
    - `city` string
    - `region` string
    - `country` string
    - `timezone` string
  - `loginType` string — Login method used to create the terminated session
  - `device` object — Device info of the terminated session
    - `browser` string
    - `browserVersion` string
    - `os` string
    - `osVersion` string
    - `deviceType` string
    - `rawUserAgent` string

## Other responses

- `400` — Default Response
- `403` — Default Response
- `404` — Default Response
- `500` — Default Response

---

[API](https://skmtc.net/bluehive-health/apis/bluehive-api.md) · [All operations](https://skmtc.net/bluehive-health/apis/bluehive-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bluehive-health/bluehive-api/revisions/e6e553c2594a/schema)
