---
title: "Revoke"
method: POST
path: "/v1/b2b/sessions/revoke"
tags: ["Session"]
---

# Revoke

`POST /v1/b2b/sessions/revoke`

## Request

- Base URL: `https://api.stytch.com`
- URL: `https://api.stytch.com/v1/b2b/sessions/revoke`
- Auth: HTTP basic

Revoke a Session and immediately invalidate all its tokens. To revoke a specific Session, pass either the `member_session_id`, `session_token`, or `session_jwt`. To revoke all Sessions for a Member, pass the `member_id`.

## Headers

- `X-Stytch-Member-Session` string
- `X-Stytch-Member-SessionJWT` string

## Request body

- ApiB2bSessionV1RevokeRequest: Request type
  - `member_session_id` string: Globally unique UUID that identifies a specific Session in the Stytch API. The `member_session_id` is critical to perform operations on an Session, so be sure to preserve this value.
  - `session_token` string: A secret token for a given Stytch Session.
  - `session_jwt` string: The JSON Web Token (JWT) for a given Stytch Session.
  - `member_id` string: Globally unique UUID that identifies a specific Member. The `member_id` is critical to perform operations on a Member, so be sure to preserve this value.

## Response `200`

Successful response

- ApiB2bSessionV1RevokeResponse
  - `request_id` string, required: Globally unique UUID that is returned with every API call. This value is important to log for debugging purposes; we may ask for this value to help identify a specific API call when helping you debug an issue.
  - `status_code` integer, required: The HTTP status code of the response. Stytch follows standard HTTP response status code patterns, e.g. 2XX values equate to success, 3XX values are redirects, 4XX are client errors, and 5XX are server errors.

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `429`: Too Many Requests
- `500`: Internal server error

## Changes

- **2026-03-07** `110f26a94e5b`: 1 info
  - endpoint added
- **2026-03-06** `9cab20b8eca7`: 1 breaking
  - api path removed without deprecation
- **2025-10-20** `a4801149ed74`: 2 info
  - added the new optional `header` request parameter `X-Stytch-Member-Session`
  - added the new optional `header` request parameter `X-Stytch-Member-SessionJWT`
- **2025-09-17** `8270cf3a3d4c`: 3 info
  - added the media type `application/json` for the response with the status `401`
  - added the media type `application/json` for the response with the status `500`
  - added the non-success response with the status `429`
- **2025-09-17** `25964b4a5e32`: 1 info
  - api operation id `api_multitenant_session_v1_Revoke` removed and replaced with `api_b2b_session_v1_Revoke`

[Operation history](https://skmtc.dev/stytch/apis/stytch-api/changes/v1/b2b/sessions/revoke/post.md)

---

[API](https://skmtc.dev/stytch/apis/stytch-api.md) - [All operations](https://skmtc.dev/stytch/apis/stytch-api/llms.txt) - [OpenAPI document](https://skmtc.dev/stytch/apis/stytch-api/revisions/6d1ff7474803?raw)
