---
title: "Revoke all sessions for an environment"
method: POST
path: "/environments/{environmentId}/users/sessions/revoke"
tags: ["Sessions"]
---

# Revoke all sessions for an environment

`POST /environments/{environmentId}/users/sessions/revoke`

Queues the revocation of all user sessions in the specified environment. This is an asynchronous operation - the job runs in the background.

## Path parameters

- `environmentId` string, required

## Response `202`

Session revocation has been queued

- RevokeAllSessionsResponse
  - `message` string, required — Status message indicating the revocation has been queued

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal Server Error

---

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