---
title: "Revoke every existing session of a role"
url: https://hexelstudio.com/docs/api/ciam-iam/roles/revoke-sessions
---

# Revoke every existing session of a role

**POST** `/roles/{role_id}/revoke-sessions`

Sessions issued before now are rejected at the next permission check (within the 30-second cache window).

## Path parameters

- `role_id: string`

  Role ID

## Headers

- `Authorization: string`

  `Bearer <token>`.

## Returns

`200` OK (`object`)

## Errors

- `404` Not Found

## Example

```bash
curl --request POST \
  --url 'https://api.hexelstudio.com/v1/roles/{role_id}/revoke-sessions' \
  --header "Authorization: Bearer $ACCESS_TOKEN"
```

### Response (200)

```json
{}
```

### Response (404)

```json
{
  "key": "string"
}
```
