---
title: "Bulk invalidate sessions (force logout)"
method: POST
path: "/accounts/bulk/invalidate-sessions"
tags: ["accounts"]
---

# Bulk invalidate sessions (force logout)

`POST /accounts/bulk/invalidate-sessions`

## Request

- Base URL: `https://api.instruxi.dev/api/v1/enforcer`
- URL: `https://api.instruxi.dev/api/v1/enforcer/accounts/bulk/invalidate-sessions`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `X-API-Key`

## Request body

- InternalDeliveryHttpHandlerIDsRequest
  - `ids` string[]

## Response `200`

OK

- InternalDeliveryHttpHandlerBulkResultResponse
  - `data` InternalDeliveryHttpHandlerBulkSummary
    - `failed` integer
    - `results` InternalDeliveryHttpHandlerBulkItem[]
      - `error` string
      - `id` string
      - `status` string: ok | forbidden | error
    - `succeeded` integer
  - `success` boolean

## Other responses

- `400`: Bad Request
- `401`: Unauthorized

---

[API](https://skmtc.dev/instruxi/apis/enforcer-api.md) · [All operations](https://skmtc.dev/instruxi/apis/enforcer-api/llms.txt) · [OpenAPI document](https://skmtc.dev/instruxi/apis/enforcer-api/revisions/fa82bc1becc0?raw)
