---
title: "Revoke or mark lost a workspace device key"
method: POST
path: "/api/workspaces/{workspaceId}/enterprise/devices/{deviceKeyId}/revoke"
tags: ["workspaces"]
---

# Revoke or mark lost a workspace device key

`POST /api/workspaces/{workspaceId}/enterprise/devices/{deviceKeyId}/revoke`

## Request

- Base URL: `https://rstream.io`
- URL: `https://rstream.io/api/workspaces/{workspaceId}/enterprise/devices/{deviceKeyId}/revoke`
- Auth: HTTP bearer

## Path parameters

- `workspaceId` string, required
- `deviceKeyId` string, required

## Request body

- RevokeWorkspaceDeviceKeyParams
  - `reason` string
  - `markLost` boolean
  - `actorDeviceKeyId` string
  - `signature` string

## Response `204`

Successful response.

## Other responses

- `400`: Request validation failed.
- `401`: Authentication is required.
- `403`: The token is not authorized.
- `404`: Workspace or device not found.

---

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