---
title: "Unsubscribe sessions"
method: POST
path: "/sessions/unsubscribe"
tags: ["Session"]
---

# Unsubscribe sessions

`POST /sessions/unsubscribe`

Unsubscribe contacts by email and/or userId. Fire-and-forget: the response is always
`{ "success": true }` and does not reflect whether the contacts were found or updated. Every session in
the project matching an entry's email OR userId is unsubscribed; entries with neither field are ignored.

## Headers

- `project` string, required

## Request body

- object
  - `reason` string — Stored as Session.unsubscribeReason. Defaults to "CSV upload" when omitted.
  - `sessions` object[], required
    - `userId` string
    - `email` string

## Response `200`

Ok

- object
  - `success` boolean, required

---

[API](https://skmtc.net/gleap/apis/gleap-server.md) · [All operations](https://skmtc.net/gleap/apis/gleap-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gleap/gleap-server/versions/2bfe054193b5/schema)
